JP2003222053A - Electronic control unit for vehicle - Google Patents

Electronic control unit for vehicle

Info

Publication number
JP2003222053A
JP2003222053A JP2002021060A JP2002021060A JP2003222053A JP 2003222053 A JP2003222053 A JP 2003222053A JP 2002021060 A JP2002021060 A JP 2002021060A JP 2002021060 A JP2002021060 A JP 2002021060A JP 2003222053 A JP2003222053 A JP 2003222053A
Authority
JP
Japan
Prior art keywords
abnormality
control cpu
cpu
monitoring
communication
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
JP2002021060A
Other languages
Japanese (ja)
Other versions
JP3923810B2 (en
Inventor
Hiroharu Takeuchi
啓晴 竹内
Takehiro Shirosaki
剛博 城向
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Denso Corp
Toyota Motor Corp
Original Assignee
Denso Corp
Toyota Motor Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Denso Corp, Toyota Motor Corp filed Critical Denso Corp
Priority to JP2002021060A priority Critical patent/JP3923810B2/en
Priority to US10/242,697 priority patent/US6775609B2/en
Publication of JP2003222053A publication Critical patent/JP2003222053A/en
Application granted granted Critical
Publication of JP3923810B2 publication Critical patent/JP3923810B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/10Internal combustion engine [ICE] based vehicles
    • Y02T10/40Engine management systems

Landscapes

  • Combined Controls Of Internal Combustion Engines (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To properly specify the content of abnormality. <P>SOLUTION: An engine ECU 10 includes a control CPU 11 which carries out vehicle control and a supervisory CPU 12 which is communicably connected to the control CPU 11. The supervisory CPU 12 supervises a communication state with the control CPU 11. When abnormality occurs in communication, the supervisory CPU memorizes that effect and applies reset to the control CPU 11. The supervisory CPU 12 carries out monitoring of WD pulse output from the control CPU 11 and performs abnormality detection from the periodicity. When abnormality occurs in the WD pulse, the supervisory CPU memorizes that effect. With such constitution as described above, when the communication abnormality detection time is expressed by X and the WD pulse abnormality detection time is expressed by Y, the abnormality detection times X, Y are determined to satisfy the relation of X≥Y. <P>COPYRIGHT: (C)2003,JPO

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、制御CPUと監視
CPUとを備える車両用電子制御装置であって、特に制
御CPUの異常を適切に監視するための処理に関するも
のである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a vehicular electronic control device having a control CPU and a monitoring CPU, and more particularly to a process for appropriately monitoring an abnormality of the control CPU.

【0002】[0002]

【従来の技術】車載エンジン等の制御を司る車両用電子
制御装置(車載ECU)として、車両制御を実施する制
御CPUと、この制御CPUの動作を監視するための監
視CPUとを具備するものがある。例えば、近年ではC
PUの高機能・大容量化により、1つの制御CPUでエ
ンジン制御(噴射・点火制御)と電子スロットル制御と
を実施する構成が提案されており、この場合、制御CP
Uに通信可能に接続された監視CPUは、制御CPUを
監視して電子スロットル制御等が正常に機能しているか
どうかを判定する。
2. Description of the Related Art An electronic control unit (in-vehicle ECU) for a vehicle that controls an in-vehicle engine or the like is provided with a control CPU for performing vehicle control and a monitoring CPU for monitoring the operation of the control CPU. is there. For example, in recent years C
A configuration has been proposed in which one control CPU performs engine control (injection / ignition control) and electronic throttle control by increasing the functionality and capacity of the PU. In this case, the control CP
The monitoring CPU communicatively connected to U monitors the control CPU to determine whether electronic throttle control or the like is functioning normally.

【0003】また、上記構成の車両用電子制御装置で
は、制御CPUと監視CPUとの間で定期的に通信が行
われる。そして、監視CPUでは制御CPUからの通信
が所定時間途絶えた場合に通信異常である旨判定され、
その異常発生の履歴が記憶される。また一般には、制御
CPUの動作はウオッチドッグ監視回路で監視されてお
り、通信異常時にはこのウオッチドッグ監視回路からの
リセット出力により制御CPUがリセットされる。つま
り、通信異常であることを受けて制御CPUが監視CP
Uを繰り返しリセットし、それでも通信が回復しないと
WDパルス(ウオッチドッグパルス)の出力を停止す
る。すると、ウオッチドッグ監視回路により制御CPU
がリセットされる。しかしこれでは、通信異常の発生か
らCPUリセットまでに時間を要するため、通信異常時
には、監視CPUにより制御CPUがリセットされる機
能を付与することが考えられている。
Further, in the vehicle electronic control device having the above-mentioned configuration, the control CPU and the monitoring CPU periodically communicate with each other. Then, the monitoring CPU determines that the communication from the control CPU is abnormal when the communication from the control CPU is interrupted for a predetermined time,
The history of occurrence of the abnormality is stored. In general, the operation of the control CPU is monitored by the watchdog monitoring circuit, and the reset output from the watchdog monitoring circuit resets the control CPU when communication is abnormal. That is, the control CPU receives the monitoring CP in response to the communication abnormality.
If U is repeatedly reset and communication is still not recovered, the output of the WD pulse (watchdog pulse) is stopped. Then, the control CPU is controlled by the watchdog monitoring circuit.
Is reset. However, in this case, since it takes time from the occurrence of the communication abnormality to the CPU reset, it is considered to add a function of resetting the control CPU by the monitoring CPU when the communication abnormality occurs.

【0004】更に、制御CPUからウオッチドッグ監視
回路に発信されるWDパルスを監視CPUにも取り込
み、監視CPUでWDパルス、すなわち制御CPUの状
態を監視することも考えられている。この場合、制御C
PUの暴走時にWDパルスが停止すると、その異常発生
が監視CPUで検出され、その異常の履歴が記憶され
る。
Further, it has been considered that the WD pulse transmitted from the control CPU to the watchdog monitoring circuit is also taken into the monitoring CPU and the monitoring CPU monitors the WD pulse, that is, the state of the control CPU. In this case, control C
When the WD pulse is stopped during the runaway of the PU, the abnormality occurrence is detected by the monitoring CPU, and the history of the abnormality is stored.

【0005】しかしながら、上記の構成の電子制御装置
において、仮に制御CPUの暴走時を想定すると、制御
CPUでは通信異常とWDパルスの出力異常とが共に発
生し、これらの異常情報が適切に記憶保持できないとい
う問題が生じる。具体的には、先に通信異常が検出され
ると、その時点で監視CPUにより制御CPUがリセッ
トされ、WDパルスの出力異常である旨記憶できない。
故に、CPU暴走時にも通信異常であるとしか認識でき
ない場合が生じる。
However, assuming that the control CPU runs out of control in the electronic control device having the above-mentioned configuration, both the communication abnormality and the WD pulse output abnormality occur in the control CPU, and these abnormality information are appropriately stored and held. The problem arises that you can't. Specifically, if a communication abnormality is first detected, the control CPU is reset by the monitoring CPU at that time, and it cannot be stored that the WD pulse output is abnormal.
Therefore, even when the CPU runs out of control, there may be a case in which only the communication abnormality can be recognized.

【0006】[0006]

【発明が解決しようとする課題】本発明は、上記問題に
着目してなされたものであって、その目的とするところ
は、異常内容の特定を適正に行うことができる車両用電
子制御装置を提供することである。
SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and an object of the present invention is to provide an electronic control device for a vehicle capable of appropriately specifying an abnormality content. Is to provide.

【0007】[0007]

【課題を解決するための手段】本発明の車両用電子制御
装置において、監視CPUは、制御CPUとの通信状態
を監視し通信異常時にはその旨を記憶すると共に該制御
CPUにリセットをかける(第1の異常検出手段)。ま
た、同監視CPUは、制御CPUから出力されるウオッ
チドッグパルスをモニタしてその周期性から異常検出を
行いウオッチドッグパルス異常時にはその旨を記憶する
(第2の異常検出手段)。かかる場合、請求項1に記載
の発明では、第1の異常検出手段による異常検出時間を
X、第2の異常検出手段による異常検出時間をYとした
とき、 X≧Y の関係を満たすよう異常検出時間X,Yが規定される。
In the electronic control unit for a vehicle of the present invention, the monitoring CPU monitors the communication state with the control CPU, stores the fact when communication is abnormal, and resets the control CPU. 1 abnormality detection means). Further, the monitoring CPU monitors the watchdog pulse output from the control CPU, detects the abnormality from its periodicity, and stores the fact when the watchdog pulse is abnormal (second abnormality detecting means). In such a case, in the invention according to claim 1, when the abnormality detection time by the first abnormality detection means is X and the abnormality detection time by the second abnormality detection means is Y, the abnormality is satisfied such that X ≧ Y. The detection times X and Y are defined.

【0008】上記構成によれば、仮に制御CPUが異常
状態(暴走状態)となり、通信もウオッチドッグパルス
出力も停止した場合、異常検出時間Yが経過した時に先
にウオッチドッグパルス異常の発生が検出されその旨記
憶される。その後、異常検出時間Xが経過した時に通信
異常の発生が検出されてその旨記憶され、制御CPUに
リセットがかかる。つまり、ウオッチドッグパルス異常
と通信異常とが各々確実に記憶され、異常内容の特定を
適正に行うことができる。因みに、CPU暴走時には、
通信異常であることよりもウオッチドッグパルス異常で
あることが優先的に検出されるのが望ましい。
According to the above configuration, if the control CPU is in an abnormal state (runaway state) and both the communication and the watchdog pulse output are stopped, the occurrence of the watchdog pulse abnormality is detected first when the abnormality detection time Y has elapsed. Then, the fact is stored. After that, when the abnormality detection time X has elapsed, the occurrence of communication abnormality is detected and stored, and the control CPU is reset. That is, the watchdog pulse abnormality and the communication abnormality are surely stored, and the content of the abnormality can be properly specified. By the way, at the time of CPU runaway,
It is desirable that the watchdog pulse abnormality is detected with priority over the communication abnormality.

【0009】また、請求項2に記載の発明では、ウオッ
チドッグ監視回路は、制御CPUよりウオッチドッグパ
ルスを入力し該ウオッチドッグパルスが所定の監視時間
Zだけ途絶えると制御CPUに対してリセット信号を出
力する。この構成において、第1の異常検出手段による
異常検出時間Xとウオッチドッグ監視回路による監視時
間Zとが、 X≦Z の関係を満たすよう規定される。
According to another aspect of the invention, the watchdog monitoring circuit inputs a watchdog pulse from the control CPU, and when the watchdog pulse is interrupted for a predetermined monitoring time Z, a reset signal is sent to the control CPU. Output. In this configuration, the abnormality detection time X by the first abnormality detection means and the monitoring time Z by the watchdog monitoring circuit are defined so as to satisfy the relationship of X≤Z.

【0010】かかる場合、制御CPUの暴走に伴い通信
及びウオッチドッグパルス出力が共に停止した際、遅く
ともウオッチドッグ監視回路によるリセット出力までに
監視CPUにより通信異常の発生が検出され、その旨が
記憶される。故に、制御CPUの異常情報が確実に記憶
保持できる。
In this case, when the communication and the watchdog pulse output are both stopped due to the runaway of the control CPU, the occurrence of the communication abnormality is detected by the monitoring CPU until the reset output by the watchdog monitoring circuit at the latest, and the fact is stored. It Therefore, the abnormality information of the control CPU can be surely stored and held.

【0011】また、請求項3に記載の発明では、前記同
様に第1の異常検出手段による異常検出時間をX、第2
の異常検出手段による異常検出時間をYとしたとき、 X<Y の関係を満たすよう異常検出時間X,Yを規定し、監視
CPUは、前記第1の異常検出手段による通信異常の検
出時にその時点で制御CPUへのリセット出力の適否を
判断し、その結果に応じてリセット出力を制限するよう
にした。
Further, in the invention described in claim 3, similarly to the above, the abnormality detection time by the first abnormality detection means is X,
When the abnormality detection time by the abnormality detection means is defined as Y, the abnormality detection times X and Y are defined so as to satisfy the relation of X <Y, and the monitoring CPU sets the abnormality detection time when the communication abnormality is detected by the first abnormality detection means. At this point, it is determined whether the reset output to the control CPU is appropriate, and the reset output is limited according to the result.

【0012】本請求項3の発明では、異常検出時間X,
Yの規定が請求項1とは逆であるが、通信異常検出時に
無条件で制御CPUがリセットされるのではなく、その
都度の適否に応じてリセット出力が制限される。故に、
例えば制御CPUが暴走して通信もウオッチドッグパル
ス出力も停止した場合、通信異常検出時におけるリセッ
ト出力が制限され、結果としてウオッチドッグパルス異
常と通信異常とが各々確実に記憶されるようになる。
According to the invention of claim 3, the abnormality detection time X,
Although the definition of Y is opposite to that of claim 1, the control CPU is not unconditionally reset when a communication error is detected, but the reset output is limited according to the suitability of each case. Therefore,
For example, when the control CPU goes out of control and both communication and watchdog pulse output are stopped, the reset output at the time of communication abnormality detection is limited, and as a result, the watchdog pulse abnormality and the communication abnormality are reliably stored.

【0013】上記請求項3の発明では請求項4に記載し
たように、監視CPUは、前記第1の異常検出手段によ
る通信異常の検出時にその時点でウオッチドッグパルス
の正常/異常を推測して異常と推測される場合には制御
CPUにリセットをかけないようにすると良い。要する
に、通信異常の検出時にウオッチドッグパルスが異常と
推測される場合には、その後の異常検出時間Yの経過時
にウオッチドッグパルス異常の旨が記憶される可能性が
あり、故に制御CPUのリセットが制限される。これに
より、ウオッチドッグパルス異常と通信異常とが各々確
実に記憶されるようになる。
According to the third aspect of the invention, as described in the fourth aspect, the monitoring CPU estimates the normality / abnormality of the watchdog pulse at the time when the communication abnormality is detected by the first abnormality detecting means. If it is suspected that an abnormality has occurred, it is preferable not to reset the control CPU. In short, when it is estimated that the watchdog pulse is abnormal when the communication abnormality is detected, the fact that the watchdog pulse is abnormal may be stored when the abnormality detection time Y thereafter elapses. Therefore, the control CPU is reset. Limited. As a result, the watchdog pulse abnormality and the communication abnormality can be surely stored.

【0014】請求項5に記載の発明では、第2の異常検
出手段による異常検出時間Yとウオッチドッグ監視回路
による監視時間Zとが、 Y≦Z の関係を満たすよう規定される。かかる場合、ウオッチ
ドッグパルスの停止時において、遅くともウオッチドッ
グ監視回路によるリセット出力までに監視CPUにより
ウオッチドッグパルス異常の発生が検出され、その旨が
記憶される。故に、制御CPUの異常情報が確実に記憶
保持できる。
According to the fifth aspect of the invention, the abnormality detection time Y by the second abnormality detection means and the monitoring time Z by the watchdog monitoring circuit are defined so as to satisfy the relationship of Y≤Z. In this case, when the watchdog pulse is stopped, the watchdog CPU detects the occurrence of the watchdog pulse abnormality by the reset output of the watchdog monitor circuit at the latest, and the fact is stored. Therefore, the abnormality information of the control CPU can be surely stored and held.

【0015】[0015]

【発明の実施の形態】(第1の実施の形態)以下、この
発明を具体化した第1の実施の形態を図面に従って説明
する。本実施の形態では、車両用電子制御装置としての
エンジンECUに本発明を具体化しており、図1にはエ
ンジンECUの構成を示す。
BEST MODE FOR CARRYING OUT THE INVENTION (First Embodiment) A first embodiment of the present invention will be described below with reference to the drawings. In the present embodiment, the present invention is embodied in an engine ECU as a vehicle electronic control device, and FIG. 1 shows the configuration of the engine ECU.

【0016】図1において、エンジンECU10は、エ
ンジンの噴射制御、点火制御及び電子スロットル制御を
実施するための制御CPU(メインCPU)11と、電
子スロットル制御を含む制御CPU11の動作に関する
監視制御を実施するための監視CPU(サブCPU)1
2と、制御CPU11の動作を監視するためのWD回路
13とを備える。制御CPU11は、エンジン回転数、
吸気管内圧力、スロットル開度等々のエンジン運転情報
を各種センサより随時入力し、当該運転情報に基づき図
示しないインジェクタ、イグナイタ、スロットルアクチ
ュエータ等の駆動を制御する。また、制御CPU11
は、監視CPU12の動作を監視するための監視制御を
実施する。すなわち、監視CPU12は制御CPU11
に対して所定周期で反転するWDパルスを出力し、制御
CPU11は監視CPU12からのWDパルスが所定時
間以上反転しなかった場合に監視CPU12に対してリ
セット信号を出力する。
In FIG. 1, an engine ECU 10 carries out monitoring control of operations of a control CPU (main CPU) 11 for carrying out engine injection control, ignition control and electronic throttle control, and control CPU 11 including electronic throttle control. Monitoring CPU (sub CPU) 1 for
2 and a WD circuit 13 for monitoring the operation of the control CPU 11. The control CPU 11 controls the engine speed,
Engine operation information such as intake pipe pressure and throttle opening is input from various sensors at any time, and the drive of injectors, igniters, throttle actuators, etc. (not shown) is controlled based on the operation information. In addition, the control CPU 11
Performs monitoring control for monitoring the operation of the monitoring CPU 12. That is, the monitoring CPU 12 is the control CPU 11
, The control CPU 11 outputs a reset signal to the monitoring CPU 12 when the WD pulse from the monitoring CPU 12 has not been reversed for a predetermined time or longer.

【0017】制御CPU11と監視CPU12とは相互
に通信可能に接続されており、制御CPU11は、監視
CPU12に対してスロットル開度、アクセル開度、フ
ェイルセーフ実施フラグ等、スロットル制御に関するデ
ータを送信する。このとき、制御CPU11から監視C
PU12に対しては通常一定の周期でデータが送信さ
れ、監視CPU12は制御CPU11からの通信状態を
監視する。またその他に、監視CPU12は受信データ
の内容に基づいてスロットル制御状態を監視する。そし
て、それらの監視結果を制御CPU11に対して返信す
る。
The control CPU 11 and the monitoring CPU 12 are connected to each other so that they can communicate with each other, and the control CPU 11 sends to the monitoring CPU 12 throttle control data such as throttle opening, accelerator opening, and failsafe execution flag. . At this time, the monitoring CPU from the control CPU 11
Data is normally transmitted to the PU 12 at a constant cycle, and the monitoring CPU 12 monitors the communication state from the control CPU 11. In addition, the monitor CPU 12 monitors the throttle control state based on the content of the received data. Then, the monitoring results are returned to the control CPU 11.

【0018】制御CPU11は、監視CPU12での監
視結果に従い、異常発生時に所定のフェイルセーフ処理
を実施する。フェイルセーフ処理として具体的には、車
両の退避走行(リンプホーム)を実現すべく、一部の気
筒の燃料噴射を休止させる減筒制御や点火時期を遅角さ
せる点火遅角制御等を実施する。
The control CPU 11 executes a predetermined fail-safe process when an abnormality occurs according to the monitoring result of the monitoring CPU 12. Specifically, as fail-safe processing, in order to realize evacuation travel (limp home) of the vehicle, reduction cylinder control that suspends fuel injection of some cylinders, ignition retard control that retards ignition timing, etc. are performed. .

【0019】また、制御CPU11は、WD回路13に
対して所定周期で反転するWDパルスを出力する。WD
回路13は「ウオッチドッグ監視回路」を構成するもの
であり、制御CPU11からのWDパルスが所定時間以
上反転しなかった場合に制御CPU11に対してリセッ
ト信号を出力する。
The control CPU 11 also outputs to the WD circuit 13 a WD pulse which is inverted at a predetermined cycle. WD
The circuit 13 constitutes a "watchdog monitoring circuit" and outputs a reset signal to the control CPU 11 when the WD pulse from the control CPU 11 has not been inverted for a predetermined time or longer.

【0020】制御CPU11からWD回路13に出力さ
れるWDパルスは監視CPU12にも入力される。監視
CPU12は、WDパルスの所定エッジ(例えば立ち下
がりエッジ)の有無を判別し、所定エッジが所定時間以
上検出されない場合、すなわちWDパルスが所定時間以
上反転しない場合に、制御CPU11のWDパルス出力
が停止した旨判定する。
The WD pulse output from the control CPU 11 to the WD circuit 13 is also input to the monitoring CPU 12. The monitoring CPU 12 determines whether or not there is a predetermined edge (for example, a falling edge) of the WD pulse, and when the predetermined edge is not detected for a predetermined time or more, that is, when the WD pulse is not inverted for a predetermined time or more, the WD pulse output of the control CPU 11 is output. Determine that it has stopped.

【0021】監視CPU12にはメモリ12aが設けら
れており、制御CPU11の通信異常やWDパルスの出
力異常(WD異常)が検出された際、その履歴情報がメ
モリ12aに記憶されるようになっている。なお、メモ
リ12aは、EEPROMやスタンバイRAM等、電源
遮断時にも内容を記憶保持できるメモリである。
The monitoring CPU 12 is provided with a memory 12a. When a communication abnormality of the control CPU 11 or a WD pulse output abnormality (WD abnormality) is detected, the history information thereof is stored in the memory 12a. There is. The memory 12a is a memory such as an EEPROM or a standby RAM that can store and retain the contents even when the power is cut off.

【0022】本実施の形態では特に、監視CPU12が
制御CPU11に対して直接リセットをかけることが可
能な構成としており、制御CPU11との通信が正しく
行われない場合、監視CPU12が制御CPU11に対
してリセット信号を出力する。また、WD回路13又は
監視CPU12の何れかにより制御CPU11がリセッ
トされる場合、それに連動して監視CPU12もリセッ
トされるよう構成されている。
In this embodiment, in particular, the monitoring CPU 12 can directly reset the control CPU 11, and if the communication with the control CPU 11 is not performed correctly, the monitoring CPU 12 sends the control CPU 11 a reset. Output a reset signal. Further, when the control CPU 11 is reset by either the WD circuit 13 or the monitoring CPU 12, the monitoring CPU 12 is also reset in association with it.

【0023】また本実施の形態では、監視CPU12が
制御CPU11の通信異常を検出する異常検出時間をX
(ms)、監視CPU12が制御CPU11のWD異常
を検出する異常検出時間をY(ms)、WD回路13が
制御CPU11のWD異常を検出する異常検出時間をZ
(ms)として規定している。この場合、各異常検出時
間X,Y,ZがY<Z<Xの関係となるよう各時間が設
定されている。具体的には、本実施の形態においてX=
100ms、Y=16ms、Z=24msとしている。
Further, in this embodiment, the abnormality detection time for the monitoring CPU 12 to detect the communication abnormality of the control CPU 11 is X.
(Ms), the abnormality detection time for the monitoring CPU 12 to detect the WD abnormality of the control CPU 11 is Y (ms), and the abnormality detection time for the WD circuit 13 to detect the WD abnormality of the control CPU 11 is Z.
(Ms). In this case, the respective times are set so that the respective abnormality detection times X, Y, Z have a relationship of Y <Z <X. Specifically, in this embodiment, X =
100 ms, Y = 16 ms, Z = 24 ms.

【0024】次に、上記構成のエンジンECU10につ
いて制御CPU11の動作監視の概要を説明する。以
下、図2〜図5のフローチャートは何れも監視CPU1
2の処理であり、これらの処理により制御CPU11の
動作が監視される。
Next, the outline of the operation monitoring of the control CPU 11 of the engine ECU 10 having the above-mentioned configuration will be described. Below, the flowcharts of FIGS.
This is the second process, and the operation of the control CPU 11 is monitored by these processes.

【0025】図2は制御CPU11の通信異常を検出す
る通信異常検出処理を示すフローチャートであり、この
処理は監視CPU12により例えば2ms毎に実施され
る。なおこの処理が特許請求の範囲に記載した「第1の
異常検出手段」に相当する。
FIG. 2 is a flow chart showing the communication abnormality detection processing for detecting the communication abnormality of the control CPU 11, and this processing is carried out by the monitoring CPU 12 every 2 ms, for example. It should be noted that this processing corresponds to the "first abnormality detecting means" described in the claims.

【0026】図2において、先ずステップ101では、
制御CPU11から通信データを受信したか否かを判別
し、受信していれば、ステップ102で通信監視カウン
タを0にクリアする。また、受信していなければ、ステ
ップ103で通信監視カウンタを1インクリメントす
る。
In FIG. 2, first in step 101,
It is determined whether or not communication data has been received from the control CPU 11, and if so, the communication monitoring counter is cleared to 0 in step 102. If not received, the communication monitoring counter is incremented by 1 in step 103.

【0027】その後、ステップ104では、通信監視カ
ウンタがX(ms)相当の値よりも大きくなったか否か
を判別し、NOであればそのまま本処理を終了する。ま
た、YESである場合、ステップ105で通信異常履歴
をメモリ(スタンバイRAM)12aに記憶し、続くス
テップ106で制御CPU11をリセットする。
After that, in step 104, it is judged whether or not the communication monitoring counter has become larger than a value corresponding to X (ms), and if NO, the present process is terminated. If YES, the communication abnormality history is stored in the memory (standby RAM) 12a in step 105, and the control CPU 11 is reset in step 106.

【0028】また、図3はWDパルス異常の検出処理を
示すフローチャートであり、この処理は監視CPU12
により例えば2ms毎に実施される。なおこの処理が特
許請求の範囲に記載した「第2の異常検出手段」に相当
する。
FIG. 3 is a flowchart showing the WD pulse abnormality detection processing. This processing is performed by the monitoring CPU 12
Is performed every 2 ms, for example. It should be noted that this processing corresponds to the "second abnormality detecting means" described in the claims.

【0029】図3において、先ずステップ201では、
WDパルスの立ち下がりエッジを検出したか否かを判別
する。検出していれば、ステップ202でWD監視カウ
ンタを0にクリアすると共にステップ203でWD異常
履歴をクリアする。また、WDパルスの立ち下がりエッ
ジを検出していなければ、ステップ204でWD監視カ
ウンタを1インクリメントする。
In FIG. 3, first in step 201,
It is determined whether or not the falling edge of the WD pulse is detected. If detected, the WD monitoring counter is cleared to 0 in step 202, and the WD abnormality history is cleared in step 203. If the falling edge of the WD pulse is not detected, the WD monitoring counter is incremented by 1 in step 204.

【0030】その後、ステップ205では、WD監視カ
ウンタがY(ms)相当の値よりも大きくなったか否か
を判別し、NOであればそのまま本処理を終了する。ま
た、YESである場合、ステップ206でWD異常履歴
をメモリ(スタンバイRAM)12aに記憶する。
After that, in step 205, it is judged whether or not the WD monitoring counter has become larger than a value corresponding to Y (ms), and if the result is NO, the present process is terminated. If YES, the WD abnormality history is stored in the memory (standby RAM) 12a in step 206.

【0031】図4は監視CPU12によるイニシャル処
理を示すフローチャートである。図4において、先ずス
テップ301では、メモリ12a内のWD異常履歴の有
無を判別し、WD異常履歴有りの場合、ステップ302
〜305の処理を実施する。すなわち、ステップ302
では、WD異常カウンタを1インクリメントし、続くス
テップ303では、WD異常履歴をクリアする。また、
ステップ304では、WD異常カウンタが所定値(本実
施の形態では2)よりも大きいか否かを判別し、YES
の場合のみステップ305に進み、WD異常(CPU異
常)を表すダイアグ出力を実施する。
FIG. 4 is a flow chart showing the initial processing by the monitoring CPU 12. In FIG. 4, first, in step 301, it is determined whether or not there is a WD abnormality history in the memory 12a, and if there is a WD abnormality history, step 302
The processes of to 305 are executed. That is, step 302
Then, the WD abnormality counter is incremented by 1, and in the subsequent step 303, the WD abnormality history is cleared. Also,
In step 304, it is determined whether or not the WD abnormality counter is larger than a predetermined value (2 in this embodiment), and YES.
Only in the case of, the process proceeds to step 305, and the diagnostic output indicating the WD abnormality (CPU abnormality) is executed.

【0032】その後、ステップ306では、メモリ12
a内の通信異常履歴の有無を判別し、通信異常履歴有り
の場合、ステップ307〜310の処理を実施する。す
なわち、ステップ307では、通信異常カウンタを1イ
ンクリメントし、続くステップ308では、通信異常履
歴をクリアする。また、ステップ309では、通信異常
カウンタが所定値(本実施の形態では2)よりも大きい
か否かを判別し、YESの場合のみステップ310に進
み、通信異常を表すダイアグ出力を実施する。
Thereafter, in step 306, the memory 12
Whether or not there is a communication abnormality history in a is determined, and if there is a communication abnormality history, the processes of steps 307 to 310 are executed. That is, in step 307, the communication abnormality counter is incremented by 1, and in the following step 308, the communication abnormality history is cleared. Further, in step 309, it is determined whether or not the communication abnormality counter is larger than a predetermined value (2 in the present embodiment), and if YES, the process proceeds to step 310 to perform a diagnostic output indicating a communication abnormality.

【0033】通信異常及びWD異常のカウンタ値等はI
GスイッチのOFF時に消去される。すなわち、監視C
PU12はIGスイッチのOFF時に図5の処理を実施
する。この場合監視CPU12は、ステップ401で通
信異常カウンタをクリアし、ステップ402でWD異常
カウンタをクリアする。また、ステップ403で通信異
常履歴をクリアし、ステップ404でWD異常履歴をク
リアする。
The counter values of communication error and WD error are I
It is deleted when the G switch is turned off. That is, monitoring C
The PU 12 executes the processing of FIG. 5 when the IG switch is off. In this case, the monitoring CPU 12 clears the communication abnormality counter in step 401, and clears the WD abnormality counter in step 402. Further, the communication abnormality history is cleared in step 403, and the WD abnormality history is cleared in step 404.

【0034】要するに上記図4及び図5の処理によれ
ば、1トリップ(IGスイッチのON〜OFFまでの
間)にWD異常又は通信異常が2回以上発生した場合に
ダイアグ出力が実施される。ダイアグ出力時には、制御
CPU11が所定のフェイルセーフ処理を実施する。つ
まり、退避走行を行うべく減筒制御や点火遅角制御等が
実施される。
In short, according to the processing of FIGS. 4 and 5, the diagnosis output is performed when the WD abnormality or the communication abnormality occurs twice or more in one trip (between ON and OFF of the IG switch). At the time of the diagnostic output, the control CPU 11 carries out a predetermined fail-safe process. That is, the cut-off cylinder control, the ignition retard control, etc. are executed to perform the evacuation travel.

【0035】次に、異常監視の様子を図6のタイムチャ
ートを用いてより具体的に説明する。図6は制御CPU
11が暴走状態になる場合を想定したものであり、図中
のタイミングt1以降、制御CPU11が暴走する。
Next, the state of abnormality monitoring will be described more specifically with reference to the time chart of FIG. 6 shows the control CPU
It is assumed that 11 is in a runaway state, and the control CPU 11 runs out of control after timing t1 in the figure.

【0036】図6において、タイミングt1以前は制御
CPU11から監視CPU12に対して定期的(4ms
毎)に通信データが送信されると共に、一定周期(8m
s周期)でWDパルスが反転される。このとき、WD監
視カウンタ及び通信監視カウンタは0付近の値で推移す
る。勿論、異常履歴が記憶されることはない。
In FIG. 6, before the timing t1, the control CPU 11 periodically (4 ms) from the monitoring CPU 12 to the monitoring CPU 12.
Communication data is transmitted every time, and a fixed period (8 m
The WD pulse is inverted every (s cycles). At this time, the WD monitoring counter and the communication monitoring counter change to values near 0. Of course, no abnormality history is stored.

【0037】タイミングt1では制御CPU11の暴走
に伴い通信及びWDパルス出力が停止される。これによ
り、WD監視カウンタ及び通信監視カウンタが次第にカ
ウントアップされ、異常検出時間Yが経過したタイミン
グt2ではWD異常履歴がメモリ12aに記憶される。
At timing t1, communication and WD pulse output are stopped due to the runaway of the control CPU 11. As a result, the WD monitoring counter and the communication monitoring counter are gradually counted up, and the WD abnormality history is stored in the memory 12a at the timing t2 when the abnormality detection time Y has elapsed.

【0038】またその後、異常検出時間Zが経過したタ
イミングt3ではWD回路13から制御CPU11に対
してリセット信号が出力される。これにより、制御CP
U11がリセットされ、それに引き続き監視CPU12
もリセットされる。その後、タイミングt4で各CPU
11,12が再起動すると、メモリ12a内のWD異常
履歴がクリアされると共に、WD異常カウンタが1カウ
ントアップされる。なおタイミングt4以降、図示の通
り制御CPU11が正常に復帰すると、WD監視カウン
タ及び通信監視カウンタが再び0付近の値で推移するよ
うになる。
After that, at the timing t3 when the abnormality detection time Z has elapsed, the WD circuit 13 outputs a reset signal to the control CPU 11. As a result, the control CP
U11 is reset and continues to monitor CPU12
Is also reset. After that, at timing t4, each CPU
When 11 and 12 are restarted, the WD abnormality history in the memory 12a is cleared and the WD abnormality counter is incremented by one. After the timing t4, when the control CPU 11 returns to the normal state as shown in the figure, the WD monitoring counter and the communication monitoring counter again change to values near 0.

【0039】上記図6では、Y<Zの関係にあることか
ら、WD回路13によるリセット出力の前に監視CPU
12でWD異常履歴が確実に記憶保持できる。また、Y
<Xの関係にあることから、WD異常履歴の記憶前に通
信異常に伴い制御CPU11がリセットされるという不
都合は生じない。このことからも、WD異常履歴が確実
に記憶保持できることが言える。
In the above-mentioned FIG. 6, since the relation of Y <Z is satisfied, the monitoring CPU is operated before the reset output by the WD circuit 13.
With 12, the WD abnormality history can be reliably stored and retained. Also, Y
Because of the relationship of <X, there is no inconvenience that the control CPU 11 is reset due to the communication abnormality before the WD abnormality history is stored. From this, it can be said that the WD abnormality history can be reliably stored and held.

【0040】図示は省略するが、制御CPU11におい
て通信停止で且つWDパルス正常となる場合には、通信
監視カウンタのみが次第にカウントアップされる。そし
て、通信監視カウンタの値がX相当の値になった時に、
通信異常履歴がメモリ12aに記憶されると共に監視C
PU12により制御CPU11がリセットされる。
Although illustration is omitted, when the communication is stopped and the WD pulse is normal in the control CPU 11, only the communication monitoring counter is gradually incremented. Then, when the value of the communication monitoring counter reaches a value equivalent to X,
The communication abnormality history is stored in the memory 12a and is monitored C
The control CPU 11 is reset by the PU 12.

【0041】また逆に、制御CPU11においてWDパ
ルス停止で且つ通信正常となる場合には、WD監視カウ
ンタのみが次第にカウントアップされる。そして、上記
図6と同様に、WD監視カウンタの値がY相当の値にな
った時に、WD異常履歴がメモリ12aに記憶される。
更に、WD異常から異常検出時間Zが経過した時にWD
回路13により制御CPU11がリセットされる。
On the contrary, when the control CPU 11 stops the WD pulse and the communication becomes normal, only the WD monitoring counter is gradually incremented. Then, similar to FIG. 6, when the value of the WD monitoring counter reaches a value corresponding to Y, the WD abnormality history is stored in the memory 12a.
Furthermore, when the abnormality detection time Z has passed from the WD abnormality, the WD
The control CPU 11 is reset by the circuit 13.

【0042】以上詳述した本実施の形態によれば、各異
常検出時間X,Y,Zを「Y<Z<X」の関係に規定し
たため、制御CPU11の暴走時にもWDパルス異常と
通信異常とが各々確実に記憶され、異常内容の特定を適
正に行うことができる。
According to the present embodiment described in detail above, since the abnormality detection times X, Y, Z are defined in the relation of "Y <Z <X", the WD pulse abnormality and the communication abnormality are caused even when the control CPU 11 runs out of control. And are reliably stored, and the content of the abnormality can be properly specified.

【0043】異常内容の特定が適正に行われることによ
り、その後のフェイルセーフ処理も適正に実施できる。
つまり、通信異常かWDパルス異常(CPU異常)かに
応じた適切な処置が可能となる。
By properly identifying the details of the abnormality, the subsequent fail-safe processing can be properly performed.
That is, it is possible to take appropriate measures depending on whether the communication is abnormal or the WD pulse is abnormal (CPU abnormality).

【0044】上記構成では、各異常検出時間X,Y,Z
を「Y<Z<X」の関係に規定したがこれを変更し、
「Y<X<Z」の関係に規定することも可能である。つ
まり、異常検出時間X,Zの大小関係を逆にする(X<
Zとする)。この場合のタイムチャートを図7に示す。
図7には前記図6と同様、制御CPU11の暴走時の動
作を示す。
In the above configuration, each abnormality detection time X, Y, Z
Was defined as the relationship of "Y <Z <X", but this was changed,
It is also possible to specify the relationship of “Y <X <Z”. That is, the magnitude relationship between the abnormality detection times X and Z is reversed (X <
Z). The time chart in this case is shown in FIG.
Similar to FIG. 6, FIG. 7 shows the operation of the control CPU 11 during a runaway.

【0045】図7では、前記図6と同様にタイミングt
11で制御CPU11の通信及びWDパルス出力が停止
される。これにより、WD監視カウンタ及び通信監視カ
ウンタが次第にカウントアップされ、異常検出時間Yが
経過したタイミングt12ではWD異常履歴がメモリ1
2aに記憶される。
In FIG. 7, the timing t is the same as in FIG.
At 11, the communication of the control CPU 11 and the WD pulse output are stopped. As a result, the WD monitoring counter and the communication monitoring counter are gradually counted up, and the WD abnormality history is stored in the memory 1 at the timing t12 when the abnormality detection time Y has elapsed.
2a.

【0046】その後、異常検出時間Xが経過したタイミ
ングt13では通信異常履歴がメモリ12aに記憶され
る。そして、このタイミングt13で監視CPU12に
より制御CPU11がリセットされる。その後、タイミ
ングt14で各CPU11,12が再起動すると、メモ
リ12a内のWD異常履歴及び通信異常履歴がクリアさ
れると共に、WD異常カウンタ及び通信異常フラグが各
々1カウントアップされる。
Thereafter, at the timing t13 when the abnormality detection time X has elapsed, the communication abnormality history is stored in the memory 12a. Then, at this timing t13, the monitoring CPU 12 resets the control CPU 11. After that, when the CPUs 11 and 12 are restarted at the timing t14, the WD abnormality history and the communication abnormality history in the memory 12a are cleared, and the WD abnormality counter and the communication abnormality flag are each incremented by one.

【0047】上記の如く「Y<X<Z」の関係を規定し
た場合、制御CPU11の暴走により通信及びWDパル
ス出力が共に停止した際にWD異常と通信異常の履歴が
両方共確実に記憶できる。
When the relation of "Y <X <Z" is defined as described above, both the WD abnormality and the history of the communication abnormality can be surely stored when both the communication and the WD pulse output are stopped due to the runaway of the control CPU 11. .

【0048】(第2の実施の形態)次に、本発明におけ
る第2の実施の形態について、上述した第1の実施の形
態との相違点を中心に説明する。本実施の形態では、異
常検出時間X,Yを「X>Y」に規定したがこの大小関
係を逆する(X<Yとする)。この場合、X<Yとする
ことで、前述の通り制御CPU11の暴走時において先
に通信異常が検出され、WD異常履歴を記憶する前にリ
セットがかかることが懸念されるが、本実施の形態では
通信異常の検出時にその時点で制御CPU11にリセッ
トをかけて良いかどうかが判断される。つまり、その判
断の結果に結果に応じてリセット出力が許可又は禁止さ
れる。これにより、異常内容の特定を適正に行うことを
実現する。
(Second Embodiment) Next, a second embodiment of the present invention will be described focusing on the differences from the above-described first embodiment. In the present embodiment, the abnormality detection times X and Y are defined as "X>Y", but this magnitude relationship is reversed (assuming X <Y). In this case, by setting X <Y, there is a concern that a communication abnormality may be detected first when the control CPU 11 runs out of control as described above, and reset may be applied before the WD abnormality history is stored. Then, when the communication abnormality is detected, it is determined whether or not the control CPU 11 can be reset at that time. That is, the reset output is permitted or prohibited depending on the result of the determination. As a result, it is possible to properly identify the details of the abnormality.

【0049】図8は本実施の形態における通信異常検出
処理を示すフローチャートであり、この処理は前記図2
に置き換えて実施される。図8の処理は、前記図2の処
理に対してステップ501を追加したものである。
FIG. 8 is a flow chart showing the communication abnormality detection processing according to the present embodiment. This processing is the same as in FIG.
Will be implemented. The process of FIG. 8 is obtained by adding step 501 to the process of FIG.

【0050】要するに図8では、通信監視カウンタがX
(ms)相当の値よりも大きくなった場合、通信異常履
歴をメモリ12aに記憶する(ステップ104,10
5)。そして、ステップ501では、その時点でWDパ
ルスが正常であるがどうかを推測する。このとき、WD
パルスのエッジの確認によりWDパルスの正常/異常が
推測される。WDパルスが正常でないと推測される場合
にはそのまま本処理を終了する。また、WDパルスが正
常であると推測される場合にはステップ106に進み、
制御CPU11をリセットする。
In short, in FIG. 8, the communication monitoring counter is X.
When it becomes larger than the value corresponding to (ms), the communication abnormality history is stored in the memory 12a (steps 104 and 10).
5). Then, in step 501, it is estimated whether the WD pulse is normal at that time. At this time, WD
The normality / abnormality of the WD pulse is inferred from the confirmation of the pulse edge. When it is estimated that the WD pulse is not normal, this processing is ended as it is. When it is estimated that the WD pulse is normal, the process proceeds to step 106,
The control CPU 11 is reset.

【0051】上記図8の処理に対応するタイムチャート
を図9に示す。図9には前記図6等と同様、制御CPU
11の暴走時の動作を示す。図9では、前記図6等と同
様にタイミングt21で制御CPU11の通信及びWD
パルス出力が停止され、WD監視カウンタ及び通信監視
カウンタが次第にカウントアップされる。そして、異常
検出時間Xが経過したタイミングt22で通信異常履歴
がメモリ12aに記憶される。このとき、WDパルスの
正常/異常が推測され、WD異常と推測されると監視C
PU12による制御CPU11のリセットが行われない
(図示の状態)。
FIG. 9 shows a time chart corresponding to the processing of FIG. FIG. 9 shows a control CPU similar to FIG. 6 and the like.
11 shows the operation at the time of runaway. In FIG. 9, the communication of the control CPU 11 and the WD are performed at the timing t21 as in FIG.
The pulse output is stopped, and the WD monitoring counter and the communication monitoring counter are gradually counted up. Then, the communication abnormality history is stored in the memory 12a at the timing t22 when the abnormality detection time X has elapsed. At this time, the normality / abnormality of the WD pulse is inferred, and if it is inferred that the WD is abnormal, the monitoring C
The control CPU 11 is not reset by the PU 12 (state shown in the figure).

【0052】その後、異常検出時間Yが経過したタイミ
ングt23でWD異常履歴がメモリ12aに記憶され、
更に異常検出時間Zが経過したタイミングt24でWD
回路13により制御CPU11がリセットされる。その
後、タイミングt25で各CPU11,12が再起動す
ると、メモリ12a内のWD異常履歴及び通信異常履歴
がクリアされると共に、WD異常カウンタ及び通信異常
フラグが各々1カウントアップされる。
Thereafter, the WD abnormality history is stored in the memory 12a at the timing t23 when the abnormality detection time Y has elapsed.
Further, at timing t24 when the abnormality detection time Z has passed, WD
The control CPU 11 is reset by the circuit 13. After that, when the CPUs 11 and 12 are restarted at the timing t25, the WD abnormality history and the communication abnormality history in the memory 12a are cleared, and the WD abnormality counter and the communication abnormality flag are each incremented by one.

【0053】但し、タイミングt22でWDパルスが正
常であると推測される場合には、そのタイミングt22
で制御CPU11がリセットされる。因みに、タイミン
グt22でWDパルス異常が誤って推測された場合、そ
の時点では制御CPU11がリセットされないが、次に
通信異常が検出された時に制御CPU11がリセットさ
れることとなる。
However, when it is estimated that the WD pulse is normal at the timing t22, the timing t22
The control CPU 11 is reset by. Incidentally, when the WD pulse abnormality is erroneously estimated at the timing t22, the control CPU 11 is not reset at that time, but the control CPU 11 is reset when the next communication abnormality is detected.

【0054】要するに、通信異常の検出時にWDパルス
が異常と推測される場合には、その後の異常検出時間Y
の経過時にWDパルス異常の旨が記憶される可能性があ
り、故に制御CPU11のリセットが制限される。これ
により、WDパルス異常と通信異常とが各々確実に記憶
されるようになる。
In short, when it is estimated that the WD pulse is abnormal when the communication abnormality is detected, the subsequent abnormality detection time Y
There is a possibility that the fact that the WD pulse is abnormal is stored after the passage of, and therefore the reset of the control CPU 11 is limited. As a result, the WD pulse abnormality and the communication abnormality can be surely stored.

【0055】上記第2の実施の形態では、通信異常の検
出時にWDパルスの正常/異常を推測しその結果に応じ
て制御CPU11へのリセット出力を制限したが、この
構成を変更する。例えば、通信異常の検出時に過去の異
常履歴(通信又はWDの異常履歴)等に応じて制御CP
U11へのリセット出力を制限しても良い。
In the second embodiment, when the communication abnormality is detected, the normality / abnormality of the WD pulse is estimated and the reset output to the control CPU 11 is limited according to the result, but this configuration is changed. For example, when a communication abnormality is detected, the control CP is controlled according to a past abnormality history (communication or WD abnormality history).
The reset output to U11 may be limited.

【0056】各異常検出時間X,Y,Zを規定する場合
に、X≧Y、X≦Z、Y≦Zとする等、イコールを含む
よう大小関係を規定しても良い。要は、異常検出時間が
同一であっても、異常履歴等の情報が確実に記憶できさ
えすれば良い。
When defining the abnormality detection times X, Y, Z, the magnitude relation may be defined so as to include equals such as X ≧ Y, X ≦ Z, Y ≦ Z. In short, even if the abnormality detection time is the same, it is only necessary to reliably store information such as abnormality history.

【0057】監視CPU12とWD回路13とを一つの
ICに集約し一体化することも可能である。この場合、
エンジンECU10としてのコスト削減を図ることがで
きる。
It is also possible to integrate the monitoring CPU 12 and the WD circuit 13 into one IC and integrate them. in this case,
The cost of the engine ECU 10 can be reduced.

【0058】上記各実施の形態では、制御CPU11と
して、車両におけるエンジン制御機能と電子スロットル
制御機能とを集約したものを用いたが、この構成を変更
する。例えば、エンジン制御用のCPU(メインCP
U)と電子スロットル制御用のCPU(サブCPU)と
を個別に設ける構成であっても良い。この場合にも上記
の如く各異常検出時間を規定することで、所望の効果が
得られることとなる。
In each of the above-described embodiments, the control CPU 11 has a combination of the engine control function and the electronic throttle control function in the vehicle, but this configuration is changed. For example, a CPU for engine control (main CP
U) and a CPU (sub CPU) for electronic throttle control may be separately provided. Also in this case, the desired effect can be obtained by defining each abnormality detection time as described above.

【図面の簡単な説明】[Brief description of drawings]

【図1】発明の実施の形態におけるエンジンECUの概
要を示す構成図。
FIG. 1 is a configuration diagram showing an outline of an engine ECU according to an embodiment of the invention.

【図2】監視CPUによる通信異常検出処理を示すフロ
ーチャート。
FIG. 2 is a flowchart showing communication abnormality detection processing by the monitoring CPU.

【図3】監視CPUによるWD異常検出処理を示すフロ
ーチャート。
FIG. 3 is a flowchart showing WD abnormality detection processing by the monitoring CPU.

【図4】監視CPUによるイニシャル処理を示すフロー
チャート。
FIG. 4 is a flowchart showing initial processing by the monitoring CPU.

【図5】監視CPUによるIGSWOFF時の処理を示
すフローチャート。
FIG. 5 is a flowchart showing the processing when the monitoring CPU turns off IGSW.

【図6】制御CPUの暴走時の動作を示すタイムチャー
ト。
FIG. 6 is a time chart showing the operation of the control CPU during a runaway.

【図7】制御CPUの暴走時の動作を示すタイムチャー
ト。
FIG. 7 is a time chart showing the operation of the control CPU during a runaway.

【図8】第2の実施の形態において監視CPUによる通
信異常検出処理を示すフローチャート。
FIG. 8 is a flowchart showing communication abnormality detection processing by the monitoring CPU according to the second embodiment.

【図9】制御CPUの暴走時の動作を示すタイムチャー
ト。
FIG. 9 is a time chart showing the operation of the control CPU during a runaway.

【符号の説明】[Explanation of symbols]

10…エンジンECU、11…制御CPU、12…監視
CPU、12a…メモリ、13…WD回路。
10 ... Engine ECU, 11 ... Control CPU, 12 ... Monitoring CPU, 12a ... Memory, 13 ... WD circuit.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 城向 剛博 愛知県豊田市トヨタ町1番地 トヨタ自動 車株式会社内 Fターム(参考) 3G084 BA05 DA26 DA27 DA28 EB06 EB22 EB24    ─────────────────────────────────────────────────── ─── Continued front page    (72) Inventor Takehiro Jomukai             1 Toyota Town, Toyota City, Aichi Prefecture Toyota Auto             Car Co., Ltd. F-term (reference) 3G084 BA05 DA26 DA27 DA28 EB06                       EB22 EB24

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】車両制御を実施する制御CPUと、該制御
CPUに対して通信可能に接続された監視CPUとを備
える車両用電子制御装置において、 監視CPUは、制御CPUとの通信状態を監視し通信異
常時にはその旨を記憶すると共に該制御CPUにリセッ
トをかける第1の異常検出手段と、制御CPUから出力
されるウオッチドッグパルスをモニタしてその周期性か
ら異常検出を行いウオッチドッグパルス異常時にはその
旨を記憶する第2の異常検出手段とを備え、前記第1の
異常検出手段による異常検出時間をX、前記第2の異常
検出手段による異常検出時間をYとしたとき、 X≧Y の関係を満たすよう異常検出時間X,Yを規定したこと
を特徴とする車両用電子制御装置。
1. An electronic control device for a vehicle, comprising: a control CPU for performing vehicle control; and a monitoring CPU communicatively connected to the control CPU, wherein the monitoring CPU monitors a communication state with the control CPU. If the communication abnormality occurs, the first abnormality detecting means for storing the fact and resetting the control CPU, and the watchdog pulse output from the control CPU are monitored to detect the abnormality from the periodicity of the watchdog pulse abnormality. Sometimes, a second abnormality detecting means for storing that effect is provided, and when the abnormality detecting time by the first abnormality detecting means is X and the abnormality detecting time by the second abnormality detecting means is Y, X ≧ Y An electronic control unit for a vehicle, characterized in that the abnormality detection times X and Y are defined so as to satisfy the above relationship.
【請求項2】制御CPUよりウオッチドッグパルスを入
力し該ウオッチドッグパルスが所定の監視時間Zだけ途
絶えると制御CPUに対してリセット信号を出力するウ
オッチドッグ監視回路を更に備え、前記第1の異常検出
手段による異常検出時間Xと前記ウオッチドッグ監視回
路による監視時間Zとを、 X≦Z の関係を満たすよう規定した請求項1記載の車両用電子
制御装置。
2. A watchdog monitoring circuit for inputting a watchdog pulse from the control CPU and outputting a reset signal to the control CPU when the watchdog pulse is interrupted for a predetermined monitoring time Z, further comprising the first abnormality. The vehicle electronic control device according to claim 1, wherein the abnormality detection time X by the detection means and the monitoring time Z by the watchdog monitoring circuit are defined so as to satisfy the relationship of X≤Z.
【請求項3】車両制御を実施する制御CPUと、該制御
CPUに対して通信可能に接続された監視CPUとを備
える車両用電子制御装置において、 監視CPUは、制御CPUとの通信状態を監視し通信異
常時にはその旨を記憶すると共に該制御CPUにリセッ
トをかける第1の異常検出手段と、制御CPUから出力
されるウオッチドッグパルスをモニタしてその周期性か
ら異常検出を行いウオッチドッグパルス異常時にはその
旨を記憶する第2の異常検出手段とを備え、前記第1の
異常検出手段による異常検出時間をX、前記第2の異常
検出手段による異常検出時間をYとしたとき、 X<Y の関係を満たすよう異常検出時間X,Yを規定し、監視
CPUは、前記第1の異常検出手段による通信異常の検
出時にその時点で制御CPUへのリセット出力の適否を
判断し、その結果に応じてリセット出力を制限すること
を特徴とする車両用電子制御装置。
3. An electronic control device for a vehicle, comprising: a control CPU for performing vehicle control; and a monitoring CPU communicatively connected to the control CPU, wherein the monitoring CPU monitors a communication state with the control CPU. If the communication abnormality occurs, the first abnormality detecting means for storing the fact and resetting the control CPU, and the watchdog pulse output from the control CPU are monitored to detect the abnormality from the periodicity of the watchdog pulse abnormality. And a second abnormality detecting means for storing the fact, wherein X is the abnormality detecting time by the first abnormality detecting means and Y is the abnormality detecting time by the second abnormality detecting means. The abnormality detection times X and Y are defined so as to satisfy the above relationship, and the monitoring CPU resets to the control CPU at the time when the first abnormality detection means detects a communication abnormality. Determining the appropriateness of bets output, vehicle electronic control unit, characterized in that to limit the reset output accordingly.
【請求項4】監視CPUは、前記第1の異常検出手段に
よる通信異常の検出時にその時点でウオッチドッグパル
スの正常/異常を推測して異常と推測される場合には制
御CPUにリセットをかけないようにした請求項3記載
の車両用電子制御装置。
4. The monitoring CPU resets the control CPU when the normality / abnormality of the watchdog pulse is inferred at the time when the communication abnormality is detected by the first abnormality detection means The vehicle electronic control unit according to claim 3, wherein the electronic control unit is not provided.
【請求項5】制御CPUよりウオッチドッグパルスを入
力し該ウオッチドッグパルスが所定の監視時間Zだけ途
絶えると制御CPUに対してリセット信号を出力するウ
オッチドッグ監視回路を備え、前記第2の異常検出手段
による異常検出時間Yと前記ウオッチドッグ監視回路に
よる監視時間Zとを、 Y≦Z の関係を満たすよう規定した請求項1乃至4の何れかに
記載の車両用電子制御装置。
5. A watchdog monitoring circuit for inputting a watchdog pulse from the control CPU and outputting a reset signal to the control CPU when the watchdog pulse is interrupted for a predetermined monitoring time Z, the second abnormality detection. The vehicle electronic control device according to any one of claims 1 to 4, wherein the abnormality detection time Y by means and the monitoring time Z by the watchdog monitoring circuit are defined so as to satisfy the relationship of Y≤Z.
JP2002021060A 2001-09-27 2002-01-30 Electronic control device for vehicle Expired - Fee Related JP3923810B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2002021060A JP3923810B2 (en) 2002-01-30 2002-01-30 Electronic control device for vehicle
US10/242,697 US6775609B2 (en) 2001-09-27 2002-09-13 Electronic control unit for vehicle having operation monitoring function and fail-safe function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002021060A JP3923810B2 (en) 2002-01-30 2002-01-30 Electronic control device for vehicle

Publications (2)

Publication Number Publication Date
JP2003222053A true JP2003222053A (en) 2003-08-08
JP3923810B2 JP3923810B2 (en) 2007-06-06

Family

ID=27744395

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002021060A Expired - Fee Related JP3923810B2 (en) 2001-09-27 2002-01-30 Electronic control device for vehicle

Country Status (1)

Country Link
JP (1) JP3923810B2 (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006271703A (en) * 2005-03-29 2006-10-12 Sun Corp Game parlor management system
WO2008099766A1 (en) * 2007-02-14 2008-08-21 Toyota Jidosha Kabushiki Kaisha Power supply system for vehicle
JP2008223692A (en) * 2007-03-14 2008-09-25 Denso Corp Electronic control device
JP2009519171A (en) * 2005-12-13 2009-05-14 ルノー エス.アー.エス A method for monitoring vehicle behavior based on in-vehicle diagnostic techniques that define different types of faults
JP2011134025A (en) * 2009-12-23 2011-07-07 Autonetworks Technologies Ltd Processor and control method
JP2012060842A (en) * 2010-09-13 2012-03-22 Denso Corp Electronic control device for vehicle
JP2012060841A (en) * 2010-09-13 2012-03-22 Denso Corp Electronic control device for vehicle
JP2012102691A (en) * 2010-11-12 2012-05-31 Bosch Corp Engine control device of power take-off mechanism-equipped vehicle
JP2013036354A (en) * 2011-08-04 2013-02-21 Denso Corp Fault determination device for fuel pressure detection command
JP2016057888A (en) * 2014-09-10 2016-04-21 株式会社デンソー Electronic control device and communication system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0599061A (en) * 1991-10-01 1993-04-20 Nippondenso Co Ltd Controller for automobile
JPH09212388A (en) * 1996-01-31 1997-08-15 Hitachi Cable Ltd Method for monitoring operation of cpu
JPH10177504A (en) * 1996-12-18 1998-06-30 Denso Corp Electronic controller
JPH10507805A (en) * 1994-10-29 1998-07-28 ロベルト・ボッシュ・ゲゼルシャフト・ミト・ベシュレンクテル・ハフツング Vehicle drive unit control method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0599061A (en) * 1991-10-01 1993-04-20 Nippondenso Co Ltd Controller for automobile
JPH10507805A (en) * 1994-10-29 1998-07-28 ロベルト・ボッシュ・ゲゼルシャフト・ミト・ベシュレンクテル・ハフツング Vehicle drive unit control method and device
JPH09212388A (en) * 1996-01-31 1997-08-15 Hitachi Cable Ltd Method for monitoring operation of cpu
JPH10177504A (en) * 1996-12-18 1998-06-30 Denso Corp Electronic controller

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006271703A (en) * 2005-03-29 2006-10-12 Sun Corp Game parlor management system
JP2009519171A (en) * 2005-12-13 2009-05-14 ルノー エス.アー.エス A method for monitoring vehicle behavior based on in-vehicle diagnostic techniques that define different types of faults
WO2008099766A1 (en) * 2007-02-14 2008-08-21 Toyota Jidosha Kabushiki Kaisha Power supply system for vehicle
JP2008223692A (en) * 2007-03-14 2008-09-25 Denso Corp Electronic control device
JP4725539B2 (en) * 2007-03-14 2011-07-13 株式会社デンソー Electronic control unit
JP2011134025A (en) * 2009-12-23 2011-07-07 Autonetworks Technologies Ltd Processor and control method
JP2012060842A (en) * 2010-09-13 2012-03-22 Denso Corp Electronic control device for vehicle
JP2012060841A (en) * 2010-09-13 2012-03-22 Denso Corp Electronic control device for vehicle
US8760093B2 (en) 2010-09-13 2014-06-24 Denso Corporation Electronic control apparatus for a vehicle
JP2012102691A (en) * 2010-11-12 2012-05-31 Bosch Corp Engine control device of power take-off mechanism-equipped vehicle
JP2013036354A (en) * 2011-08-04 2013-02-21 Denso Corp Fault determination device for fuel pressure detection command
JP2016057888A (en) * 2014-09-10 2016-04-21 株式会社デンソー Electronic control device and communication system

Also Published As

Publication number Publication date
JP3923810B2 (en) 2007-06-06

Similar Documents

Publication Publication Date Title
US6775609B2 (en) Electronic control unit for vehicle having operation monitoring function and fail-safe function
JP4803168B2 (en) Vehicle information storage device
US8527137B2 (en) Vehicle behavior data recording control system and recording apparatus
CN111164577B (en) Vehicle-mounted electronic control device and abnormal time processing method thereof
JP4835755B2 (en) Vehicle control device
JP5967059B2 (en) Electronic control device for vehicle
CN112485010A (en) Method and system for detecting response state of engine electric control actuator
JP3939961B2 (en) Electronic control device for vehicle
JP2006291730A (en) Diagnosis device for vehicle
JP2003222053A (en) Electronic control unit for vehicle
US8164214B2 (en) Vehicle control apparatus having function for preventing erroneous operation due to delay in activation of other vehicle control apparatus
JP3883842B2 (en) Electronic control device for vehicle
JP3883849B2 (en) Electronic control device for vehicle
JP3901987B2 (en) Electronic control device for vehicle
JP4007038B2 (en) Electronic control device for vehicle
JP5223512B2 (en) Vehicle abnormality analysis system, vehicle abnormality analysis method, and vehicle failure analysis device
JP3908020B2 (en) Electronic control device for vehicle
JP7200883B2 (en) electronic controller
JP2006224892A (en) Electronic control device for vehicle
JP2016203764A (en) Vehicular electronic control device
JP4375105B2 (en) Microcomputer monitoring device failure diagnosis method and vehicle electronic control device
JPH1134766A (en) Abnormality processing method for vehicle controlling computer
JP2003097345A (en) Electronic control device for vehicle
JP6887277B2 (en) Electronic control device for automobiles
JP4005421B2 (en) Electronic control device for vehicle

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040622

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060721

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060725

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060919

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: 20070220

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070222

R150 Certificate of patent or registration of utility model

Ref document number: 3923810

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110302

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120302

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130302

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140302

Year of fee payment: 7

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

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

LAPS Cancellation because of no payment of annual fees