JP2010111234A - Control device and control method - Google Patents
Control device and control method Download PDFInfo
- Publication number
- JP2010111234A JP2010111234A JP2008284907A JP2008284907A JP2010111234A JP 2010111234 A JP2010111234 A JP 2010111234A JP 2008284907 A JP2008284907 A JP 2008284907A JP 2008284907 A JP2008284907 A JP 2008284907A JP 2010111234 A JP2010111234 A JP 2010111234A
- Authority
- JP
- Japan
- Prior art keywords
- control
- control process
- priority
- executed
- abnormality
- 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.)
- Granted
Links
Images
Landscapes
- Combined Controls Of Internal Combustion Engines (AREA)
Abstract
Description
本発明は、制御装置及び制御方法に関する。特に、本発明は、車両に用いられる制御装置及び制御方法に関する。 The present invention relates to a control device and a control method. In particular, the present invention relates to a control device and a control method used for a vehicle.
従来より、車両の制御装置は、車両で発生した故障等の原因を解析することができるように、車両の状態を示す各種車両データを記憶装置に記録して保持させている。一般に、制御装置は、通常時はRAM(Random Access Memory)等の揮発性メモリに車両データを逐次記録していき、故障等の異常が発生した際に揮発性メモリに書き込まれた車両データをEEPROM(Electronically Erasable and Programmable Read Only Memory)等の不揮発性メモリに一括して記録するように構成されている(例えば、特許文献1参照)。 2. Description of the Related Art Conventionally, a vehicle control device records and holds various vehicle data indicating the state of a vehicle in a storage device so that the cause of a failure or the like occurring in the vehicle can be analyzed. In general, the control device normally records vehicle data in a volatile memory such as a RAM (Random Access Memory) at normal times, and stores the vehicle data written in the volatile memory when an abnormality such as a failure occurs. It is configured to record in a non-volatile memory such as (Electronically Erasable and Programmable Read Only Memory) (see, for example, Patent Document 1).
制御装置が制御処理によって異常値を示す車両データの検出と、検出した異常の不揮発性メモリへの記録とを行う場合の処理手順を図1及び図2を参照しながら説明する。図1及び図2には、車両データの異常を検出して不揮発性メモリに記録する処理を低優先度の制御処理と高優先度の制御処理とでそれぞれ実行する様子を示す。 A processing procedure in the case where the control device detects vehicle data indicating an abnormal value by a control process and records the detected abnormality in a nonvolatile memory will be described with reference to FIGS. 1 and 2. FIG. 1 and FIG. 2 show how the process of detecting an abnormality in vehicle data and recording it in the nonvolatile memory is executed in a low priority control process and a high priority control process, respectively.
図1に示すタイミングAで、低優先度の制御処理が車両データの異常値を検出し、検出した異常値を示す車両データの不揮発性メモリへの記録を開始する。その後、タイミングBで、高優先度の制御処理が車両データの異常値を検出し、異常値を示す車両データを不揮発性メモリに記録するために割り込み要求を出力する。低優先度の制御処理は、高優先度の制御処理からの割り込み要求によって異常値を示す車両データの不揮発性メモリへの記録を停止し、待機状態になる。なお、タイミングAの低優先度の制御処理と、タイミングBの高優先度の制御処理とは、数十msec以内に行われるものとする。 At timing A shown in FIG. 1, the low priority control process detects an abnormal value of the vehicle data, and starts recording the vehicle data indicating the detected abnormal value in the nonvolatile memory. Thereafter, at timing B, the high priority control process detects an abnormal value of the vehicle data, and outputs an interrupt request to record the vehicle data indicating the abnormal value in the nonvolatile memory. The low-priority control process stops recording the vehicle data indicating an abnormal value in the nonvolatile memory in response to an interrupt request from the high-priority control process, and enters a standby state. Note that the low-priority control process at timing A and the high-priority control process at timing B are performed within several tens of msec.
その後、図2に示すタイミングCで高優先度の制御処理が異常値を示す車両データの不揮発性メモリへの記録を終了する。低優先度の制御処理は、高優先度の制御処理の車両データの不揮発性メモリへの記録終了を受けて、図2に示すタイミングDで異常値を示す車両データの不揮発性メモリへの記録を再開させる。 After that, at timing C shown in FIG. 2, the high-priority control process finishes recording the vehicle data indicating an abnormal value in the nonvolatile memory. The low-priority control process records the vehicle data indicating an abnormal value in the nonvolatile memory at the timing D shown in FIG. 2 in response to the end of recording the vehicle data in the nonvolatile memory in the high-priority control process. Let it resume.
しかしながら、高優先度の制御処理による不揮発性メモリへのデータ記録が終了した後に、低優先度の制御処理が不揮発性メモリへのデータ記録を再開した場合、高優先度の制御処理によって不揮発性メモリに記録されている車両データに、低優先度の制御処理の記録する車両データが上書きされてしまう場合がある。このとき、高優先度の制御処理の記録する車両データの優先度が、低優先度の制御処理の記録する車両データの優先度よりも高かった場合、故障原因の特定等にとって有効な車両データが不揮発性メモリから消去されてしまう恐れがある。 However, if the low priority control process resumes data recording to the nonvolatile memory after the data recording to the nonvolatile memory by the high priority control process is completed, the high priority control process causes the nonvolatile memory to May be overwritten with the vehicle data recorded by the low priority control process. At this time, if the priority of the vehicle data recorded by the high-priority control process is higher than the priority of the vehicle data recorded by the low-priority control process, vehicle data that is effective for identifying the cause of failure, etc. There is a risk of being erased from the nonvolatile memory.
本発明は上記事情に鑑みてなされたものであり、故障原因の特定に有効な車両データであって、重要度の高いデータを記憶部に記憶させておくことができる制御装置及び制御方法を提供することを目的とする。 The present invention has been made in view of the above circumstances, and provides a control device and a control method capable of storing high-priority data, which is vehicle data effective for identifying the cause of failure, in a storage unit. The purpose is to do.
かかる目的を達成するために本発明の制御装置は、被制御部を制御する際の制御に関するデータを記憶制御する制御装置であって、制御に関するデータを記憶するための記憶部と、被制御部に関する制御処理と、制御処理において、入力信号に基づいて所定部位の異常を判定する際の、制御に関するデータを記憶部へ記憶する記憶制御処理と、制御処理に含まれる記憶制御処理が複数実行される場合は、先行して実行される制御処理における異常判定の際の制御に関するデータを記憶部へ記憶した後、その後に続いて実行される制御処理における異常判定の際の制御に関するデータを記憶部へ上書記憶する上書記憶制御処理と、制御処理が一定時間内に複数実行される場合で、先行して実行される制御処理に設定された優先度よりも、その後に続いて実行される制御処理に設定された優先度が高い場合は、後に続いて実行される制御処理を、先行して実行される制御処理よりも優先して実行する優先制御処理と、制御処理における記憶制御処理が一定時間内に複数実行される場合で、先行して実行される制御処理に設定された優先度よりも、その後に続いて実行される制御処理に設定された優先度が高い場合は、後に続いて実行される制御処理における記憶制御処理の記憶制御を所定時間経過した後に実行する優先制御特別処理とを実行する制御部と、を備えている。 In order to achieve such an object, a control device of the present invention is a control device that stores and controls data related to control when controlling a controlled unit, and includes a storage unit that stores data related to control, and a controlled unit In the control process, a plurality of storage control processes included in the control process and a storage control process included in the control process are executed. Data stored in the storage unit for control during abnormality determination in the control process executed in advance, and then stored in the storage unit for data related to control during abnormality determination in the control process executed subsequently. Overwrite storage control process for overwriting and the control process executed multiple times within a certain period of time, after the priority set in the control process executed in advance, If the priority set for the control process to be executed subsequently is high, the control process to be executed subsequently is prioritized over the control process executed in advance, and the control process In the case where a plurality of storage control processes are executed within a certain time, the priority set for the control process executed subsequently is higher than the priority set for the control process executed in advance. In this case, a control unit that executes a priority control special process that is executed after a predetermined time has elapsed in the storage control of the storage control process in the control process that is subsequently executed is provided.
本発明は、一定時間内に複数の制御処理が実行される場合に、優先度の高い制御処理が優先度の低い制御処理よりも優先して処理を行うが、記憶部への記憶制御においては、優先度の高い制御処理は所定時間を経過した後に実行する。従って、優先度の高い制御処理が異常判定の際の制御に関するデータを記憶部に書き込んだ後に、優先度の低い制御処理が異常判定の際の制御に関するデータを記憶部に書き込んでしまうことがない。従って、故障原因の特定に有効なデータであって、重要度の高いデータを記憶部に記憶させておくことができる。 In the present invention, when a plurality of control processes are executed within a certain period of time, a control process with a high priority performs a process in preference to a control process with a low priority. The control process with high priority is executed after a predetermined time has elapsed. Therefore, after the control processing with high priority writes the data related to the control at the time of abnormality determination to the storage unit, the control processing with low priority does not write data related to the control at the time of abnormality determination to the storage unit. . Therefore, data that is effective in identifying the cause of the failure and has high importance can be stored in the storage unit.
上記制御装置において、前記優先制御特別処理は、先行して実行される制御処理に設定された優先度よりも、その後に続いて実行される制御処理に設定された優先度が高い場合において、後に続いて実行される制御処理における異常判定の際の制御に関するデータの優先度が、先行して実行される制御処理における異常判定の際の制御に関するデータの優先度よりも高い場合に、後に続いて実行される制御処理における記憶制御処理の記憶制御を所定時間経過した後に実行する。 In the control device, the priority control special process is performed later when the priority set in the control process executed subsequently is higher than the priority set in the control process executed in advance. If the priority of the data related to the control at the time of abnormality determination in the subsequently executed control process is higher than the priority of the data related to the control at the time of abnormality determination in the previously executed control process, The storage control of the storage control process in the executed control process is executed after a predetermined time has elapsed.
従って、優先度の高い制御処理が記憶部に書き込んだ優先度の高いデータが優先度の低い制御処理が記憶部に書き込むデータによって消去されることがない。 Therefore, the high priority data written in the storage unit by the high priority control process is not erased by the low priority control process written by the data written in the storage unit.
上記制御装置において、前記優先制御特別処理は、先行して実行される制御処理に設定された優先度よりも、その後に続いて実行される制御処理に設定された優先度が高い場合において、後に続いて実行される制御処理における異常判定の際の制御に関するデータの優先度が、先行して実行される制御処理における異常判定の際の制御に関するデータの優先度よりも低い場合に、後に続いて実行される制御処理における記憶制御処理の記憶制御を中止する。 In the control device, the priority control special process is performed later when the priority set in the control process executed subsequently is higher than the priority set in the control process executed in advance. If the priority of the data related to the control at the time of abnormality determination in the control process executed subsequently is lower than the priority of the data related to the control at the time of abnormality determination in the control process executed earlier, The storage control of the storage control process in the executed control process is stopped.
従って、優先度の高いデータを記憶部に記憶した後に、優先度の低いデータを記憶に記憶してしまうことがない。 Therefore, after data having high priority is stored in the storage unit, data having low priority is not stored in the memory.
本発明の制御方法は、被制御部に関する制御処理と、制御処理において、入力信号に基づいて所定部位の異常を判定する際の、制御に関するデータを記憶部へ記憶する記憶制御処理と、制御処理に含まれる記憶制御処理が複数実行される場合は、先行して実行される制御処理における異常判定の際の制御に関するデータを記憶部へ記憶した後、その後に続いて実行される制御処理における異常判定の際の制御に関するデータを記憶部へ上書記憶する上書記憶制御処理と、制御処理が一定時間内に複数実行される場合で、先行して実行される制御処理に設定された優先度よりも、その後に続いて実行される制御処理に設定された優先度が高い場合は、後に続いて実行される制御処理を、先行して実行される制御処理よりも優先して実行する優先制御処理と、制御処理における記憶制御処理が一定時間内に複数実行される場合で、先行して実行される制御処理に設定された優先度よりも、その後に続いて実行される制御処理に設定された優先度が高い場合は、後に続いて実行される制御処理における記憶制御処理の記憶制御を所定時間経過した後に実行する優先制御特別処理とを有している。 The control method of the present invention includes a control process related to a controlled part, a storage control process that stores data related to control in a storage part when determining an abnormality of a predetermined part based on an input signal in the control process, and a control process When a plurality of storage control processes included in the control process are executed, data related to the control at the time of abnormality determination in the control process executed in advance is stored in the storage unit, and then an abnormality in the control process executed subsequently Overwrite storage control process that overwrites and stores data related to the control at the time of determination in the storage unit, and the priority set in the control process that is executed in advance when multiple control processes are executed within a certain time If the priority set for the control process executed subsequently is higher than the priority, the control process executed subsequently is prioritized over the control process executed in advance. Control processing and storage control processing in the control processing are executed multiple times within a certain time, and the priority set in the control processing executed in advance is set to the control processing executed subsequently. In the case where the priority is high, the storage control of the storage control process in the control process to be executed subsequently is performed with a priority control special process executed after a predetermined time has elapsed.
本発明によれば、故障原因の特定に有効な車両データであって、重要度の高いデータを記憶部に記憶させておくことができる。 According to the present invention, it is possible to store vehicle data that is effective in identifying the cause of failure and that has high importance in the storage unit.
添付図面を参照しながら本発明の好適な実施例を説明する。 Preferred embodiments of the present invention will be described with reference to the accompanying drawings.
図3には、本発明をエンジンECU((Electronic Control Unit)に適用した実施例の構成を示す。エンジンECU(Electronic Control Unit)100は、A/D(Analog/ digital)変換器101、入力回路102、マイコン103、出力回路104を備えている。
3 shows a configuration of an embodiment in which the present invention is applied to an engine ECU (Electronic Control Unit) .The engine ECU (Electronic Control Unit) 100 includes an A / D (Analog / Digital)
A/D変換器101には、水温センサ11、バキュームセンサ12、吸気温センサ13、O2センサ14、スロットルポジションセンサ15、排気温センサ16、車速センサ17、ノックセンサ18、イオンセンサ19、その他センサ20等のセンサからのセンサ信号が入力される。
入力回路102には、スタータスイッチ21やアイドルスイッチ22からの信号が入力される。
The A /
Signals from the
水温センサ11は、エンジンのウォータージャケット内の冷却水の温度を検出し、検出結果を表わす信号をマイコン103に送信する。
バキュームセンサ12は、エンジンに吸入空気を導く吸気通路の吸入空気量を検出し、検出結果を表す信号をマイコン103に送信する。
吸気温センサ13は、前述吸気通路の吸入空気の温度を検出し、検出結果を表す信号をマイコン103に送信する。
O2センサ14は、排気浄化触媒の下流に配置され、排気ガス中の酸素濃度を検出し、検出結果を表す信号をマイコン103に送信する。
スロットルポジションセンサ15は、モータの駆動によって回動されるスロットルバルブの開度を検出し、検出結果を表す信号をマイコン103に送信する。
排気温センサ16は、排気浄化触媒の下流側で排気温を検出し、検出結果を表す信号をマイコン103に送信する。
車速センサ17は、例えば、ドライブシャフトの回転数から車両の速度を検知し、検知結果を表す信号をマイコン103に送信する。
ノックセンサ18は、エンジンの振動(ノッキング)を検出し、検出結果を表す信号をマイコン103に送信する。
イオンセンサ19は、プレイグニッションが発生した場合に生じるイオン電流を検出し、検出結果を表す信号をマイコン103に送信する。
これらのセンサ以外にも車両の状態を測定するためのセンサ(以下、その他センサ20と呼ぶ)が複数搭載されている。
The water temperature sensor 11 detects the temperature of the cooling water in the water jacket of the engine, and transmits a signal representing the detection result to the
The
The intake
The O2 sensor 14 is disposed downstream of the exhaust purification catalyst, detects the oxygen concentration in the exhaust gas, and transmits a signal representing the detection result to the
The
The
For example, the vehicle speed sensor 17 detects the speed of the vehicle from the rotational speed of the drive shaft, and transmits a signal representing the detection result to the
The
The
In addition to these sensors, a plurality of sensors (hereinafter referred to as other sensors 20) for measuring the state of the vehicle are mounted.
スタータスイッチ21は、エンジンを始動させるスイッチであり、このスイッチがオンのときにハイレベルとなる信号をマイコン103に出力する。アイドルスイッチ22は、アクセルペダルが全閉のときにハイレベルとなる信号をマイコン103に出力する。
The
エンジンECU100は、各種スイッチ信号及び各種センサ信号から取得する情報に基づいて、エンジンの最適な点火時期、燃料噴射時期及び噴射量などを演算する。そして、エンジンECU100は、演算結果に基づき、出力回路104を介して気筒毎に設けられたインジェクタ152や点火プラグ154を駆動する駆動信号を出力する。
The engine ECU 100 calculates an optimal ignition timing, fuel injection timing, injection amount, and the like of the engine based on information acquired from various switch signals and various sensor signals.
エンジンECU100の出力回路104には、警報ランプ151、インジェクタ152、イグナイタ153等が接続されている。
警報ランプ151は、エンジンECU100の故障監視により、異常の発生を検出した場合に点灯されるランプである。故障監視の詳細については後述する。
インジェクタ152は、エンジンECU100の制御により開閉駆動されて燃料を噴射する電磁弁から構成される。
イグナイタ153は、エンジンECU100の制御により不図示の点火コイルにバッテリ電圧を供給し、点火コイルに蓄えられた高電圧により点火プラグ154で火花を発生させて、燃焼室内の混合気を燃焼させる。
An
The
The
図4には、エンジンECU100のシステム構成を示す。
車両には、複数のECUが搭載され、これらのECUは車内LANによって接続されている。また、複数のECU間では、CAN(Controller Area Network)等のプロトコルに従って通信を行う。なお、図4には、車両の制御を行うECUとして、エンジンECU100、CVT−ECU201、ブレーキECU202、ナビECU203、テレマティクスECU204、ライトECU205、エアバッグECU206、ドアECU207を示したが、エンジンECU100と通信を行うECUはこれらに限られるものではない。
FIG. 4 shows a system configuration of
A plurality of ECUs are mounted on the vehicle, and these ECUs are connected by an in-vehicle LAN. In addition, communication is performed between a plurality of ECUs according to a protocol such as CAN (Controller Area Network). 4 shows the
図5に、マイコン103のハードウェア構成を示す。
マイコン103は、CPU(Central Processing Unit)111、ROM112、ノーマルRAM(Normal Random Access Memory(以下、NRAMと略記する)113、スタンバイRAM(Standby Random Access Memory(以下、SRAM114と略記する)114、入出力部115を有している。
なお、NRAM113は、揮発性のメモリであって、イグニッションスイッチがオフされたときにはNRAM113への電源供給も停止し、NRAM113の記録する情報も消去される。また、SRAM114は、イグニッションスイッチがオフされてもバッテリからの電源供給を受けて、記録する情報を保持する。
FIG. 5 shows a hardware configuration of the
The
The
CPU111は、ROM112に記録されたプログラムに従って演算を行うことで、制御処理と、記憶制御処理と、上書記憶制御処理と、優先制御処理と、優先制御特別処理とを実行する。
なお、制御処理とは、インジェクタ152やイグナイタ153等の被制御部を制御する制御処理である。
記憶制御処理は、制御処理において、入力信号に基づいて所定部位の異常を判定する際の、制御に関するデータをSRAM114へ記憶する処理である。
上書記憶制御処理とは、制御処理に含まれる記憶制御処理が複数実行される場合は、先行して実行される制御処理における異常判定の際の制御に関するデータをSRAM114へ記憶した後、その後に続いて実行される制御処理における異常判定の際の制御に関するデータをSRAM114へ上書記憶する処理である。
優先制御処理とは、制御処理が一定時間内に複数実行される場合で、先行して実行される制御処理に設定された優先度よりも、その後に続いて実行される制御処理に設定された優先度が高い場合は、後に続いて実行される制御処理を、先行して実行される制御処理よりも優先して実行する処理である。
優先制御特別処理とは、制御処理における記憶制御処理が一定時間内に複数実行される場合で、先行して実行される制御処理に設定された優先度よりも、その後に続いて実行される制御処理に設定された優先度が高い場合は、後に続いて実行される制御処理における記憶制御処理の記憶制御を所定時間経過した後に実行する処理である。
The
The control process is a control process for controlling controlled parts such as the
The storage control process is a process of storing data related to control in the
Overwrite storage control processing means that when a plurality of storage control processing included in the control processing is executed, data related to control at the time of abnormality determination in the control processing executed in advance is stored in the
The priority control process is a case where a plurality of control processes are executed within a predetermined time, and is set to a control process executed subsequently after the priority set in the control process executed in advance. When the priority is high, the control process that is subsequently executed is executed with priority over the control process that is executed in advance.
The priority control special process is a case where a plurality of storage control processes in a control process are executed within a predetermined time, and a control executed subsequent to a priority set in a control process executed in advance. When the priority set for the process is high, the storage control of the storage control process in the control process executed subsequently is executed after a predetermined time has elapsed.
又、CPU111は、複数の制御処理を並行して実行する機能を有している。各制御処理には優先度が設定されている。例えば、高優先度の制御処理には、エンジンの制御に使用するセンサ信号やスイッチ信号(すなわち、時間に同期せずに不定期で入力される信号)の異常値を検出する処理が含まれる。特に、エンジンECU100での高優先度の制御処理には、クランク角度センサに基づいて、燃料噴射制御や点火制御を実施するような実行周期を密にする必要がある制御が含まれる。また、低優先度の制御処理には、水温センサ11のセンサ信号(すなわち、時間に同期して所定間隔で入力される信号)が異常値を示すか否かを検出する処理が含まれる。特に、エンジンECU100での低優先度の制御処理には、例えば、燃料噴射制御や点火制御において用いるクランク角よりも状態の変化度合いが高くない水温センサ11のセンサ値などを用いて実行する制御をいう。
また、CPU111は、NRAM113をリングバッファとして使用し(以下では、NRAM113をリングバッファ113aと呼ぶ)、図3に示すセンサ11〜20や、スイッチ21、22等によって測定される車両の状態データをリングバッファ113aに順次記憶していく。リングバッファ113aの記憶量がリングバッファ113aの所定の容量を超えると、CPU111は、最も古い状態データの代わりに新しい状態データをリングバッファ113aに記憶させる。なお、車両の状態データの詳細については後述する。
The
Further, the
また、CPU111は、リングバッファ113aに記憶した車両の状態データに基づいて、車両の異常を検出する。この異常検出の処理について図6を参照しながら説明する。
例えば、リングバッファ113aに車両の状態データとして記憶したセンサ値が異常値を示した場合や、センサ値が一定値のまま変動しなかった場合には、異常値を検出したことを示すフラグが立てられる(図6(a)に示す異常値検出フラグに1が記録される)。また、異常値の検出により仮異常判定の判定結果を示すフラグに1が記録される(図6(b)参照)。なお、仮異常判定とは、センサ値が異常値を示したか否かの判定であり、この後に続く本異常判定の開始を示す。本異常判定では、図6(e)に示す異常カウンタのカウントを開始して、センサ値の異常が所定時間以上継続しているか否かを判定する。仮異常判定では、一度異常値を示したセンサ値を異常と判定してしまうので、本異常判定でノイズ等によらず一定時間以上継続して異常値を示すセンサ値を異常と判定する。異常カウンタのカウント値が図6(d)に示す異常検出しきい値を超えると、本異常判定の判定結果を示すフラグに1が記録され(図6(c)参照)、センサ値の異常が確定する(本異常と判定する)。
なお、センサ値が異常値から正常値に戻った場合には、図6(a)に示す異常値検出フラグに0が記録され、図6(f)に示す正常カウンタのカウントを開始する。正常カウンタのカウント値が正常検出しきい値を超えると、センサ値は正常であると判定する。
Further, the
For example, when the sensor value stored as the vehicle state data in the
When the sensor value returns from the abnormal value to the normal value, 0 is recorded in the abnormal value detection flag shown in FIG. 6A, and the normal counter counting shown in FIG. 6F is started. When the count value of the normal counter exceeds the normal detection threshold value, it is determined that the sensor value is normal.
また、図6に示す例では、仮異常判定と本異常判定とを行ってセンサ値の異常を確定させていたが、仮異常判定、本異常判定を行わずに異常が確定する車両の状態データもある。例えば、ノイズ等の影響を受けることがなく、本異常判定を行わなくても異常値を示した段階で異常を確定(本異常と判定)させる車両の状態データもある。 In the example shown in FIG. 6, the temporary abnormality determination and the main abnormality determination are performed to determine the abnormality of the sensor value. However, the vehicle state data in which the abnormality is determined without performing the temporary abnormality determination and the main abnormality determination. There is also. For example, there is also vehicle state data that is not affected by noise or the like and that determines an abnormality (determines this abnormality) at a stage where an abnormal value is shown without performing the abnormality determination.
上述した例では、センサ値の異常を例に説明したが、エンジンECU100はセンサ値以外の異常も検出する。
例えば、センサの断線・ショートの異常であると判定した時点で仮異常と判定し、この状態が所定時間以上継続した場合を本異常と判定する。
また、信号レベルが不定状態であると判定した時点で仮異常と判定し、この不定状態が所定時間以上継続した場合を本異常と判定する。
また、通信が途絶したと判定した時点で仮異常と判定し、この通信途絶の状態が所定時間以上継続した場合を本異常と判定する。
また、回転角センサに進角、又は遅角異常が発生していると判定した際に仮異常と判定し、この異常状態が所定時間以上継続した場合を本異常と判定する。
また、可変バルブタイミング機構(以下、VVT(Variable Valve Timing-control)と呼ぶ)等に機能異常が生じていると判定した際に仮異常と判定し、この機能異常が所定時間以上継続した場合を本異常と判定する。
また、ICの動作に動作不良が生じていると判定した際に仮異常と判定し、この動作不良が所定時間以上継続した場合を本異常と判定する。
また、触媒等の性能の劣化を検出した際に仮異常と判定し、この性能劣化が所定時間以上継続した場合を本異常と判定する。
また、例えば、ECU内、入力センサ、出力アクチュエータ等において発生する過電流による異常を検出した際に仮異常と判定し、この異常が所定時間以上継続した場合を本異常と判定する。
In the above-described example, the abnormality of the sensor value has been described as an example, but the
For example, it is determined as a temporary abnormality when it is determined that the sensor is disconnected or short-circuited, and this abnormality is determined when this state continues for a predetermined time or more.
Further, when it is determined that the signal level is in an indefinite state, it is determined as a temporary abnormality, and when this indefinite state continues for a predetermined time or more, it is determined as a main abnormality.
Further, when it is determined that communication is interrupted, it is determined as a temporary abnormality, and when this communication interruption state continues for a predetermined time or more, it is determined as this abnormality.
Further, when it is determined that the advance angle or retard angle abnormality has occurred in the rotation angle sensor, it is determined as a temporary abnormality, and when this abnormal state continues for a predetermined time or more, it is determined as a main abnormality.
In addition, when it is determined that a malfunction has occurred in a variable valve timing mechanism (hereinafter referred to as VVT (Variable Valve Timing-control)), etc., it is determined as a temporary malfunction, and this malfunction has continued for a predetermined time or longer. This is determined to be abnormal.
Further, when it is determined that an operation failure has occurred in the operation of the IC, it is determined as a temporary abnormality, and when this operation failure continues for a predetermined time or more, it is determined as a main abnormality.
Further, when a deterioration in performance of the catalyst or the like is detected, it is determined as a temporary abnormality, and when this performance deterioration continues for a predetermined time or more, it is determined as a main abnormality.
Further, for example, a temporary abnormality is determined when an abnormality due to an overcurrent generated in an ECU, an input sensor, an output actuator, or the like is detected, and a case where this abnormality continues for a predetermined time or more is determined as a main abnormality.
図7には、SRAM114の記録情報を示す。CPU111は、リングバッファ113aに記憶した車両の状態データから異常値を示す状態データを検出すると、検出した状態データ及び検出した状態データと同じタイミングでリングバッファ113aに記憶した車両の状態データと、異常の発生直前にリングバッファ113aに記憶した車両の状態データと、異常の発生から所定時間経過後にリングバッファ113aに記憶した車両の状態データとをSRAM114に記録する。SRAM114には、図7に示すようにCPU111によって特定された異常の発生箇所を特定する情報を記録する領域(以下、異常検出箇所記録領域120と呼ぶ)と、仮異常と判定された状態データを記録する領域(以下、仮異常データ記録領域130と呼ぶ)と、本異常と判定された状態データを記録する領域(以下、本異常データ記録領域140と呼ぶ)とを有している。
また、仮異常データ記録領域130は、異常が発生する直前の状態データを記録する領域(以下、異常発生前の状態データ記録領域131と呼ぶ)と、異常が発生した際の状態データを記録する領域(以下、異常発生時の状態データ記録領域132と呼ぶ)と、異常発生から所定時間経過後の状態データを記録する領域(以下、異常発生後の状態データ記録領域133と呼ぶ)とを有している。
同様に、本異常データ記録領域140も、異常が発生する直前の状態データを記録する領域(以下、異常発生前の状態データ記録領域141と呼ぶ)と、異常が発生した際の状態データを記録する領域(以下、異常が発生した際の状態データ記録領域142と呼ぶ)と、異常発生から所定時間経過後の状態データを記録する領域(以下、異常発生後の状態データ記録領域143と呼ぶ)とを有している。
FIG. 7 shows information recorded in the
In addition, the temporary abnormality
Similarly, in the abnormal
次に、エンジンECU100が異常の発生を監視する車両の部位について説明する。エンジンECU100が異常の発生を監視する部位には、法規によって定められた法規関連部位と、エミッション(排気ガスに含まれる有害物質)の排出に関連する部位であるエミッション関連部位と、これら以外の部位であるエミッション非関連部位とが含まれる。なお、法規には、車両部位の異常を判定する際に状態データを記憶させておくことを定めている法律、または、法律に基づく命令、若しくは、規則における法律が含まれる。
法規関連部位には、例えば、A/F(空燃比)センサヒータ、O2センサヒータ、エアフロメータ、サブO2センサ電圧、燃料系、失火検出、クランク角センサ、カムポジションセンサ等の異常検出が含まれる。
また、エミッション関連部位には、表1に示すようにVVT、排気VVT、VVTのオイルコントロールバルブの断線、ショート、排気VVTのオイルコントロールバルブの断線、ショート、大気圧と吸気との圧力差異常、ポンプ弁異常、燃圧システム異常、レギュレータ異常、燃料漏れ異常、吸気圧センサ異常、水温センサ、スロットルセンサ、サーモスタット異常、インジェクタ異常、フューエルポンプ異常、ノックセンサ異常、イオン電流値の異常、排気ガス再循環(以下、EGR(Exhaust Gas Recirculation)と呼ぶ)システムの異常、触媒劣化検出、タンク内圧センサ異常、車速センサ異常、バッテリ温センサ異常、排気温センサ異常、油温センサ異常、タービン回転数センサ異常、COクラッチ回転数センサ異常、NC2回転数センサ異常、ソレノイド異常、CAN通信異常などの項目が含まれる。
また、エミッショ非関連部位には、表1に示すようにECUとNRAMとの異常が含まれる。
Next, the part of the vehicle for which the
The legally relevant parts include, for example, detection of abnormalities such as A / F (air-fuel ratio) sensor heater, O2 sensor heater, air flow meter, sub O2 sensor voltage, fuel system, misfire detection, crank angle sensor, cam position sensor, etc. .
In addition, as shown in Table 1, the emission-related parts include VVT, exhaust VVT, VVT oil control valve disconnection, short circuit, exhaust VVT oil control valve disconnection, short circuit, abnormal pressure difference between atmospheric pressure and intake air, Pump valve abnormality, fuel pressure system abnormality, regulator abnormality, fuel leakage abnormality, intake pressure sensor abnormality, water temperature sensor, throttle sensor, thermostat abnormality, injector abnormality, fuel pump abnormality, knock sensor abnormality, ionic current value abnormality, exhaust gas recirculation (Hereinafter referred to as EGR (Exhaust Gas Recirculation)) system abnormality, catalyst deterioration detection, tank internal pressure sensor abnormality, vehicle speed sensor abnormality, battery temperature sensor abnormality, exhaust temperature sensor abnormality, oil temperature sensor abnormality, turbine speed sensor abnormality, CO clutch speed sensor error, NC2 speed sensor error Usually, items such as solenoid abnormality and CAN communication abnormality are included.
Further, as shown in Table 1, abnormalities in the ECU and the NRAM are included in the non-emission portion.
また、エンジンECU100が上述した部位に異常が発生した原因を特定するためにSRAM114に記録させる車両の状態データには、以下のものがある。なお、以下に挙げるすべての項目を記録する必要はなく、取捨選択することも可能である。
まず、上述した法規関連項目の異常原因を特定するために使用される車両の状態データには、表2に示すように、エンジン水温、吸気管圧力、エンジン回転数、車速、点火時期(例えば、進角時期)、吸気温度、エアフロー率、スロットル開度、フロントO2センサ出力、リアO2センサ出力、エンジン始動時間、トータル燃料補正量、A/Fセンサのセンサ出力電圧、EGR出力、EGRエラー、エバポパージ出力、大気圧、触媒温度、電源電圧、絶対負荷値、目標空燃比、相対スロットル開度、雰囲気温度、スロットル絶対位置センサ、アクセルペダル絶対位置センサ、スロットルアクチュエータ出力、可変バルブタイミング・リフト機構(以下、VVTL(Variable Valve Timing and Lift)と呼ぶ)の目標位置、油圧スイッチ、VVTL用OCVの駆動デューティ、VVT保持デューティの学習値、VVT変位角、OCV駆動要求デューティ、EXVVTのデューティ学習値、EXVVT変位角、EXOCV駆動要求デューティ値、TVVT角度換算値などが挙げられる。
また、上述したエミッション関連、エミッショ非関連部位の異常を検出するために使用される車両の状態データには、表2に示すように、エンジン水温、吸気管圧力、エンジン回転数、車速、点火時期進角、吸気温度、エアフロー率、スロットル開度、フロントO2センサ出力、リアO2センサ出力、エンジン始動時間、トータル燃料補正量、A/Fセンサのセンサ出力電圧、EGR出力、EGRエラー、エバポパージ出力、大気圧、触媒温度、電源電圧、目標空燃比、スロットル絶対位置センサ、アクセルペダル絶対位置センサ、スロットルアクチュエータ出力、充電制御バッテリ電流、充電制御バッテリ液温、オルタフィールドデューティ、目標過給圧、過給圧VSV(Vacuum Switching Valve)制御デューティ比、アイドリング信号、A/C信号、電気信号、STP信号、パワステ信号、吸気側目標変位角、吸気側実変位角、吸気側制御ディーティ比、排気側目標変位角、排気側実変位角、排気側制御デューティ比、ガス圧センサ値、EGRステップ数、油圧スイッチ、VVTL用OCVの駆動デューティ、VVT保持デューティの学習値、VVT変位角、OCV駆動要求デューティ、EXVVTのデューティ学習値、EXVVT変位角、EXOCV駆動要求デューティ値、TVVT角度換算値、アイドルスピードコントロール制御(以下、ISCと略記する)のステップ位置、ISCのデューティ値、燃料噴射量、エンジン始動時の水温、エンジン始動時の吸気温、燃料噴射時間などが挙げられる。
Further, the vehicle state data recorded in the
First, as shown in Table 2, the vehicle state data used to identify the cause of abnormality of the above-mentioned legally relevant items includes engine water temperature, intake pipe pressure, engine speed, vehicle speed, ignition timing (for example, Advance timing), intake air temperature, air flow rate, throttle opening, front O2 sensor output, rear O2 sensor output, engine start time, total fuel correction amount, A / F sensor output voltage, EGR output, EGR error, evaporation purge Output, atmospheric pressure, catalyst temperature, power supply voltage, absolute load value, target air-fuel ratio, relative throttle opening, atmosphere temperature, throttle absolute position sensor, accelerator pedal absolute position sensor, throttle actuator output, variable valve timing / lift mechanism , VVTL (Variable Valve Timing and Lift) target position, hydraulic switch, VVTL OC Drive duty, VVT holding duty learned value, VVT displacement angle, OCV drive request duty, the duty learned value EXvvt, EXvvt displacement angle, EXOCV driving target duty cycle, and the like TVVT angle conversion value.
In addition, as shown in Table 2, the vehicle state data used for detecting abnormalities in the emission-related and non-emission-related parts described above includes engine water temperature, intake pipe pressure, engine speed, vehicle speed, ignition timing. Advance angle, intake air temperature, air flow rate, throttle opening, front O2 sensor output, rear O2 sensor output, engine start time, total fuel correction amount, A / F sensor output voltage, EGR output, EGR error, evaporation purge output, Atmospheric pressure, catalyst temperature, power supply voltage, target air-fuel ratio, throttle absolute position sensor, accelerator pedal absolute position sensor, throttle actuator output, charge control battery current, charge control battery fluid temperature, alter field duty, target supercharging pressure, supercharging Pressure VSV (Vacuum Switching Valve) control duty ratio, idling signal, A / C signal Signal, electrical signal, STP signal, power steering signal, intake side target displacement angle, intake side actual displacement angle, intake side control duty ratio, exhaust side target displacement angle, exhaust side actual displacement angle, exhaust side control duty ratio, gas pressure sensor Value, EGR step number, hydraulic switch, VVTL OCV drive duty, VVT hold duty learning value, VVT displacement angle, OCV drive request duty, EXVVT duty learning value, EXVVT displacement angle, EXOCV drive request duty value, TVVT angle Examples include a converted value, an idle speed control control (hereinafter abbreviated as ISC) step position, an ISC duty value, a fuel injection amount, a water temperature at engine start, an intake air temperature at engine start, and a fuel injection time.
SRAM114に記録された車両の状態データは、車両の故障診断等に使用される。修理、メンテナンス等を行う作業員は、ツール等を使用してSRAM114に記録された車両の状態データを読み出し、読み出した状態データに基づいて故障箇所や故障原因を特定し、センサや部品を交換する。
このとき、SRAM114に記録される車両の状態データは、重要度の高い部位の故障を特定可能な状態データが記録されている程、優先度の高いものが記録されている程、故障箇所や故障原因の特定に有効となる。そこで、本実施例では、上述した最も重要度の高い法規関連部位の異常を検出するための車両の状態データが優先度の高いデータとしてSRAM114に記録される。次に重要度の高いエミッション関連部位の異常を検出するための車両の状態データの優先度を法規関連部位のものよりも低く設定している。また、エミッション非関連部位の異常を検出するための車両の状態データの優先度をエミッション関連部位のものよりも低く設定している。
また、SRAM114へ車両の状態データを記録する際に、優先度の高い異常を判定する車両の状態データが、優先度の低い異常を判定する車両の状態データに上書きされないように制御している。この制御手順について、図8を参照しながら説明する。
The vehicle state data recorded in the
At this time, the status data of the vehicle recorded in the
Further, when the vehicle state data is recorded in the
図8には、リングバッファ113aに記憶した状態データと、この状態データのSRAM114への記録タイミングとを示す。
マイコン103は、各種センサ11〜20によって測定されたセンサ信号や、スイッチ21、22の状態を示す状態信号等の車両の状態データを512msecごとにリングバッファ113aに記憶する。すなわち、図8に示すstep1,step2,step3,・・・のタイミングでリングバッファ113aに車両の状態データを記憶する。
また、図8に示す例では、step1のタイミングで、優先度2(以下では、低優先度の異常を判定する状態データを優先度2と表記し、高優先度の異常を判定する状態データを優先度1と表記する)の状態データがリングバッファ113aに記録され、この状態データが図8に示すタイミングAで仮異常に設定されたとする。さらに、図8に示すstep2のタイミングで、優先度1の状態データをリングバッファ113aに記憶し、この状態データが図8に示すタイミングBで仮異常に設定されたとする。
なお、タイミングAにおいて優先度2の状態データは、異常が発生する前の状態データと、異常が発生した際の状態データとがリングバッファ113aに記憶されているとする。同様に、タイミングBにおいて優先度1の状態データは、異常が発生する前の状態データと、異常が発生した際の状態データとがリングバッファ113aに記録されているとする。また、step1で行われる優先度2の状態データのリングバッファ113aへの記録と、step2で行われる優先度1の状態データのリングバッファ113aへの記録とは、数十msec以内に行われるものとする。
FIG. 8 shows the status data stored in the
The
In the example shown in FIG. 8, at the timing of
It is assumed that the status data of priority 2 at timing A is stored in the
マイコン103は、優先度2の状態データが仮異常に設定された段階(図8のタイミングA)で、優先度2の状態データをSRAM114の仮異常データ記録領域130に記録する。優先度2の状態データが仮異常に設定された段階では、異常が発生する前の状態データと、異常が発生した際の状態データとがリングバッファ113aに記憶されているので、これらの情報がSRAM114の仮異常データ記録領域130に記録される。なお、図8では、優先度2の状態データの異常が発生する前の状態データを「優2前」と表記する。又、優先度2の状態データの異常が発生した際の状態データを「優2異」と表記する。同様に優先度1の状態データの異常が発生する前の状態データを「優1前」と表記する。又、優先度1の異常が発生した際の状態データを「優1異」と表記する。
The
次のstep2(step1から512msec経過)でリングバッファ113aに取り込まれた優先度1の状態データが、図8に示すBのタイミングで仮異常に設定されたとする。
マイコン103は、優先度1の状態データのうち、異常発生前の状態データと、異常が発生した際の状態データとをリングバッファ113aからSRAM114の仮異常データ記録領域130に記録する。このとき、SRAM114の仮異常データ記録領域130に記録されていた優先度2の状態データは、消去(優先度1の状態データによって上書き)される。
Assume that the status data of
The
次のstep3(step1から(512×3)msec経過)のタイミングでは、優先度1の状態データのうち、異常発生から所定時間経過後の状態データがリングバッファ113aに記憶する。マイコン103は、リングバッファ113aに記憶した所定時間経過後の優先度1の状態データをSRAM114の仮異常データ記録領域130に記録する。なお、以下では、優先度1の状態データの異常発生から所定時間経過後の状態データを「優1後」と表記する。
At the timing of the next step 3 (elapse of (512 × 3) msec from step 1), among the state data of
次に、図8に示すタイミングCで優先度2の状態データが本異常に設定されたとする。
マイコン103は、優先度2の状態データをSRAM114の本異常データ記録領域140に記録する。なお、優先度2の状態データはリングバッファ113aには記憶していないので、再度種々のセンサから取得したものをSRAM114の本異常データ記録領域140に記録する。
Next, it is assumed that the status data with the priority 2 is set to the abnormality at the timing C shown in FIG.
The
次に、図8に示すタイミングDで優先度1の状態データが本異常に設定されたとする。
マイコン103は、SRAM114の本異常データ記録領域140に記録されていた優先度2の状態データを消去して、SRAM114の仮異常データ記録領域130に記録されていた優先度1の状態データをSRAM114の本異常データ記録領域140に記録する。
このとき、マイコン103はSRAM114の仮異常データ記録領域130に記録されていた優先度1の状態データは、仮異常データ記録領域130から消去する。
Next, it is assumed that the status data with the
The
At this time, the
次に、低優先度の制御処理と高優先度の制御処理とが、車両データの異常を検出して不揮発性メモリに異常値を記録する処理をそれぞれ並行して実行する制御処理について説明する。なお、図9では、高優先度の制御処理と低優先度の制御処理との2つの制御処理を並行して行う場合を説明するが、さらに複数の制御処理の処理を並行して行うことも可能である。 Next, a description will be given of a control process in which a low-priority control process and a high-priority control process execute in parallel a process of detecting an abnormality in vehicle data and recording an abnormal value in a nonvolatile memory. FIG. 9 illustrates a case where two control processes of a high priority control process and a low priority control process are performed in parallel, but a plurality of control processes may be performed in parallel. Is possible.
図9に示すタイミングAで、低優先度の制御処理が状態データの異常値を検出し、異常値を検出した状態データの仮異常データ記録領域130への記録を開始したとする。その後、タイミングBで、高優先度の制御処理が状態データの異常値を検出したとする。高優先度の制御処理は、他の制御処理が状態データの仮異常データ記録領域130への記録を行っているか否かを判定するため、記録中フラグを参照する。記録中フラグは、制御処理がSRAM114の仮異常データ記録領域130に状態データを記録するときに記録されるフラグであって、記録が終了すると、制御処理によって記録中フラグは消去される。なお、他の制御処理とは、高優先度の制御処理であっても低優先度の制御処理であってもよい。ここでは、仮異常データ記録領域130に状態データを記録中の制御処理の優先度は低優先度であるとする。
記録中フラグが記録されている場合、高優先度の制御処理は、現在、他の制御処理によって仮異常データ記録領域130に記録されている状態データの優先度は、高優先度の制御処理が異常値を検出した状態データの優先度よりも高いか否かを判定する。高優先度の制御処理は、自身で異常値を検出した状態データの優先度が、他の制御処理によって仮異常データ記録領域130に記録されている状態データの優先度よりも低いと判定した場合、自身で異常値を検出した状態データの仮異常データ記録領域130への記録を取り止める。高優先度の制御処理が検出した状態データよりも優先度の高い状態データが他の制御処理にって仮異常データ記録領域130に記録されているので、高優先度の制御処理の検出した状態データの記録を取り止める。
Assume that at the timing A shown in FIG. 9, the low-priority control process detects an abnormal value of the status data and starts recording the status data in which the abnormal value is detected in the temporary abnormal
When the recording flag is recorded, the high-priority control process is performed by the high-priority control process. The priority of the status data currently recorded in the temporary abnormal
また、高優先度の制御処理が異常値を検出した状態データの優先度が、他の制御処理によって仮異常データ記録領域130に記録されている状態データの優先度よりも高い場合、高優先度の制御処理は、他の制御処理による仮異常データ記録領域130への状態データの記録が終了するまで待機する。
高優先度の制御処理は、所定時間ごとに記録中フラグを参照して、記録中フラグが記録されているか否かを判定する(図9に示すタイミングC,D,F)。記録中フラグが記録されている場合には、他の制御処理によって仮異常データ記録領域130への記録が行われていると判定し、高優先度の制御処理は再度待機状態になる。
また、記録中フラグが消去されている場合、高優先度の制御処理は、他の制御処理による仮異常データ記録領域130への状態データの記録が終了していると判定し、仮異常データ記録領域130への状態データの記録要求を出力する。そして、高優先度の制御処理は、仮異常データ記録領域130への状態データの記録を開始する(図9に示すタイミングF)。
Further, when the priority of the state data in which the high priority control process has detected an abnormal value is higher than the priority of the state data recorded in the temporary abnormal
The high-priority control process refers to the recording flag every predetermined time to determine whether or not the recording flag is recorded (timing C, D, and F shown in FIG. 9). When the recording flag is recorded, it is determined that recording in the temporary abnormal
Further, when the recording flag is erased, the high priority control process determines that the recording of the status data in the temporary abnormal
図9に示すタイミングGで高優先度の制御処理による状態データの記録が終了すると、SRAM114の仮異常データ記録領域130には、高優先度の制御処理によって記録された優先度の高い状態データが記録されている。又、高優先度の制御処理による仮異常データ記録領域130への記録が行われない場合、他の制御処理によって記録された優先度の高い状態データが仮異常データ記録領域130に記録されている。従って、制御処理の優先度によらず状態データに付加された優先度の高い状態データをSRAM114に記録することができる。なお、図9に示す例では、仮異常の判定がなされた状態データの仮異常データ記録領域130への記録を例に説明したが、本異常の判定がなされた状態データの本異常データ記録領域140への記録のときにも同様の手順で状態データの記録がなされる。
When the recording of the state data by the high priority control process is completed at the timing G shown in FIG. 9, the high priority state data recorded by the high priority control process is stored in the temporary abnormal
次に、図10に示すフローチャートを参照しながら高優先度の制御処理の処理フローを説明する。
高優先度の制御処理は、リングバッファ113aに記憶された車両の状態データに異常値を検出し、仮異常の判定を行うと(ステップS1/YES)、他の制御処理によってSRAM114の仮異常データ記録領域130に状態データが記録されているか否かを判定する(ステップS2)。制御処理はSRAM114に状態データを記録するときには、記録中であることを示す記録中フラグを記録している。高優先度の制御処理は、この記録中フラグを参照することで他の制御処理が仮異常データ記録領域130に状態データを記録しているか否かを判定する。
Next, a processing flow of high priority control processing will be described with reference to the flowchart shown in FIG.
In the high-priority control process, when an abnormal value is detected in the vehicle state data stored in the
記録中フラグが記録され、他の制御処理によって仮異常データ記録領域130に状態データが記録されていると判定すると、高優先度の制御処理は、異常値を検出した状態データの優先度は、現在、他の制御処理によって仮異常データ記録領域130に記録されている状態データの優先度よりも高いか否かを判定する(ステップS3)。異常値を検出した状態データの優先度が、現在、他の制御処理によって仮異常データ記録領域130に記録されている状態データの優先度よりも低い場合には(ステップS3/NO)、高優先度の制御処理は、異常値を検出した状態データの仮異常データ記録領域130への記録を中止し(ステップS4)、処理を終了する。他の制御処理で記録されている状態データの優先度のほうが、高優先度の制御処理が異常値を検出した状態データの優先度よりも高いので、仮異常データ記録領域130への状態データの記録を取り止める。
When it is determined that the recording flag is recorded and the status data is recorded in the temporary abnormal
また、高優先度の制御処理が異常値を検出した状態データの優先度が、現在、他の制御処理によって仮異常データ記録領域130に記録されている状態データの優先度よりも高い場合には(ステップS3/YES)、高優先度の制御処理は状態データの仮異常データ記録領域130への記録を所定時間待機する(ステップS5)。所定時間を経過すると、高優先度の制御処理は、他の制御処理で状態データの仮異常データ記録領域130への記録が実行されているか否かを判定する(ステップS6)。高優先度の制御処理は、上述した記録中フラグを参照することで他の制御処理が仮異常データ記録領域130に状態データを記録しているか否かを判定する。他の制御処理によって仮異常データ記録領域130に状態データが記録されていると判定すると(ステップS6/YES)、高優先度の制御処理は、また、所定時間待機する。また、他の制御処理による仮異常データ記録領域130への状態データの記録が終了したと判定した場合には(ステップS6/NO)、高優先度の制御処理は、仮異常データ記録領域130への状態データの記録を開始する(ステップS7)。
Further, when the priority of the status data in which the high priority control process has detected an abnormal value is higher than the priority of the status data currently recorded in the temporary abnormal
なお、図10に示すフローチャートでは、他の制御処理で記録中の状態データの優先度よりも優先度の高い状態データに異常値を検出した場合に、検出した状態データをSRAM114に記録するようにしている。これ以外に、例えば、制御処理の優先度を比較して異常値を検出した状態データのSRAM114への記録を行うか否かを判定してもよい。例えば、低優先度の制御処理がSRAM114への状態データの記録を行っているときに、高優先度の制御処理で異常値を示す状態データを検出したとする。この場合、高優先度の制御処理は、状態データの優先度の比較を行わず、低優先度の制御処理によるSRAM114への状態データの記録完了を待つ。そして、低優先度の制御処理によるSRAM114への記録が終了すると、異常値を検出した状態データをSRAM114に記録する。優先度の高い制御処理に、優先度の高い状態データの処理を割り当てるようにすれば、制御処理の優先度の比較でもSRAM114に優先度の高い状態データを記録しておくことができる。
In the flowchart shown in FIG. 10, when an abnormal value is detected in the status data having a higher priority than the priority of the status data being recorded in another control process, the detected status data is recorded in the
上述した実施例は本発明の好適な実施の例である。但し、これに限定されるものではなく、本発明の要旨を逸脱しない範囲内において種々変形実施が可能である。 The embodiment described above is a preferred embodiment of the present invention. However, the present invention is not limited to this, and various modifications can be made without departing from the scope of the present invention.
100 エンジンECU
103 マイコン(制御装置)
111 CPU(実行部)
112 ROM
113 NRAM
113a リングバッファ
114 SRAM
115 入出力部
120 異常検出箇所記録領域
130 仮異常データ記録領域
140 本異常データ記録領域
151 警報ランプ
152 インジェクタ
153 イグナイタ
154 点火プラグ
100 engine ECU
103 Microcomputer (control device)
111 CPU (execution unit)
112 ROM
113 NRAM
115 I /
Claims (4)
制御に関するデータを記憶するための記憶部と、
被制御部に関する制御処理と、
制御処理において、入力信号に基づいて所定部位の異常を判定する際の、制御に関するデータを記憶部へ記憶する記憶制御処理と、
制御処理に含まれる記憶制御処理が複数実行される場合は、先行して実行される制御処理における異常判定の際の制御に関するデータを記憶部へ記憶した後、その後に続いて実行される制御処理における異常判定の際の制御に関するデータを記憶部へ上書記憶する上書記憶制御処理と、
制御処理が一定時間内に複数実行される場合で、先行して実行される制御処理に設定された優先度よりも、その後に続いて実行される制御処理に設定された優先度が高い場合は、後に続いて実行される制御処理を、先行して実行される制御処理よりも優先して実行する優先制御処理と、
制御処理における記憶制御処理が一定時間内に複数実行される場合で、先行して実行される制御処理に設定された優先度よりも、その後に続いて実行される制御処理に設定された優先度が高い場合は、後に続いて実行される制御処理における記憶制御処理の記憶制御を所定時間経過した後に実行する優先制御特別処理と、を実行する制御部と、
を備える制御装置。 A control device for storing and controlling data related to control when controlling a controlled part,
A storage unit for storing data related to control;
Control processing related to the controlled part;
In the control process, a storage control process for storing data related to the control in the storage unit when determining an abnormality of the predetermined part based on the input signal;
In the case where a plurality of storage control processes included in the control process are executed, the control process executed after the data related to the control at the time of abnormality determination in the control process executed in advance is stored in the storage unit An overwriting storage control process for overwriting and storing data related to the control at the time of abnormality determination in the storage unit;
When multiple control processes are executed within a certain time and the priority set for the control process executed subsequently is higher than the priority set for the control process executed in advance. , A priority control process for executing a control process that is subsequently executed in preference to a control process that is executed in advance;
In the case where a plurality of storage control processes in the control process are executed within a predetermined time, the priority set in the control process executed subsequently is higher than the priority set in the control process executed in advance. Is high, a control unit that executes a priority control special process that is executed after a predetermined time has elapsed in the storage control of the storage control process in a control process that is subsequently executed,
A control device comprising:
制御処理において、入力信号に基づいて所定部位の異常を判定する際の、制御に関するデータを記憶部へ記憶する記憶制御処理と、
制御処理に含まれる記憶制御処理が複数実行される場合は、先行して実行される制御処理における異常判定の際の制御に関するデータを記憶部へ記憶した後、その後に続いて実行される制御処理における異常判定の際の制御に関するデータを記憶部へ上書記憶する上書記憶制御処理と、
制御処理が一定時間内に複数実行される場合で、先行して実行される制御処理に設定された優先度よりも、その後に続いて実行される制御処理に設定された優先度が高い場合は、後に続いて実行される制御処理を、先行して実行される制御処理よりも優先して実行する優先制御処理と、
制御処理における記憶制御処理が一定時間内に複数実行される場合で、先行して実行される制御処理に設定された優先度よりも、その後に続いて実行される制御処理に設定された優先度が高い場合は、後に続いて実行される制御処理における記憶制御処理の記憶制御を所定時間経過した後に実行する優先制御特別処理と有する制御方法。 Control processing related to the controlled part;
In the control process, a storage control process for storing data related to the control in the storage unit when determining an abnormality of the predetermined part based on the input signal;
In the case where a plurality of storage control processes included in the control process are executed, the control process executed after the data related to the control at the time of abnormality determination in the control process executed in advance is stored in the storage unit An overwriting storage control process for overwriting and storing data related to the control at the time of abnormality determination in the storage unit;
When multiple control processes are executed within a certain time and the priority set for the control process executed subsequently is higher than the priority set for the control process executed in advance. , A priority control process for executing a control process that is subsequently executed in preference to a control process that is executed in advance;
In the case where a plurality of storage control processes in the control process are executed within a predetermined time, the priority set in the control process executed subsequently is higher than the priority set in the control process executed in advance. Is high, the control method includes a priority control special process that is executed after a predetermined time elapses in the storage control of the storage control process in the control process that is subsequently executed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008284907A JP5208680B2 (en) | 2008-11-05 | 2008-11-05 | Control apparatus and control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008284907A JP5208680B2 (en) | 2008-11-05 | 2008-11-05 | Control apparatus and control method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2010111234A true JP2010111234A (en) | 2010-05-20 |
JP5208680B2 JP5208680B2 (en) | 2013-06-12 |
Family
ID=42300162
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008284907A Active JP5208680B2 (en) | 2008-11-05 | 2008-11-05 | Control apparatus and control method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5208680B2 (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010173494A (en) * | 2009-01-29 | 2010-08-12 | Fujitsu Ten Ltd | Control device and control method |
JP2017097620A (en) * | 2015-11-24 | 2017-06-01 | トヨタ自動車株式会社 | Software update apparatus |
JP2017171065A (en) * | 2016-03-23 | 2017-09-28 | 株式会社ケーヒン | Electronic control apparatus |
JP2019036774A (en) * | 2017-08-10 | 2019-03-07 | 株式会社デンソー | Electronic control device |
JP7346968B2 (en) | 2019-07-22 | 2023-09-20 | 株式会社デンソー | Rotating electrical machine control system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07172251A (en) * | 1993-12-20 | 1995-07-11 | Mazda Motor Corp | Vehicle failure diagnostic device |
JP2001331531A (en) * | 2000-05-19 | 2001-11-30 | Komatsu Ltd | Electronic controller for vehicle |
JP2003260993A (en) * | 2002-03-11 | 2003-09-16 | Nissan Motor Co Ltd | Vehicle data recorder |
JP2006090356A (en) * | 2004-09-21 | 2006-04-06 | Denso Corp | Vehicle control device and processing load control program |
-
2008
- 2008-11-05 JP JP2008284907A patent/JP5208680B2/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07172251A (en) * | 1993-12-20 | 1995-07-11 | Mazda Motor Corp | Vehicle failure diagnostic device |
JP2001331531A (en) * | 2000-05-19 | 2001-11-30 | Komatsu Ltd | Electronic controller for vehicle |
JP2003260993A (en) * | 2002-03-11 | 2003-09-16 | Nissan Motor Co Ltd | Vehicle data recorder |
JP2006090356A (en) * | 2004-09-21 | 2006-04-06 | Denso Corp | Vehicle control device and processing load control program |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010173494A (en) * | 2009-01-29 | 2010-08-12 | Fujitsu Ten Ltd | Control device and control method |
JP2017097620A (en) * | 2015-11-24 | 2017-06-01 | トヨタ自動車株式会社 | Software update apparatus |
JP2017171065A (en) * | 2016-03-23 | 2017-09-28 | 株式会社ケーヒン | Electronic control apparatus |
JP2019036774A (en) * | 2017-08-10 | 2019-03-07 | 株式会社デンソー | Electronic control device |
JP6992318B2 (en) | 2017-08-10 | 2022-01-13 | 株式会社デンソー | Electronic control device |
JP7346968B2 (en) | 2019-07-22 | 2023-09-20 | 株式会社デンソー | Rotating electrical machine control system |
Also Published As
Publication number | Publication date |
---|---|
JP5208680B2 (en) | 2013-06-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5296568B2 (en) | Control apparatus and control method | |
JP5285458B2 (en) | Control apparatus and control method | |
US7962274B2 (en) | Vehicle-mounted engine control apparatus | |
US20100031941A1 (en) | Control device and control method for internal combustion engine | |
US7198038B2 (en) | Learned EGR valve position control | |
JPH05280410A (en) | Abnormality diagnostic device of internal combustion engine | |
JP5208680B2 (en) | Control apparatus and control method | |
JP2010106785A (en) | Abnormality diagnostic device for emission gas recirculating system | |
JP2000291468A (en) | Controller for internal combustion engine | |
CN103590958A (en) | Method for controlling an ignition system of an internal combustion engine and an ignition system | |
JP2007056783A (en) | Controller for diesel internal combustion engine | |
JP5161805B2 (en) | Control apparatus and control method | |
JP4475207B2 (en) | Control device for internal combustion engine | |
JP2014061793A (en) | Automotive electronic control unit | |
JP4619299B2 (en) | Method for determining the combustion state of an internal combustion engine | |
JP4366602B2 (en) | Fuel control device for start of internal combustion engine | |
JP5773640B2 (en) | Control device for internal combustion engine | |
JP2007198290A (en) | Vehicle malfunction diagnosis device | |
JP5980112B2 (en) | Vehicle information storage processing device and vehicle information storage processing method | |
KR19990006988A (en) | Engine control apparatus and recording medium therefor | |
JP6275790B2 (en) | Electronic control unit for automobile | |
JP5980083B2 (en) | Vehicle information storage processing device and vehicle information storage processing method | |
JP2005226488A (en) | Electronic control device for vehicle | |
US7377239B2 (en) | Method for operating an internal combustion engine, computer program product, computer program, and control and/or regulating device for an internal combustion engine | |
JP2009025251A (en) | Abnormality diagnostic device for exhaust gas sensor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20111020 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20120530 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20130109 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20130205 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20130220 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20160301 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5208680 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |