JP2010111234A - Control device and control method - Google Patents

Control device and control method Download PDF

Info

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
Application number
JP2008284907A
Other languages
Japanese (ja)
Other versions
JP5208680B2 (en
Inventor
Masaya Minamida
将哉 南田
Koichi Ogaki
耕一 大垣
Kyo Tokuda
亨 徳田
Seiyu Kanaumi
成勇 金海
Mieko Kobayashi
美恵子 小林
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 Ten Ltd
Original Assignee
Denso Ten Ltd
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 Ten Ltd filed Critical Denso Ten Ltd
Priority to JP2008284907A priority Critical patent/JP5208680B2/en
Publication of JP2010111234A publication Critical patent/JP2010111234A/en
Application granted granted Critical
Publication of JP5208680B2 publication Critical patent/JP5208680B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Combined Controls Of Internal Combustion Engines (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a control device capable of storing vehicle data of high importance effective to identify a cause of failure in a storage part. <P>SOLUTION: This device includes a micro computer 103 for executing priority control processing to perform a following control processing in prior to a preceding control processing when a plurality of control processings are executed in a constant time, and when a priority set to the preceding control processing is higher than a priority set to the following control processing; and priority control special processing to perform a storage control of a storage control processing in the following control processing when a plurality of storage control processings in the control processing are executed in a constant time, and when a priority set to the following control processing is higher than a priority set to the preceding control processing. <P>COPYRIGHT: (C)2010,JPO&INPIT

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.

特開2003−260993号公報JP 2003-260993 A

しかしながら、高優先度の制御処理による不揮発性メモリへのデータ記録が終了した後に、低優先度の制御処理が不揮発性メモリへのデータ記録を再開した場合、高優先度の制御処理によって不揮発性メモリに記録されている車両データに、低優先度の制御処理の記録する車両データが上書きされてしまう場合がある。このとき、高優先度の制御処理の記録する車両データの優先度が、低優先度の制御処理の記録する車両データの優先度よりも高かった場合、故障原因の特定等にとって有効な車両データが不揮発性メモリから消去されてしまう恐れがある。   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) converter 101, an input circuit. 102, a microcomputer 103, and an output circuit 104.

A/D変換器101には、水温センサ11、バキュームセンサ12、吸気温センサ13、O2センサ14、スロットルポジションセンサ15、排気温センサ16、車速センサ17、ノックセンサ18、イオンセンサ19、その他センサ20等のセンサからのセンサ信号が入力される。
入力回路102には、スタータスイッチ21やアイドルスイッチ22からの信号が入力される。
The A / D converter 101 includes a water temperature sensor 11, a vacuum sensor 12, an intake air temperature sensor 13, an O2 sensor 14, a throttle position sensor 15, an exhaust temperature sensor 16, a vehicle speed sensor 17, a knock sensor 18, an ion sensor 19, and other sensors. Sensor signals from sensors such as 20 are input.
Signals from the starter switch 21 and the idle switch 22 are input to the input circuit 102.

水温センサ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 microcomputer 103.
The vacuum sensor 12 detects the amount of intake air in the intake passage that guides intake air to the engine, and transmits a signal representing the detection result to the microcomputer 103.
The intake air temperature sensor 13 detects the temperature of the intake air in the intake passage and transmits a signal representing the detection result to the microcomputer 103.
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 microcomputer 103.
The throttle position sensor 15 detects the opening of the throttle valve that is rotated by driving the motor, and transmits a signal representing the detection result to the microcomputer 103.
The exhaust temperature sensor 16 detects the exhaust temperature on the downstream side of the exhaust purification catalyst, and transmits a signal representing the detection result to the microcomputer 103.
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 microcomputer 103.
The knock sensor 18 detects engine vibration (knocking) and transmits a signal representing the detection result to the microcomputer 103.
The ion sensor 19 detects an ion current generated when pre-ignition occurs, and transmits a signal representing the detection result to the microcomputer 103.
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 starter switch 21 is a switch for starting the engine, and outputs a high level signal to the microcomputer 103 when the switch is on. The idle switch 22 outputs a signal to the microcomputer 103 that becomes a high level when the accelerator pedal is fully closed.

エンジン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. Engine ECU 100 then outputs a drive signal for driving injector 152 and spark plug 154 provided for each cylinder via output circuit 104 based on the calculation result.

エンジンECU100の出力回路104には、警報ランプ151、インジェクタ152、イグナイタ153等が接続されている。
警報ランプ151は、エンジンECU100の故障監視により、異常の発生を検出した場合に点灯されるランプである。故障監視の詳細については後述する。
インジェクタ152は、エンジンECU100の制御により開閉駆動されて燃料を噴射する電磁弁から構成される。
イグナイタ153は、エンジンECU100の制御により不図示の点火コイルにバッテリ電圧を供給し、点火コイルに蓄えられた高電圧により点火プラグ154で火花を発生させて、燃焼室内の混合気を燃焼させる。
An alarm lamp 151, an injector 152, an igniter 153, and the like are connected to the output circuit 104 of the engine ECU 100.
Alarm lamp 151 is a lamp that is turned on when occurrence of an abnormality is detected by failure monitoring of engine ECU 100. Details of the failure monitoring will be described later.
The injector 152 is configured by an electromagnetic valve that is driven to open and close under the control of the engine ECU 100 and injects fuel.
The igniter 153 supplies battery voltage to an ignition coil (not shown) under the control of the engine ECU 100, generates a spark with the ignition plug 154 by the high voltage stored in the ignition coil, and burns the air-fuel mixture in the combustion chamber.

図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 engine ECU 100.
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 engine ECU 100, the CVT-ECU 201, the brake ECU 202, the navigation ECU 203, the telematics ECU 204, the light ECU 205, the airbag ECU 206, and the door ECU 207 as ECUs for controlling the vehicle, but communicates with the engine ECU 100. ECU to perform is not restricted to these.

図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 microcomputer 103.
The microcomputer 103 includes a CPU (Central Processing Unit) 111, a ROM 112, a normal RAM (Normal Random Access Memory (hereinafter abbreviated as NRAM) 113, a standby RAM (Standby Random Access Memory (hereinafter abbreviated as SRAM 114)) 114, an input / output Part 115.
The NRAM 113 is a volatile memory, and when the ignition switch is turned off, the power supply to the NRAM 113 is stopped and information recorded in the NRAM 113 is also erased. In addition, the SRAM 114 retains information to be recorded by receiving power from the battery even when the ignition switch is turned off.

CPU111は、ROM112に記録されたプログラムに従って演算を行うことで、制御処理と、記憶制御処理と、上書記憶制御処理と、優先制御処理と、優先制御特別処理とを実行する。
なお、制御処理とは、インジェクタ152やイグナイタ153等の被制御部を制御する制御処理である。
記憶制御処理は、制御処理において、入力信号に基づいて所定部位の異常を判定する際の、制御に関するデータをSRAM114へ記憶する処理である。
上書記憶制御処理とは、制御処理に含まれる記憶制御処理が複数実行される場合は、先行して実行される制御処理における異常判定の際の制御に関するデータをSRAM114へ記憶した後、その後に続いて実行される制御処理における異常判定の際の制御に関するデータをSRAM114へ上書記憶する処理である。
優先制御処理とは、制御処理が一定時間内に複数実行される場合で、先行して実行される制御処理に設定された優先度よりも、その後に続いて実行される制御処理に設定された優先度が高い場合は、後に続いて実行される制御処理を、先行して実行される制御処理よりも優先して実行する処理である。
優先制御特別処理とは、制御処理における記憶制御処理が一定時間内に複数実行される場合で、先行して実行される制御処理に設定された優先度よりも、その後に続いて実行される制御処理に設定された優先度が高い場合は、後に続いて実行される制御処理における記憶制御処理の記憶制御を所定時間経過した後に実行する処理である。
The CPU 111 performs a control process, a storage control process, an overwrite storage control process, a priority control process, and a priority control special process by performing an operation according to a program recorded in the ROM 112.
The control process is a control process for controlling controlled parts such as the injector 152 and the igniter 153.
The storage control process is a process of storing data related to control in the SRAM 114 when determining an abnormality of a predetermined part based on an input signal in the control process.
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 SRAM 114, and thereafter This is a process of overwriting and storing in the SRAM 114 data relating to the control at the time of abnormality determination in the control process executed subsequently.
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 CPU 111 has a function of executing a plurality of control processes in parallel. A priority is set for each control process. For example, the high-priority control process includes a process of detecting an abnormal value of a sensor signal or a switch signal (that is, a signal input irregularly without synchronizing with time) used for engine control. In particular, the high-priority control processing in the engine ECU 100 includes control that requires a dense execution cycle such as fuel injection control and ignition control based on a crank angle sensor. The low priority control process includes a process of detecting whether or not the sensor signal of the water temperature sensor 11 (that is, a signal input at a predetermined interval in synchronization with time) indicates an abnormal value. In particular, in the low-priority control processing in the engine ECU 100, for example, control executed using a sensor value of the water temperature sensor 11 whose state change degree is not higher than a crank angle used in fuel injection control or ignition control, for example. Say.
Further, the CPU 111 uses the NRAM 113 as a ring buffer (hereinafter, the NRAM 113 is referred to as a ring buffer 113a), and rings the vehicle state data measured by the sensors 11 to 20 shown in FIG. The data is sequentially stored in the buffer 113a. When the storage amount of the ring buffer 113a exceeds a predetermined capacity of the ring buffer 113a, the CPU 111 stores new state data in the ring buffer 113a instead of the oldest state data. The details of the vehicle state data will be described later.

また、CPU111は、リングバッファ113aに記憶した車両の状態データに基づいて、車両の異常を検出する。この異常検出の処理について図6を参照しながら説明する。
例えば、リングバッファ113aに車両の状態データとして記憶したセンサ値が異常値を示した場合や、センサ値が一定値のまま変動しなかった場合には、異常値を検出したことを示すフラグが立てられる(図6(a)に示す異常値検出フラグに1が記録される)。また、異常値の検出により仮異常判定の判定結果を示すフラグに1が記録される(図6(b)参照)。なお、仮異常判定とは、センサ値が異常値を示したか否かの判定であり、この後に続く本異常判定の開始を示す。本異常判定では、図6(e)に示す異常カウンタのカウントを開始して、センサ値の異常が所定時間以上継続しているか否かを判定する。仮異常判定では、一度異常値を示したセンサ値を異常と判定してしまうので、本異常判定でノイズ等によらず一定時間以上継続して異常値を示すセンサ値を異常と判定する。異常カウンタのカウント値が図6(d)に示す異常検出しきい値を超えると、本異常判定の判定結果を示すフラグに1が記録され(図6(c)参照)、センサ値の異常が確定する(本異常と判定する)。
なお、センサ値が異常値から正常値に戻った場合には、図6(a)に示す異常値検出フラグに0が記録され、図6(f)に示す正常カウンタのカウントを開始する。正常カウンタのカウント値が正常検出しきい値を超えると、センサ値は正常であると判定する。
Further, the CPU 111 detects an abnormality of the vehicle based on the vehicle state data stored in the ring buffer 113a. This abnormality detection process will be described with reference to FIG.
For example, when the sensor value stored as the vehicle state data in the ring buffer 113a indicates an abnormal value, or when the sensor value does not change with a constant value, a flag indicating that the abnormal value has been detected is set. (1 is recorded in the abnormal value detection flag shown in FIG. 6A). Moreover, 1 is recorded in the flag which shows the determination result of temporary abnormality determination by detection of an abnormal value (refer FIG.6 (b)). The provisional abnormality determination is a determination as to whether or not the sensor value indicates an abnormal value, and indicates the start of the subsequent abnormality determination. In this abnormality determination, the abnormality counter shown in FIG. 6 (e) is started to determine whether or not the abnormality of the sensor value has continued for a predetermined time or more. In the temporary abnormality determination, the sensor value that once indicated an abnormal value is determined to be abnormal. Therefore, in this abnormality determination, a sensor value that indicates an abnormal value continues to be determined to be abnormal regardless of noise or the like. When the count value of the abnormality counter exceeds the abnormality detection threshold value shown in FIG. 6D, 1 is recorded in the flag indicating the determination result of the abnormality determination (see FIG. 6C), and the sensor value abnormality is detected. Confirm (determine this abnormality).
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 engine ECU 100 detects an abnormality other than the sensor value.
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 SRAM 114. When the CPU 111 detects state data indicating an abnormal value from the vehicle state data stored in the ring buffer 113a, the detected state data and the vehicle state data stored in the ring buffer 113a at the same timing as the detected state data are detected. The vehicle state data stored in the ring buffer 113a immediately before the occurrence of the trouble and the vehicle state data stored in the ring buffer 113a after a predetermined time has elapsed since the occurrence of the abnormality are recorded in the SRAM 114. In the SRAM 114, as shown in FIG. 7, an area for recording information for specifying an abnormality occurrence location specified by the CPU 111 (hereinafter referred to as an abnormality detection location recording area 120) and state data determined as a temporary abnormality are stored. It has an area for recording (hereinafter referred to as temporary abnormal data recording area 130) and an area for recording state data determined to be abnormal (hereinafter referred to as abnormal data recording area 140).
In addition, the temporary abnormality data recording area 130 records the state data immediately before the occurrence of the abnormality (hereinafter referred to as the state data recording area 131 before the abnormality occurs) and the state data when the abnormality occurs. An area (hereinafter referred to as a state data recording area 132 when an abnormality occurs) and an area for recording state data after a predetermined time has elapsed since the occurrence of the abnormality (hereinafter referred to as a state data recording area 133 after the occurrence of an abnormality). is doing.
Similarly, in the abnormal data recording area 140, an area for recording state data immediately before the occurrence of an abnormality (hereinafter referred to as a state data recording area 141 before the occurrence of an abnormality) and a state data when an abnormality has occurred are recorded. Area (hereinafter referred to as a state data recording area 142 when an abnormality occurs) and an area for recording state data after a predetermined time has elapsed since the occurrence of the abnormality (hereinafter referred to as a state data recording area 143 after the occurrence of an abnormality). And have.

次に、エンジン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 engine ECU 100 monitors the occurrence of an abnormality will be described. The parts that the engine ECU 100 monitors for the occurrence of an abnormality include the parts related to the regulations stipulated by the law, the parts related to the emission (the harmful substances contained in the exhaust gas), and the other parts. And non-emission related parts. The regulations include a law that stipulates that state data is stored when an abnormality of a vehicle part is determined, an instruction based on the law, or a law in a rule.
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.

Figure 2010111234
Figure 2010111234

また、エンジン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 SRAM 114 in order for the engine ECU 100 to identify the cause of the abnormality in the above-described part includes the following. Note that it is not necessary to record all items listed below, and it is possible to select them.
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.

Figure 2010111234
Figure 2010111234

SRAM114に記録された車両の状態データは、車両の故障診断等に使用される。修理、メンテナンス等を行う作業員は、ツール等を使用してSRAM114に記録された車両の状態データを読み出し、読み出した状態データに基づいて故障箇所や故障原因を特定し、センサや部品を交換する。
このとき、SRAM114に記録される車両の状態データは、重要度の高い部位の故障を特定可能な状態データが記録されている程、優先度の高いものが記録されている程、故障箇所や故障原因の特定に有効となる。そこで、本実施例では、上述した最も重要度の高い法規関連部位の異常を検出するための車両の状態データが優先度の高いデータとしてSRAM114に記録される。次に重要度の高いエミッション関連部位の異常を検出するための車両の状態データの優先度を法規関連部位のものよりも低く設定している。また、エミッション非関連部位の異常を検出するための車両の状態データの優先度をエミッション関連部位のものよりも低く設定している。
また、SRAM114へ車両の状態データを記録する際に、優先度の高い異常を判定する車両の状態データが、優先度の低い異常を判定する車両の状態データに上書きされないように制御している。この制御手順について、図8を参照しながら説明する。
The vehicle state data recorded in the SRAM 114 is used for vehicle failure diagnosis and the like. A worker who performs repair, maintenance, etc. reads out the vehicle status data recorded in the SRAM 114 using a tool, etc., identifies the location of failure and the cause of the failure based on the read status data, and replaces the sensor and parts. .
At this time, the status data of the vehicle recorded in the SRAM 114 is such that the status data that can identify the failure of the part of higher importance is recorded, the higher the priority is recorded, This is useful for identifying the cause. Therefore, in the present embodiment, vehicle state data for detecting the abnormality of the most important regulation-related part described above is recorded in the SRAM 114 as high priority data. Next, the priority of the vehicle state data for detecting an abnormality in the emission-related part having the highest importance is set lower than that in the law-related part. Further, the priority of the vehicle state data for detecting an abnormality in the emission non-related part is set lower than that in the emission related part.
Further, when the vehicle state data is recorded in the SRAM 114, control is performed so that the vehicle state data for determining the abnormality with high priority is not overwritten with the vehicle state data for determining the abnormality with low priority. This control procedure will be described with reference to FIG.

図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 ring buffer 113a and the recording timing of this status data in the SRAM 114.
The microcomputer 103 stores vehicle state data such as sensor signals measured by the various sensors 11 to 20 and state signals indicating the states of the switches 21 and 22 in the ring buffer 113a every 512 msec. That is, the vehicle state data is stored in the ring buffer 113a at the timing of step 1, step 2, step 3,... Shown in FIG.
In the example shown in FIG. 8, at the timing of step 1, priority 2 (hereinafter, state data for determining a low priority abnormality is denoted as priority 2, and state data for determining a high priority abnormality is It is assumed that state data (denoted as priority 1) is recorded in the ring buffer 113a, and this state data is set to a temporary abnormality at timing A shown in FIG. Furthermore, it is assumed that the status data of priority 1 is stored in the ring buffer 113a at the timing of step 2 shown in FIG. 8, and this status data is set to a temporary abnormality at the timing B shown in FIG.
It is assumed that the status data of priority 2 at timing A is stored in the ring buffer 113a as the status data before the occurrence of the abnormality and the state data when the abnormality occurs. Similarly, it is assumed that the status data with priority 1 at timing B is recorded in the ring buffer 113a as the status data before the occurrence of the abnormality and the state data when the abnormality occurs. In addition, the recording of the priority 2 state data performed in step 1 in the ring buffer 113a and the recording of the priority 1 state data performed in step 2 in the ring buffer 113a are performed within several tens of msec. To do.

マイコン103は、優先度2の状態データが仮異常に設定された段階(図8のタイミングA)で、優先度2の状態データをSRAM114の仮異常データ記録領域130に記録する。優先度2の状態データが仮異常に設定された段階では、異常が発生する前の状態データと、異常が発生した際の状態データとがリングバッファ113aに記憶されているので、これらの情報がSRAM114の仮異常データ記録領域130に記録される。なお、図8では、優先度2の状態データの異常が発生する前の状態データを「優2前」と表記する。又、優先度2の状態データの異常が発生した際の状態データを「優2異」と表記する。同様に優先度1の状態データの異常が発生する前の状態データを「優1前」と表記する。又、優先度1の異常が発生した際の状態データを「優1異」と表記する。   The microcomputer 103 records the priority level 2 status data in the temporary error data recording area 130 of the SRAM 114 when the priority level 2 status data is set to be temporarily abnormal (timing A in FIG. 8). At the stage where the status data of priority 2 is set to a temporary abnormality, the state data before the occurrence of the abnormality and the state data at the time of the occurrence of the abnormality are stored in the ring buffer 113a. It is recorded in the temporary abnormal data recording area 130 of the SRAM 114. In FIG. 8, the state data before the abnormality of the state data of the priority 2 is expressed as “before 2”. In addition, the state data when abnormality of the state data of priority 2 occurs is expressed as “excellent 2 difference”. Similarly, the state data before the occurrence of the abnormality of the priority level 1 state data is represented as “excluded by the superior 1”. In addition, state data when priority 1 abnormality occurs is expressed as “excellent 1 difference”.

次のstep2(step1から512msec経過)でリングバッファ113aに取り込まれた優先度1の状態データが、図8に示すBのタイミングで仮異常に設定されたとする。
マイコン103は、優先度1の状態データのうち、異常発生前の状態データと、異常が発生した際の状態データとをリングバッファ113aからSRAM114の仮異常データ記録領域130に記録する。このとき、SRAM114の仮異常データ記録領域130に記録されていた優先度2の状態データは、消去(優先度1の状態データによって上書き)される。
Assume that the status data of priority level 1 fetched into the ring buffer 113a at the next step 2 (elapsed 512 msec from step 1) is set to a temporary abnormality at the timing B shown in FIG.
The microcomputer 103 records, from the ring buffer 113a, the temporary abnormality data recording area 130 of the SRAM 114, from among the state data of priority 1, the state data before the occurrence of the abnormality and the state data when the abnormality occurs. At this time, the priority level 2 status data recorded in the temporary abnormal data recording area 130 of the SRAM 114 is erased (overwritten by the priority level 1 status data).

次の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 priority 1, state data after a predetermined time has elapsed from the occurrence of abnormality is stored in the ring buffer 113a. The microcomputer 103 records the status data of priority 1 stored in the ring buffer 113 a after the elapse of a predetermined time in the temporary abnormality data recording area 130 of the SRAM 114. In the following, state data after a predetermined time has elapsed since the occurrence of abnormality in the state data with priority 1 is expressed as “after 1”.

次に、図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 microcomputer 103 records the status data of priority 2 in the abnormal data recording area 140 of the SRAM 114. Since the status data of priority 2 is not stored in the ring buffer 113a, the data acquired from various sensors is recorded again in the abnormal data recording area 140 of the SRAM 114.

次に、図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 priority level 1 is set to the abnormality at the timing D shown in FIG.
The microcomputer 103 erases the priority level 2 status data recorded in the abnormal data recording area 140 of the SRAM 114 and stores the priority level 1 status data recorded in the temporary abnormal data recording area 130 of the SRAM 114 in the SRAM 114. This is recorded in the abnormal data recording area 140.
At this time, the microcomputer 103 erases the priority level 1 status data recorded in the temporary abnormal data recording area 130 of the SRAM 114 from the temporary abnormal data recording area 130.

次に、低優先度の制御処理と高優先度の制御処理とが、車両データの異常を検出して不揮発性メモリに異常値を記録する処理をそれぞれ並行して実行する制御処理について説明する。なお、図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 data recording area 130. Thereafter, at timing B, it is assumed that the high priority control process detects an abnormal value of the state data. The high-priority control process refers to the recording flag in order to determine whether another control process is recording state data in the temporary abnormality data recording area 130. The recording flag is a flag that is recorded when the control process records the status data in the temporary abnormal data recording area 130 of the SRAM 114. When the recording is completed, the recording flag is erased by the control process. The other control process may be a high priority control process or a low priority control process. Here, it is assumed that the priority of the control process during the recording of the state data in the temporary abnormality data recording area 130 is the low priority.
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 data recording area 130 by another control process is the same as the high-priority control process. It is determined whether or not the priority of the state data in which the abnormal value is detected is higher. When the high priority control process determines that the priority of the status data in which the abnormal value is detected by itself is lower than the priority of the status data recorded in the temporary abnormal data recording area 130 by another control process Then, the recording of the state data in which the abnormal value is detected by itself to the temporary abnormal data recording area 130 is canceled. Since the status data having a higher priority than the status data detected by the high priority control process is recorded in the temporary abnormality data recording area 130 by another control process, the status detected by the high priority control process Stop recording data.

また、高優先度の制御処理が異常値を検出した状態データの優先度が、他の制御処理によって仮異常データ記録領域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 data recording area 130 by another control process, the high priority This control process waits until the recording of the status data in the temporary abnormal data recording area 130 by other control processes is completed.
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 data recording area 130 is being performed by another control process, and the high priority control process is again in a standby state.
Further, when the recording flag is erased, the high priority control process determines that the recording of the status data in the temporary abnormal data recording area 130 by other control processes has been completed, and the temporary abnormal data recording A request for recording status data in the area 130 is output. Then, the high-priority control process starts recording status data in the temporary abnormality data recording area 130 (timing F shown in FIG. 9).

図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 data recording area 130 of the SRAM 114. It is recorded. In addition, when recording in the temporary abnormality data recording area 130 by the high priority control processing is not performed, the high priority state data recorded by other control processing is recorded in the temporary abnormality data recording area 130. . Therefore, the high-priority state data added to the state data can be recorded in the SRAM 114 regardless of the priority of the control process. In the example illustrated in FIG. 9, the recording of the state data in which the temporary abnormality is determined is recorded in the temporary abnormality data recording area 130. However, the abnormal data recording area of the state data in which the determination of the abnormal is performed. At the time of recording to 140, status data is recorded in the same procedure.

次に、図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 ring buffer 113a and a temporary abnormality is determined (step S1 / YES), the temporary abnormal data in the SRAM 114 is determined by another control process. It is determined whether or not state data is recorded in the recording area 130 (step S2). When recording the status data in the SRAM 114, the control process records a recording flag indicating that recording is in progress. The high-priority control process refers to this recording flag to determine whether another control process has recorded status data in the temporary abnormal data recording area 130.

記録中フラグが記録され、他の制御処理によって仮異常データ記録領域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 data recording area 130 by other control processing, the high priority control processing determines that the priority of the status data in which the abnormal value is detected is It is determined whether it is higher than the priority of the status data currently recorded in the temporary abnormal data recording area 130 by other control processing (step S3). If the priority of the state data in which the abnormal value is detected is lower than the priority of the state data currently recorded in the temporary abnormal data recording area 130 by another control process (step S3 / NO), high priority is given. In the control process, the recording of the state data in which the abnormal value is detected is stopped in the temporary abnormal data recording area 130 (step S4), and the process ends. Since the priority of the status data recorded in the other control processing is higher than the priority of the status data in which the high priority control processing detected an abnormal value, the status data stored in the temporary abnormal data recording area 130 Stop recording.

また、高優先度の制御処理が異常値を検出した状態データの優先度が、現在、他の制御処理によって仮異常データ記録領域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 data recording area 130 by another control process (Step S3 / YES), the high-priority control process waits for a predetermined time to record the state data in the temporary abnormality data recording area 130 (Step S5). When the predetermined time has elapsed, the high-priority control process determines whether or not the status data is being recorded in the temporary abnormal data recording area 130 by another control process (step S6). The high priority control process determines whether or not another control process has recorded the status data in the temporary abnormal data recording area 130 by referring to the above-described recording flag. If it is determined that the status data is recorded in the temporary abnormality data recording area 130 by another control process (step S6 / YES), the high priority control process also waits for a predetermined time. If it is determined that the recording of the status data in the temporary abnormality data recording area 130 by other control processing has been completed (step S6 / NO), the high priority control processing is performed to the temporary abnormality data recording area 130. Recording of the state data is started (step S7).

なお、図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 SRAM 114. ing. In addition to this, for example, it may be determined whether or not to record the state data in which the abnormal value is detected in the SRAM 114 by comparing the priority of the control processing. For example, it is assumed that state data indicating an abnormal value is detected in the high-priority control process while the low-priority control process records state data in the SRAM 114. In this case, the high priority control process does not compare the priority of the state data, but waits for the completion of the recording of the state data in the SRAM 114 by the low priority control process. Then, when the recording to the SRAM 114 by the low priority control process is completed, the state data in which the abnormal value is detected is recorded in the SRAM 114. By assigning high priority status data processing to high priority control processing, high priority status data can be recorded in the SRAM 114 even when the control processing priority is compared.

上述した実施例は本発明の好適な実施の例である。但し、これに限定されるものではなく、本発明の要旨を逸脱しない範囲内において種々変形実施が可能である。   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.

従来の制御処理による不揮発性メモリへの車両データの記録手順を示す図である。It is a figure which shows the recording procedure of the vehicle data to the non-volatile memory by the conventional control processing. 従来の制御処理による不揮発性メモリへの車両データの記録手順を示す図である。It is a figure which shows the recording procedure of the vehicle data to the non-volatile memory by the conventional control processing. エンジンECUの構成を示すブロック図である。It is a block diagram which shows the structure of engine ECU. エンジンECUが接続されたネットワーク構成を示す図である。It is a figure which shows the network structure to which engine ECU was connected. マイコンの構成を示すブロック図である。It is a block diagram which shows the structure of a microcomputer. 仮異常判定と本異常判定について説明するための図である。It is a figure for demonstrating temporary abnormality determination and this abnormality determination. SRAMの記録領域を示す図である。It is a figure which shows the recording area of SRAM. 優先度の低い状態データが仮異常の状態に設定された後に、優先度の高い状態データが仮異常の状態に設定されたときのSRAMへの車両の状態データへの記録手順を示す図である。It is a figure which shows the recording procedure to the state data of the vehicle to SRAM when the state data with high priority is set to the state of temporary abnormality after the state data with low priority is set to the state of temporary abnormality. . 低優先度の制御処理と高優先度の制御処理とが不揮発性メモリに異常値を記録する処理をそれぞれ並行して実行する制御処理について説明するための図である。It is a figure for demonstrating the control process in which the low priority control process and the high priority control process perform in parallel the process which records an abnormal value in a non-volatile memory, respectively. 高優先度の制御処理の処理フローを示すフローチャートである。It is a flowchart which shows the processing flow of a high priority control process.

符号の説明Explanation of symbols

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
113a Ring buffer 114 SRAM
115 I / O section 120 Abnormality detection location recording area 130 Temporary abnormal data recording area 140 This abnormal data recording area 151 Alarm lamp 152 Injector 153 Igniter 154 Spark plug

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:
前記優先制御特別処理は、先行して実行される制御処理に設定された優先度よりも、その後に続いて実行される制御処理に設定された優先度が高い場合において、後に続いて実行される制御処理における異常判定の際の制御に関するデータの優先度が、先行して実行される制御処理における異常判定の際の制御に関するデータの優先度よりも高い場合に、後に続いて実行される制御処理における記憶制御処理の記憶制御を所定時間経過した後に実行する請求項1記載の制御装置。   The priority control special process is subsequently executed when the priority set in the control process executed subsequently is higher than the priority set in the control process executed in advance. The control process that is executed subsequently when the priority of the data related to the control during the abnormality determination in the control process is higher than the priority of the data related to the control during the abnormality determination in the control process executed in advance. The control device according to claim 1, wherein the storage control of the storage control process is executed after a predetermined time has elapsed. 前記優先制御特別処理は、先行して実行される制御処理に設定された優先度よりも、その後に続いて実行される制御処理に設定された優先度が高い場合において、後に続いて実行される制御処理における異常判定の際の制御に関するデータの優先度が、先行して実行される制御処理における異常判定の際の制御に関するデータの優先度よりも低い場合に、後に続いて実行される制御処理における記憶制御処理の記憶制御を中止する請求項1又は2記載の制御装置。   The priority control special process is subsequently executed when the priority set in the control process executed subsequently is higher than the priority set in the control process executed in advance. The control process that is executed subsequently when the priority of the data related to the control during the abnormality determination in the control process is lower than the priority of the data related to the control during the abnormality determination in the control process executed in advance. The control device according to claim 1, wherein the storage control of the storage control process is stopped. 被制御部に関する制御処理と、
制御処理において、入力信号に基づいて所定部位の異常を判定する際の、制御に関するデータを記憶部へ記憶する記憶制御処理と、
制御処理に含まれる記憶制御処理が複数実行される場合は、先行して実行される制御処理における異常判定の際の制御に関するデータを記憶部へ記憶した後、その後に続いて実行される制御処理における異常判定の際の制御に関するデータを記憶部へ上書記憶する上書記憶制御処理と、
制御処理が一定時間内に複数実行される場合で、先行して実行される制御処理に設定された優先度よりも、その後に続いて実行される制御処理に設定された優先度が高い場合は、後に続いて実行される制御処理を、先行して実行される制御処理よりも優先して実行する優先制御処理と、
制御処理における記憶制御処理が一定時間内に複数実行される場合で、先行して実行される制御処理に設定された優先度よりも、その後に続いて実行される制御処理に設定された優先度が高い場合は、後に続いて実行される制御処理における記憶制御処理の記憶制御を所定時間経過した後に実行する優先制御特別処理と有する制御方法。
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.
JP2008284907A 2008-11-05 2008-11-05 Control apparatus and control method Active JP5208680B2 (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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