JP2018161927A - Electronic control unit for automobile - Google Patents
Electronic control unit for automobile Download PDFInfo
- Publication number
- JP2018161927A JP2018161927A JP2017059358A JP2017059358A JP2018161927A JP 2018161927 A JP2018161927 A JP 2018161927A JP 2017059358 A JP2017059358 A JP 2017059358A JP 2017059358 A JP2017059358 A JP 2017059358A JP 2018161927 A JP2018161927 A JP 2018161927A
- Authority
- JP
- Japan
- Prior art keywords
- main microcomputer
- microcomputer
- abnormality
- control means
- self
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Combined Controls Of Internal Combustion Engines (AREA)
Abstract
【課題】コンピュータの異常により初期化が行われても、少なくともコンピュータに異常が発生したという情報をバックアップデータとして不揮発性メモリに書き込むことができる自動車用電子制御装置を提供する。【解決手段】サブマイコンは、エンジンを制御するROM内蔵メインマイコンの機能状態を監視し、メインマイコンに異常が発生したことを検知したときにメインマイコンを停止させて初期化を行わせる(時刻t1〜t2参照)。サブマイコンは、メインマイコンを停止させて初期化を行わせた後に、メインマイコンを強制的に起動させて(時刻t3参照)、RAMの機能状態フラグの情報を、メインマイコンに異常が発生したという設定値に自動的に書き換え、EEPROMにバックアップデータとして書き込ませる(時刻t3〜t4参照)。【選択図】図3PROBLEM TO BE SOLVED: To provide an electronic control device for an automobile capable of writing at least information that an abnormality has occurred in a computer to a non-volatile memory as backup data even if initialization is performed due to an abnormality in the computer. SOLUTION: A sub-microcomputer monitors the functional state of a main microcomputer having a built-in ROM that controls an engine, and when it detects that an abnormality has occurred in the main microcomputer, the main microcomputer is stopped and initialized (time t1). ~ T2). After stopping and initializing the main microcomputer, the sub-microcomputer forcibly starts the main microcomputer (see time t3), and the information of the RAM functional status flag indicates that an error has occurred in the main microcomputer. It is automatically rewritten to the set value and written to EEPROM as backup data (see time t3 to t4). [Selection diagram] Fig. 3
Description
本発明は、自動車用電子制御装置に関する。 The present invention relates to an automotive electronic control device.
従来の自動車用電子制御装置には、例えば特許文献1に開示されるように、コンピュータが、イグニッションスイッチのオン状態で車載機器を制御する定常処理において、車載機器の故障診断等によって得られた各種情報を、付随する揮発性メモリに一時的に記憶するものがあり、かかる自動車用電子制御装置では、イグニッションスイッチのオフ操作後、セルフシャットオフ機能によって電源供給が継続されている間(セルフシャットオフ期間)に、揮発性メモリに一時的に記憶した各種情報を、電気的に書換え可能な不揮発性メモリにバックアップデータとして書き込んでいる。 In conventional automotive electronic control devices, as disclosed in, for example, Patent Document 1, in a steady process in which a computer controls an in-vehicle device with an ignition switch turned on, various types of information obtained by failure diagnosis of the in-vehicle device, etc. Some information is temporarily stored in an accompanying volatile memory. In such an electronic control device for an automobile, after the ignition switch is turned off, the power supply is continued by the self-shutoff function (self-shutoff). During the period, various information temporarily stored in the volatile memory is written as backup data in the electrically rewritable nonvolatile memory.
しかしながら、特許文献1の自動車用電子制御装置において、コンピュータに異常が発生したという異常情報を揮発性メモリに一時的に記憶させても、定常処理中にコンピュータに異常が発生したと診断して強制的にリセット処理(初期化)を行った場合には、異常情報は既に記憶している各種情報とともに消去されてしまうことが考えられ、これらの情報をセルフシャット期間にバックアップデータとして不揮発性メモリへ書き込むことができないという可能性が生じる。 However, in the electronic control device for automobiles of Patent Document 1, even if abnormality information indicating that an abnormality has occurred in the computer is temporarily stored in the volatile memory, it is diagnosed and compulsory that an abnormality has occurred in the computer during steady processing. When the reset process (initialization) is performed automatically, the abnormal information may be erased together with the various information already stored, and the information is stored in the nonvolatile memory as backup data during the self-shut period. The possibility of not being able to write arises.
そこで、本発明は以上のような問題点に鑑み、コンピュータの異常により初期化が行われても、少なくともコンピュータに異常が発生したという情報をバックアップデータとして不揮発性メモリに書き込み可能な自動車用電子制御装置を提供することを目的とする。 Therefore, in view of the above problems, the present invention provides an electronic control for automobiles that can write at least information that an abnormality has occurred in a computer as backup data to a nonvolatile memory even if initialization is performed due to an abnormality in the computer. An object is to provide an apparatus.
このため、本発明に係る自動車用電子制御装置は、揮発性メモリを有し、車載機器を制御する制御手段と、制御手段を監視し、制御手段に異常が発生したときに制御手段を停止させて初期化を行わせる監視手段と、イグニッションスイッチのオフ操作を検知してから所定時間が経過するまでの間、制御手段及び監視手段に対する電源供給を継続させる電源制御手段と、所定時間中に揮発性メモリの記憶情報を書き込まれる書換え可能な不揮発性メモリと、を備え、監視手段は、制御手段を停止させて初期化を行わせた後に、制御手段を強制的に起動させて、少なくとも制御手段に異常が発生したという情報を、不揮発性メモリに書き込ませることを特徴とする。 For this reason, the automotive electronic control device according to the present invention has a volatile memory, monitors the on-vehicle equipment, and monitors the control means, and stops the control means when an abnormality occurs in the control means. Monitoring means for performing initialization, power control means for continuing power supply to the control means and the monitoring means until a predetermined time elapses after detecting the ignition switch OFF operation, and volatilization during the predetermined time A rewritable non-volatile memory in which stored information of the volatile memory is written, and the monitoring means forcibly starts the control means after stopping the control means and performing initialization, and at least the control means Information that an abnormality has occurred is written into a nonvolatile memory.
本発明の自動車用電子制御装置によれば、コンピュータの異常により初期化が行われても、少なくともコンピュータに異常が発生したという情報をバックアップデータとして不揮発性メモリに書き込むことができる。 According to the automobile electronic control device of the present invention, even if initialization is performed due to a computer abnormality, at least information indicating that the abnormality has occurred in the computer can be written in the nonvolatile memory as backup data.
以下、添付された図面を参照し、本発明を実施するための実施形態について詳述する。
[第1実施形態]
図1は、本発明の第1実施形態に係る自動車用電子制御装置の一例を示す。
Hereinafter, embodiments for carrying out the present invention will be described in detail with reference to the accompanying drawings.
[First Embodiment]
FIG. 1 shows an example of an automotive electronic control device according to a first embodiment of the present invention.
自動車用電子制御装置1は、コンピュータを内蔵し、車載バッテリ2からイグニッションスイッチ(図中、「IGNSW」と略記する。以下同様)3を介して電源供給を受けることで、車載機器を制御するものである。車載機器として、エンジン4を例に挙げて説明するが、変速装置、制動装置、操舵装置等、他の車両システムを制御対象としても本発明の自動車用電子制御装置を適用可能である。 The vehicle electronic control device 1 has a built-in computer, and controls vehicle equipment by receiving power supply from the vehicle battery 2 via an ignition switch 3 (abbreviated as “IGNSW” in the figure, the same applies hereinafter) 3. It is. Although the engine 4 will be described as an example of the in-vehicle device, the automotive electronic control device of the present invention can be applied to other vehicle systems such as a transmission, a braking device, and a steering device.
自動車用電子制御装置1は、エンジン4を制御する制御手段としての制御用マイクロコンピュータ(以下、「メインマイコン」という)10と、メインマイコン10の機能状態を監視する監視手段としての監視用マイクロコンピュータ(以下、「サブマイコン」という)20と、車載バッテリ2からイグニッションスイッチ3を介して供給される電源電圧を制御用電圧に調整してメインマイコン10及びサブマイコン20に供給する電源回路30と、車載バッテリ2と電源回路30との間でイグニッションスイッチ3と並列に設けられたリレースイッチ(図中、「リレーSW」と略記する。以下同様)40と、を有している。 The automotive electronic control device 1 includes a control microcomputer (hereinafter referred to as “main microcomputer”) 10 as a control means for controlling the engine 4 and a monitoring microcomputer as a monitoring means for monitoring the functional state of the main microcomputer 10. (Hereinafter referred to as “sub-microcomputer”) 20, a power supply circuit 30 that adjusts the power supply voltage supplied from the in-vehicle battery 2 via the ignition switch 3 to the control voltage and supplies the control voltage to the main microcomputer 10 and the sub-microcomputer 20; And a relay switch (abbreviated as “relay SW” in the figure, the same applies hereinafter) 40 provided in parallel with the ignition switch 3 between the in-vehicle battery 2 and the power supply circuit 30.
(メインマイコン)
メインマイコン10は、信号の入出力を行うインタフェースであるI/O(Input/Output)ポート11と、各種演算処理を行うCPU(Central Processing Unit)12と、揮発性メモリであるRAM(Random Access Memory)13と、サブマイコン20と通信回線CLを介して通信を行うためのインタフェースである通信I/F14と、電気的に書換え可能であって電源遮断時にも記憶された情報を保持する不揮発性メモリであるEEPROM(Electrically Erasable Programmable Read-Only Memory)15と、を内部バス16によって相互接続して備えている。
(Main microcomputer)
The main microcomputer 10 includes an I / O (Input / Output) port 11 that is an interface for inputting and outputting signals, a CPU (Central Processing Unit) 12 that performs various arithmetic processes, and a RAM (Random Access Memory) that is a volatile memory. ) 13, a communication I / F 14 that is an interface for communicating with the sub-microcomputer 20 via the communication line CL, and a non-volatile memory that is electrically rewritable and retains stored information even when the power is shut off An EEPROM (Electrically Erasable Programmable Read-Only Memory) 15 is interconnected by an internal bus 16.
I/Oポート11は、例えば、クランク角、水温、吸気量等のエンジン4の運転状態に関する検出信号Seiや、イグニッションスイッチ3の出力電圧Vignの検出信号Sviを入力する一方、燃料噴射弁、点火プラグ等といったエンジン4に付随する各種アクチュエータへの制御信号Seoや、リレースイッチ40への制御信号Sroを出力する。なお、I/Oポート11又はI/Oポート11の前若しくは後において、検出信号Sei,SviはA/D(Analog/Digital)変換によってデジタル値に変換され、制御信号Seo,SroはD/A(Digital/Analog)変換によりアナログ値に変換されてもよい。 The I / O port 11 receives, for example, a detection signal Sei regarding the operating state of the engine 4 such as a crank angle, a water temperature, an intake air amount, and a detection signal Svi of the output voltage Vign of the ignition switch 3, while a fuel injection valve, an ignition A control signal Seo to various actuators attached to the engine 4 such as a plug and a control signal Sro to the relay switch 40 are output. The detection signals Sei and Svi are converted into digital values by A / D (Analog / Digital) conversion before or after the I / O port 11 or the I / O port 11, and the control signals Seo and Sro are converted to D / A. It may be converted into an analog value by (Digital / Analog) conversion.
CPU12は、I/Oポート11を介して入力したエンジン4からの検出信号Seiに基づいて、例えば、燃料噴射量、燃料噴射時期、点火時期等、各種アクチュエータの制御量を演算し、この制御量に応じた制御信号SeoをI/Oポート11を介してエンジン4の各種アクチュエータへ出力して、エンジン制御処理を行う。 Based on the detection signal Sei from the engine 4 input via the I / O port 11, the CPU 12 calculates control amounts of various actuators such as a fuel injection amount, a fuel injection timing, an ignition timing, and the like. A control signal Seo corresponding to the above is output to various actuators of the engine 4 via the I / O port 11 to perform engine control processing.
また、CPU12は、エンジン4の故障診断処理及び学習制御処理を行って、故障診断の結果である故障診断情報、及び学習制御の結果である学習データを、内部バス16を介してRAM13に一時的に記憶する。 Further, the CPU 12 performs failure diagnosis processing and learning control processing of the engine 4 and temporarily stores failure diagnosis information as a result of failure diagnosis and learning data as a result of learning control to the RAM 13 via the internal bus 16. To remember.
メインマイコン10のCPU12において、エンジン制御処理と、エンジン制御処理において所定のタイミングで行われるエンジン4の故障診断処理及び学習制御処理とは、イグニッションスイッチ3のオン状態に対応して定常処理として行われる。 In the CPU 12 of the main microcomputer 10, engine control processing, and failure diagnosis processing and learning control processing of the engine 4 performed at a predetermined timing in the engine control processing are performed as steady processing corresponding to the ON state of the ignition switch 3. .
自動車用電子制御装置1には、イグニッションスイッチ3のオフ操作後においてもメインマイコン10及びサブマイコン20への電源供給を継続させ、かつ、オフ操作から所定時間が経過したときに電源供給を自己遮断するセルフシャットオフ機能(電源制御手段)が備えられている。 The electronic control device 1 for an automobile continues to supply power to the main microcomputer 10 and the sub-microcomputer 20 even after the ignition switch 3 is turned off, and self-shuts off the power supply when a predetermined time has elapsed since the turning-off operation. A self-shutoff function (power control means) is provided.
具体的には、メインマイコン10において、CPU12が、I/Oポート11を介して入力された、イグニッションスイッチ3の出力電圧Vignの検出信号Sviに基づいて、イグニッションスイッチ3のオフ操作を検知したときに、リレースイッチ40に対してこれをオンにする制御信号SroをI/Oポート11を介して出力することで、イグニッションスイッチ3を迂回して車載バッテリ2から電源回路30へ電源供給を行う。そして、CPU12は、イグニッションスイッチ3のオフ操作を検知してから内蔵のタイマ(図示省略)によってカウントされた時間が所定時間に達したと判定したときに、リレースイッチ40に対してこれをオフにする制御信号Sroを出力することで、電源回路30への電源供給、ひいては、メインマイコン10及びサブマイコン20への電源供給を自己遮断する。 Specifically, in the main microcomputer 10, when the CPU 12 detects an off operation of the ignition switch 3 based on the detection signal Svi of the output voltage Vign of the ignition switch 3 input via the I / O port 11. In addition, a control signal Sro for turning on the relay switch 40 is output via the I / O port 11, thereby bypassing the ignition switch 3 and supplying power from the in-vehicle battery 2 to the power supply circuit 30. When the CPU 12 detects that the ignition switch 3 is turned off and determines that the time counted by a built-in timer (not shown) has reached a predetermined time, the CPU 12 turns the relay switch 40 off. By outputting the control signal Sro to be performed, the power supply to the power supply circuit 30 and the power supply to the main microcomputer 10 and the sub-microcomputer 20 are cut off by itself.
CPU12は、定常処理の実行中における所定のタイミングでメインマイコン10の機能状態について異常であるか否かの自己診断処理を行って、自己診断処理の結果である自己診断情報を、通信I/F14及び通信回線CLを介してサブマイコン20へ送信するとともに、内部バス16を介してRAM13に一時的に記憶する。 The CPU 12 performs a self-diagnosis process on whether or not the function state of the main microcomputer 10 is abnormal at a predetermined timing during the execution of the steady process, and transmits self-diagnosis information as a result of the self-diagnosis process to the communication I / F 14. And transmitted to the sub-microcomputer 20 via the communication line CL and temporarily stored in the RAM 13 via the internal bus 16.
自己診断処理において、CPU12は、メインマイコン10の機能状態が正常であるという自己診断を行った場合、イグニッションスイッチ3のオフ操作が検知されてからセルフシャットオフ機能によってリレースイッチ40がオフにされるまでのセルフシャットオフ期間に、RAM13に一時的に記憶された、エンジン4の故障診断情報及び学習データ、並びにメインマイコン10の自己診断情報を、EEPROM15にバックアップデータとして書き込ませる(正常時書き込み)。 In the self-diagnosis process, when the CPU 12 performs a self-diagnosis that the function state of the main microcomputer 10 is normal, the relay switch 40 is turned off by the self-shut off function after the off operation of the ignition switch 3 is detected. In the self-shutoff period until the time, the failure diagnosis information and learning data of the engine 4 and the self-diagnosis information of the main microcomputer 10 temporarily stored in the RAM 13 are written as backup data in the EEPROM 15 (normal writing).
一方、自己診断処理において、CPU12は、メインマイコン10の機能状態が異常であると診断した場合、サブマイコン20からの信号に従って、メインマイコン10を停止して初期化を行う。そして、メインマイコン10は、初期化後、サブマイコン20からの信号に従って強制的に起動し、定常処理を行わずに、エンジン4に付随する各種アクチュエータの動作を制限する異常時処理を行う。また、メインマイコン10は、強制的に作動している時間(強制作動時間)中に、RAM13に一時的に記憶される情報を、正常時書き込みと異なるタイミングでEEPROM15に書き込む異常時書き込み処理を行う。 On the other hand, in the self-diagnosis process, when the CPU 12 diagnoses that the function state of the main microcomputer 10 is abnormal, the CPU 12 stops and initializes the main microcomputer 10 according to the signal from the sub-microcomputer 20. Then, after initialization, the main microcomputer 10 is forcibly activated in accordance with a signal from the sub-microcomputer 20, and performs an abnormal time process that restricts the operation of various actuators attached to the engine 4 without performing a steady process. Further, the main microcomputer 10 performs an abnormal time writing process in which the information temporarily stored in the RAM 13 is written into the EEPROM 15 at a timing different from the normal time writing during the time during which the main microcomputer 10 is forcibly operating (forced operating time). .
EEPROM15は、定常処理、異常時処理、自己診断処理及び異常時書き込み処理を含む各種制御処理を行うための制御処理プログラムを予め格納し、CPU12が、EEPROM15からRAM13に制御処理プログラムを適宜読み出してこれを実行することで各種制御処理を行う。なお、制御処理プログラムは、EEPROM15とは別のROM(Read Only Memory)に格納されていてもよい。 The EEPROM 15 stores in advance a control processing program for performing various control processes including a steady process, an abnormal process, a self-diagnosis process, and an abnormal write process, and the CPU 12 appropriately reads the control process program from the EEPROM 15 to the RAM 13. Various control processes are performed by executing. Note that the control processing program may be stored in a ROM (Read Only Memory) different from the EEPROM 15.
(サブマイコン)
サブマイコン20は、メインマイコン10と同様に、CPU21、RAM22、ROM23及び通信I/F24を、内部バス25によって相互接続して備えている。
(Sub microcomputer)
As with the main microcomputer 10, the sub-microcomputer 20 includes a CPU 21, a RAM 22, a ROM 23, and a communication I / F 24 that are interconnected by an internal bus 25.
ROM23は、メインマイコン10の機能状態を監視するための監視プログラムを予め格納し、CPU21は、ROM23から内部バス25を介してRAM22に監視プログラムを読み出してこれを実行することで、通信I/F24を介して受信したメインマイコン10の自己診断情報に基づいて、メインマイコン10の機能状態を監視する。そして、CPU21は、メインマイコン10の機能状態に異常が発生したことを検知したときに、メインマイコン10を停止させて初期化を行わせた後、メインマイコン10にEEPROM15への異常時書き込み処理を行わせるべく、通信I/F24を介してメインマイコン10へ各種信号を送信する。 The ROM 23 stores a monitoring program for monitoring the functional state of the main microcomputer 10 in advance, and the CPU 21 reads the monitoring program from the ROM 23 to the RAM 22 via the internal bus 25 and executes it to execute the communication I / F 24. The function status of the main microcomputer 10 is monitored based on the self-diagnosis information of the main microcomputer 10 received via When the CPU 21 detects that an abnormality has occurred in the functional state of the main microcomputer 10, the CPU 21 stops the main microcomputer 10 to perform initialization, and then causes the main microcomputer 10 to perform a writing process to the EEPROM 15 when there is an abnormality. In order to perform this, various signals are transmitted to the main microcomputer 10 via the communication I / F 24.
(サブマイコンにおける監視処理)
図2は、サブマイコン20のCPU21が、監視プログラムに従って、イグニッションスイッチ3のオン操作(図3の時刻t0参照)によりサブマイコン20が起動した(図3の時刻t1参照)ことを契機として実行を開始する監視処理のフローチャートである。
(Supervisor microcomputer monitoring process)
2 is executed when the sub-microcomputer 20 is activated (see time t1 in FIG. 3) when the CPU 21 of the sub-microcomputer 20 is activated according to the monitoring program by turning on the ignition switch 3 (see time t0 in FIG. 3). It is a flowchart of the monitoring process to start.
ステップS101(図中では「S101」と略記する。以下同様)では、メインマイコン10の自己診断処理による自己診断情報に基づいて、メインマイコン10に異常が発生しているか否かを検知する。メインマイコン10に異常が発生していると検知した場合には、ステップS102へ進む(Yes)。一方、メインマイコン10に異常が発生していないと検知した場合には、ステップS106へ進む(No)。 In step S101 (abbreviated as “S101” in the figure, the same applies hereinafter), whether or not an abnormality has occurred in the main microcomputer 10 is detected based on self-diagnosis information obtained by self-diagnosis processing of the main microcomputer 10. If it is detected that an abnormality has occurred in the main microcomputer 10, the process proceeds to step S102 (Yes). On the other hand, if it is detected that no abnormality has occurred in the main microcomputer 10, the process proceeds to step S106 (No).
ステップS102では、メインマイコン10の停止を要求するための停止要求信号を送信する(図3の時刻t3〜t8参照)。この信号は、サブマイコン20に対する電源供給が遮断されるまで(図3の時刻t8参照)連続的に送信される。 In step S102, a stop request signal for requesting stop of the main microcomputer 10 is transmitted (see times t3 to t8 in FIG. 3). This signal is continuously transmitted until the power supply to the sub-microcomputer 20 is cut off (see time t8 in FIG. 3).
ステップS103では、サブマイコン20は、停止要求信号を送信してから、メインマイコン10の初期化が終了したと判断できるまでの時間が経過したときに、メインマイコン10を強制的に起動させるための強制起動指令信号をメインマイコン10へ送信する(図3の時刻t5参照)。 In step S103, the sub-microcomputer 20 is configured to forcibly start the main microcomputer 10 when a time elapses from when the stop request signal is transmitted until it can be determined that the initialization of the main microcomputer 10 has ended. A forced activation command signal is transmitted to the main microcomputer 10 (see time t5 in FIG. 3).
ステップS104では、強制起動指令信号の送信から経過した時間、すなわち強制作動時間が、設定時間Tに到達したか否かを判定する。 In step S104, it is determined whether or not the time elapsed since the transmission of the forced activation command signal, that is, the forced operation time has reached the set time T.
設定時間Tは、後述する図5のステップS305においてRAM13に記憶された機能状態フラグの情報をバックアップデータとしてEEPROM15に書き込むために必要な時間である。また、後述する図5のステップS305において、機能状態フラグの情報をEEPROM15へ書き込むことに加えて、定常処理のうちエンジン4の故障診断処理や学習制御処理を実行し、故障診断情報や学習データをRAM13に記憶させる場合や、あるいは、自己診断を行う場合には、設定時間Tは、各処理の実行時間及び情報・データの書き込み時間、あるいは自己診断に要する時間等に応じてより長く設定される。 The set time T is a time necessary for writing the function status flag information stored in the RAM 13 in step S305 of FIG. 5 to be described later to the EEPROM 15 as backup data. In addition, in step S305 of FIG. 5 described later, in addition to writing the function state flag information to the EEPROM 15, the failure diagnosis processing and learning control processing of the engine 4 in the steady processing is executed, and the failure diagnosis information and learning data are obtained. When the data is stored in the RAM 13 or when self-diagnosis is performed, the set time T is set longer depending on the execution time of each process, the time for writing information and data, the time required for self-diagnosis, and the like. .
ステップS104において、強制作動時間が設定時間Tに到達したと判定された場合にはステップS105へ進み(Yes)、一方、強制作動時間が設定時間Tに到達していない場合にはステップS104を繰り返す(No)。 If it is determined in step S104 that the forced operation time has reached the set time T, the process proceeds to step S105 (Yes), while if the forced operation time has not reached the set time T, step S104 is repeated. (No).
ステップS105では、メインマイコン10を強制的に停止させるための強制停止指令信号を送信する(図3の時刻t6参照)。 In step S105, a forced stop command signal for forcibly stopping the main microcomputer 10 is transmitted (see time t6 in FIG. 3).
ステップS106では、イグニッションスイッチ3のオフ操作が行われたか否かを判定する。イグニッションスイッチ3のオフ操作が行われたと判定した場合には、監視処理を終了し(Yes)、一方、イグニッションスイッチ3のオフ操作が行われていないと判定した場合には、ステップS101へ戻り、メインマイコン10に異常が発生しているか否かを検知する(No)。 In step S106, it is determined whether or not the ignition switch 3 is turned off. If it is determined that the ignition switch 3 is turned off, the monitoring process is terminated (Yes). On the other hand, if it is determined that the ignition switch 3 is not turned off, the process returns to step S101. It is detected whether or not an abnormality has occurred in the main microcomputer 10 (No).
(メインマイコンにおける定常処理及び異常時処理)
図4は、メインマイコン10のCPU12が、制御処理プログラムに従い、メインマイコン10の起動(図3の時刻t1又はt5)を契機として実行を開始する定常処理及び異常時処理のフローチャートである。
(Steady processing and abnormal processing in the main microcomputer)
FIG. 4 is a flowchart of a steady process and an abnormal process in which the CPU 12 of the main microcomputer 10 starts execution in response to the activation of the main microcomputer 10 (time t1 or t5 in FIG. 3) according to the control processing program.
ステップS201では、通信I/F14を介して、サブマイコン20から送信される停止要求信号を受信したか否かを判定する。停止要求信号を受信したか否かを判定することで、後述するように、メインマイコン10が機能状態を異常とする自己診断を行って初期化され、かつ、初期化後にサブマイコン20によって強制的に起動したか否かを判定することができる。停止要求信号を受信していないと判定した場合には、メインマイコン10の機能状態が正常であるので、自己診断処理を行うべくステップS202へ進み(No)、一方、停止要求信号を受信したと判定した場合には、メインマイコン10の機能状態が異常である可能性があるので、ステップS204へ進む(Yes)。 In step S201, it is determined whether or not a stop request signal transmitted from the sub-microcomputer 20 is received via the communication I / F 14. By determining whether or not the stop request signal has been received, as will be described later, the main microcomputer 10 is initialized by performing a self-diagnosis that makes the functional state abnormal, and is forced by the sub-microcomputer 20 after the initialization. It can be determined whether or not If it is determined that the stop request signal has not been received, the function state of the main microcomputer 10 is normal, and thus the process proceeds to step S202 to perform self-diagnosis processing (No), while the stop request signal has been received. If it is determined, the function state of the main microcomputer 10 may be abnormal, so the process proceeds to step S204 (Yes).
ステップS202では、前述の定常処理を行う。すなわち、CPU12は、エンジン制御処理を行い、エンジン制御処理における所定のタイミングでエンジン4の故障診断処理及び学習制御処理を行う。エンジン4の故障診断処理及び学習制御処理により得られた故障診断情報及び学習データはRAM13に一時的に記憶される。 In step S202, the above-described steady process is performed. That is, the CPU 12 performs an engine control process, and performs a failure diagnosis process and a learning control process for the engine 4 at a predetermined timing in the engine control process. Failure diagnosis information and learning data obtained by the failure diagnosis processing and learning control processing of the engine 4 are temporarily stored in the RAM 13.
ステップS203では、イグニッションスイッチ3のオフ操作(図3の時刻t7参照)が行われたか否かを判定する。具体的には、I/Oポート11を介して入力された、イグニッションスイッチ3の出力電圧Vignの検出信号に基づいて、出力電圧Vignと閾値電圧との大小比較を行うことによって、イグニッションスイッチ3のオフ操作が行われたか否かを判定する。 In step S203, it is determined whether or not the ignition switch 3 is turned off (see time t7 in FIG. 3). Specifically, the output voltage Vign is compared with the threshold voltage based on the detection signal of the output voltage Vign of the ignition switch 3 input via the I / O port 11, whereby the ignition switch 3 is switched. It is determined whether or not an off operation has been performed.
イグニッションスイッチ3のオフ操作が行われたと判定した場合には、定常処理を終了する(Yes)。一方、イグニッションスイッチ3のオフ操作が行われていないと判定した場合には、ステップS202へ戻って定常処理を続行する(No)。 When it is determined that the ignition switch 3 is turned off, the steady process is terminated (Yes). On the other hand, when it is determined that the ignition switch 3 is not turned off, the process returns to step S202 to continue the steady process (No).
ステップS204では、定常処理を行わずに、エンジン4に付随する各種アクチュエータの動作を制限する異常時処理を行う(図3の時刻t5〜t6参照)。エンジン4に付随する各種アクチュエータの動作を制限するのは、メインマイコン10が自己診断処理によって異常の発生を検知しているため、異常の可能性があるメインマイコン10によって定常処理を実行すると、各種アクチュエータが不安定な動作をして車両運転に影響を及ぼす可能性があるからである。 In step S204, the process at the time of abnormality which restrict | limits operation | movement of the various actuators accompanying the engine 4 is performed without performing a steady process (refer the time t5-t6 of FIG. 3). The operation of the various actuators associated with the engine 4 is limited because the main microcomputer 10 detects the occurrence of an abnormality by the self-diagnosis process. This is because the actuator may cause an unstable operation and affect the vehicle operation.
各種アクチュエータの動作を制限する態様としては、例えば定常処理の強制終了等によって、各種アクチュエータの動作を停止させることができる。 As a mode for restricting the operations of the various actuators, the operations of the various actuators can be stopped, for example, by forcibly ending the steady process.
各種アクチュエータの動作を制限する別の態様としては、例えばメインマイコン10の正常時における定常処理とは異なる演算方法で演算された制御量あるいは所定値に制限された制御量に応じた制御信号の出力等によって、各種アクチュエータの動作を抑制することができる。 As another mode for restricting the operation of various actuators, for example, the output of a control signal according to a control amount calculated by a calculation method different from a steady process when the main microcomputer 10 is normal or a control amount limited to a predetermined value Thus, the operation of various actuators can be suppressed.
例えば、燃料噴射弁(電磁弁)の制御量をメインマイコン10の正常時と異なる演算方法で演算してあるいは所定値に制限して、この制御量に応じた制御信号を出力することで、燃料噴射弁から噴射される燃料噴射量を抑制してもよい。また、例えば、エンジン4が圧縮可変機構(VCR:Variable Compression Ratio system)を備えている場合には、ピストンの上死点位置を変更する電動アクチュエータを初期位置に固定したり、あるいは、電動アクチュエータの変化量を意図的に制限したりしてもよい。さらに、例えば、メインマイコン10が電動アクチュエータを制御するアクチュエータ用コントローラ(EDU)と通信を行っている場合に、通信を停止したり、通信異常と判断される値を送信したりしてEDU側に異常となったことを認識させてもよい。 For example, the control amount of the fuel injection valve (solenoid valve) is calculated by a calculation method different from that when the main microcomputer 10 is normal or limited to a predetermined value, and a control signal corresponding to the control amount is output, thereby generating fuel. The fuel injection amount injected from the injection valve may be suppressed. For example, when the engine 4 includes a variable compression ratio system (VCR), an electric actuator that changes the top dead center position of the piston is fixed at an initial position, or the electric actuator The amount of change may be intentionally limited. Furthermore, for example, when the main microcomputer 10 is communicating with an actuator controller (EDU) that controls the electric actuator, the communication is stopped or a value determined to be a communication abnormality is transmitted to the EDU side. You may make it recognize that it became abnormal.
ステップS205において、通信I/F14を介して、サブマイコン20から送信される強制停止指令信号を受信した場合(図3の時刻t6参照)には異常時処理を終了する(Yes)。一方、強制停止指令信号を受信していない場合には、異常時処理を続行すべくステップS204へ戻る(No)。 In step S205, when the forced stop command signal transmitted from the sub-microcomputer 20 is received via the communication I / F 14 (see time t6 in FIG. 3), the abnormality process is terminated (Yes). On the other hand, if the forced stop command signal has not been received, the process returns to step S204 to continue the abnormal process (No).
(メインマイコンの自己診断処理)
図5は、メインマイコン10のCPU12が、制御処理プログラムに従い、メインマイコン10の起動(図3の時刻t1又はt5)を契機として実行を開始する自己診断処理のフローチャートである。
(Main microcomputer self-diagnosis processing)
FIG. 5 is a flowchart of the self-diagnosis process in which the CPU 12 of the main microcomputer 10 starts execution in response to the activation of the main microcomputer 10 (time t1 or t5 in FIG. 3) according to the control processing program.
ステップS301では、通信I/F14を介して、サブマイコン20から送信される後述の停止要求信号を受信したか否かを判定する。停止要求信号を受信したか否かを判定することで、前述の図4のステップS201と同様に、メインマイコン10が異常と自己診断して初期化された後、サブマイコン20によって強制的に起動したか否かを判定することができる。停止要求信号を受信していないと判定された場合には、メインマイコン10は強制起動していないので、自己診断処理を行うべくステップS302へ進む(No)。一方、停止要求信号を受信したと判定された場合には、メインマイコン10がすでに異常であるという自己診断を行っているので、自己診断処理を行わずに終了する(Yes)。 In step S301, it is determined whether or not a stop request signal described later transmitted from the sub-microcomputer 20 has been received via the communication I / F 14. By determining whether or not the stop request signal has been received, after the main microcomputer 10 is self-diagnosed and initialized as abnormal, as in step S201 of FIG. It can be determined whether or not. If it is determined that the stop request signal has not been received, the main microcomputer 10 has not been forcibly activated, and the process proceeds to step S302 to perform self-diagnosis processing (No). On the other hand, if it is determined that the stop request signal has been received, the main microcomputer 10 has already performed a self-diagnosis that the abnormality has occurred, and thus the process ends without performing the self-diagnosis process (Yes).
ステップS302では、所定のタイミングでメインマイコン10の機能状態について自己診断処理を行う。自己診断処理によりメインマイコン10の機能状態に異常がないと診断した場合にはステップS303へ進み(No)、メインマイコン10の機能状態に異常があると診断した場合にはステップS306へ進む(Yes)。 In step S302, a self-diagnosis process is performed for the functional state of the main microcomputer 10 at a predetermined timing. If it is diagnosed by the self-diagnosis process that there is no abnormality in the functional state of the main microcomputer 10, the process proceeds to step S303 (No), and if it is diagnosed that the function state of the main microcomputer 10 is abnormal, the process proceeds to step S306 (Yes). ).
ステップS303では、メインマイコン10の機能状態が正常である旨の自己診断情報をサブマイコン20へ送信するとともにRAM13に書き込む。RAM13に書き込まれた自己診断情報のうち、メインマイコン10の機能状態を示す機能状態フラグは、正常を示す初期値(例えば0)に保持される。 In step S <b> 303, self-diagnosis information indicating that the function state of the main microcomputer 10 is normal is transmitted to the sub-microcomputer 20 and written to the RAM 13. Of the self-diagnosis information written in the RAM 13, the function status flag indicating the function status of the main microcomputer 10 is held at an initial value (eg, 0) indicating normal.
ステップS304では、前述の図4のステップS203と同様に、イグニッションスイッチ3のオフ操作が行われたか否かを判定する。イグニッションスイッチ3のオフ操作が行われたと判定した場合には、セルフシャットオフ期間(図3の時刻t7〜t8の期間)における正常時書き込みを行うべくステップS305へ進む(Yes)。一方、イグニッションスイッチ3のオフ操作が行われていないと判定した場合には、ステップS302へ戻り、所定のタイミングで再び自己診断処理を行う(No)。 In step S304, it is determined whether or not the ignition switch 3 is turned off as in step S203 of FIG. If it is determined that the ignition switch 3 has been turned off, the process proceeds to step S305 to perform normal writing in the self-shutoff period (period t7 to t8 in FIG. 3) (Yes). On the other hand, if it is determined that the ignition switch 3 is not turned off, the process returns to step S302, and self-diagnosis processing is performed again at a predetermined timing (No).
ステップS305では、セルフシャットオフ期間における正常時書き込みとして、RAM13に一時的に記憶された、エンジン4の故障診断情報及び学習データ、並びにメインマイコン10の自己診断情報を、EEPROM15にバックアップデータとして書き込んで、自己診断処理を終了する。 In step S305, the failure diagnosis information and learning data of the engine 4 and the self-diagnosis information of the main microcomputer 10 temporarily stored in the RAM 13 are written as backup data in the EEPROM 15 as normal writing during the self-shutoff period. The self-diagnosis process is terminated.
ステップS306では、メインマイコン10の機能状態が異常である旨の自己診断情報をサブマイコン20へ送信するとともにRAM13に書き込む(図3の時刻t2〜t3参照)。RAM13に書き込まれた自己診断情報のうち機能状態フラグは、異常を示す設定値(例えば1)に書き換えられる。 In step S306, self-diagnosis information indicating that the function state of the main microcomputer 10 is abnormal is transmitted to the sub-microcomputer 20 and written in the RAM 13 (see times t2 to t3 in FIG. 3). Of the self-diagnosis information written in the RAM 13, the function status flag is rewritten to a set value (for example, 1) indicating abnormality.
ステップS307では、図4のステップS201と同様に、通信I/F14を介して、サブマイコン20から送信される後述の停止要求信号を受信しているか否かを判定する。停止要求信号を受信していると判定された場合にはステップS308へ進み(Yes)、一方、停止要求信号を受信していないと判定された場合には、ステップS307を繰り返す(No)。 In step S307, as in step S201 of FIG. 4, it is determined whether or not a stop request signal described later transmitted from the sub-microcomputer 20 is received via the communication I / F 14. If it is determined that the stop request signal has been received, the process proceeds to step S308 (Yes). On the other hand, if it is determined that the stop request signal has not been received, step S307 is repeated (No).
ステップS308では、メインマイコン10は、正常状態へ復帰すべく、サブマイコン20からの停止要求信号に従って停止して初期化を行う(図3の時刻t4参照)。ただし、本ステップの実行によって停止したメインマイコン10は、サブマイコン20から後述の強制起動指令信号を受信できるように通信可能な状態となっている。 In step S308, the main microcomputer 10 is stopped and initialized in accordance with the stop request signal from the sub-microcomputer 20 in order to return to the normal state (see time t4 in FIG. 3). However, the main microcomputer 10 stopped by the execution of this step is in a communicable state so that a forced start command signal described later can be received from the sub-microcomputer 20.
ステップS308の初期化によって、前述の図4のステップS202における定常処理によってRAM13に書き込まれたエンジン4の故障診断情報及び学習データ、並びに、ステップS303及びステップS306においてRAM13に書き込まれた自己診断情報は消去されてしまう。特に、ステップS306において異常を示す設定値に一旦書き換えられた機能状態フラグは、ステップS308において再び初期値(例えば0)に書き換えられてしまうため、メインマイコン10は、機能状態フラグを、異常を示す設定値のままRAM13に保持しておくことができず、セルフシャットオフ期間おいて、メインマイコン10に異常が発生したという情報をバックアップデータとしてEEPROM15に保持しておくことができない。このため、以下の異常時書き込み処理を実行することによって、少なくともメインマイコン10に異常が発生したという情報をEEPROM15へバックアップデータとして書き込めるようにしている。 By the initialization of step S308, the failure diagnosis information and learning data of the engine 4 written in the RAM 13 by the steady process in step S202 of FIG. 4 described above, and the self-diagnosis information written in the RAM 13 in steps S303 and S306 are as follows. It will be erased. In particular, since the function state flag once rewritten to the set value indicating abnormality in step S306 is rewritten to the initial value (eg, 0) again in step S308, the main microcomputer 10 indicates the function state flag to indicate abnormality. The set value cannot be held in the RAM 13, and information that an abnormality has occurred in the main microcomputer 10 cannot be held in the EEPROM 15 as backup data during the self-shutoff period. For this reason, at least information indicating that an abnormality has occurred in the main microcomputer 10 can be written into the EEPROM 15 as backup data by executing the following writing process at the time of abnormality.
(メインマイコンの異常時書き込み処理)
図6は、メインマイコン10のCPU12が、メインマイコン10がサブマイコン20から前述の強制起動指令信号を受信した(図3の時刻t5参照)ことを契機として、制御処理プログラムに従って実行を開始する異常時書き込み処理のフローチャートである。
(Write processing when the main microcomputer is abnormal)
FIG. 6 shows an abnormality in which the CPU 12 of the main microcomputer 10 starts executing according to the control processing program when the main microcomputer 10 receives the above-described forced activation command signal from the sub-microcomputer 20 (see time t5 in FIG. 3). It is a flowchart of a time writing process.
ステップS401では、メインマイコン10は、強制起動指令信号に従って起動する(図3の時刻t5参照)。なお、ステップS401によるメインマイコン10の起動は、サブマイコン20による強制起動であるので、図4の処理の実行が開始されると、定常処理(ステップS202)ではなく、異常時処理(ステップS204)が行われる。これにより、後述のようにEEPROM15への書き込みが行われる際に、エンジン4に付随する各種アクチュエータが不安定な動作をして車両運転に影響を及ぼす可能性が低減される。 In step S401, the main microcomputer 10 is activated according to the forced activation command signal (see time t5 in FIG. 3). Since the main microcomputer 10 is activated by the sub-microcomputer 20 in step S401, when the execution of the process of FIG. 4 is started, not the steady process (step S202) but the abnormal process (step S204). Is done. As a result, when writing to the EEPROM 15 is performed as will be described later, the possibility that various actuators associated with the engine 4 perform unstable operations and affect vehicle operation is reduced.
ステップS402では、メインマイコン10の起動に伴って、メインマイコン10の機能状態を示す機能状態フラグを、初期値から自動的に異常を示す設定値に書き換える(図3の時刻t5参照)。 In step S402, as the main microcomputer 10 is activated, the function state flag indicating the function state of the main microcomputer 10 is automatically rewritten from the initial value to a set value indicating abnormality (see time t5 in FIG. 3).
メインマイコン10のCPU12は、ステップS401において、サブマイコン20から送信された強制起動指令信号を受信したうえでメインマイコン10を起動させているので、イグニッションスイッチ3のオン操作によって正常に起動したものでないことを認識でき、機能状態フラグを、初期値から自動的に異常を示す設定値に書き換えることができる。 Since the CPU 12 of the main microcomputer 10 starts the main microcomputer 10 after receiving the forced start command signal transmitted from the sub-microcomputer 20 in step S401, the CPU 12 is not normally started by turning on the ignition switch 3. And the function status flag can be automatically rewritten from the initial value to a set value indicating abnormality.
ステップS403では、ステップS402において自動的に異常を示す設定値に書き換えられた機能状態フラグの情報をバックアップデータとしてEEPROM15に書き込む(図3の時刻t5〜t6参照)。これにより、メインマイコン10は、少なくともメインマイコン10に異常が発生したという情報を異常履歴として保持しておくことが可能となる。 In step S403, the function status flag information automatically rewritten to the set value indicating abnormality in step S402 is written in the EEPROM 15 as backup data (see times t5 to t6 in FIG. 3). As a result, the main microcomputer 10 can retain at least information that an abnormality has occurred in the main microcomputer 10 as an abnormality history.
ステップS404において、サブマイコン20から送信される後述の強制停止指令信号を受信した場合には、ステップS405へ進む(Yes)。一方、強制停止指令信号を受信していない場合には、ステップS403へ戻る(No)。 In step S404, if a later-described forced stop command signal transmitted from the sub-microcomputer 20 is received, the process proceeds to step S405 (Yes). On the other hand, if the forced stop command signal has not been received, the process returns to step S403 (No).
ステップS405では、メインマイコン10は強制停止指令信号に従って停止し、異常時書き込み処理を終了する(図3の時刻t6参照)。メインマイコン10の停止とともに、メインマイコン10のRAM13に格納された機能状態フラグの設定値は再び初期化される。 In step S405, the main microcomputer 10 stops according to the forced stop command signal, and ends the abnormal time writing process (see time t6 in FIG. 3). When the main microcomputer 10 is stopped, the setting value of the function state flag stored in the RAM 13 of the main microcomputer 10 is initialized again.
なお、ステップ403において、RAM13には、ステップS402によって異常を示す設定値に自動的に書き換えられた機能状態フラグの情報が記憶され、図5のステップS308の初期化によって消去されたエンジン4の故障診断情報や学習データは記憶されていない。しかし、ステップS403において、メインマイコン10の強制作動時間中に、定常処理のうちエンジン4の故障診断処理や学習制御処理を実行することで、故障診断情報や学習データをRAM13に記憶させてもよい。この場合、RAM13からEEPROM15には、メインマイコン10に異常が発生したという情報だけでなく、故障診断情報や学習データを書き込むことができる。 In step 403, the RAM 13 stores information on the function state flag automatically rewritten to the set value indicating abnormality in step S402, and the failure of the engine 4 erased by the initialization in step S308 of FIG. Diagnostic information and learning data are not stored. However, in step S403, the failure diagnosis information and learning data may be stored in the RAM 13 by executing the failure diagnosis processing and learning control processing of the engine 4 in the steady operation during the forced operation time of the main microcomputer 10. . In this case, not only information that an abnormality has occurred in the main microcomputer 10 but also failure diagnosis information and learning data can be written from the RAM 13 to the EEPROM 15.
また、ステップS403において、メインマイコン10の強制作動時間中に、少なくともメインマイコン10に異常が発生したという情報をEEPROM15に書き込んだ後、メインマイコン10の自己診断処理を再度行うことができる。 In step S403, after the information that at least an abnormality has occurred in the main microcomputer 10 is written in the EEPROM 15 during the forced operation time of the main microcomputer 10, the self-diagnosis process of the main microcomputer 10 can be performed again.
メインマイコン10は、自己診断処理によりメインマイコン10の機能状態が再度異常と診断された場合、機能状態フラグの情報を含む自己診断情報をRAM13に一時的に記憶させた後、バックアップデータとしてEEPROM15へ書き込むことで、メインマイコン10の異常の有無だけでなく、異常態様に関する情報についても異常履歴として保持しておくことができる。 When the function status of the main microcomputer 10 is diagnosed again as abnormal by the self-diagnosis process, the main microcomputer 10 temporarily stores the self-diagnosis information including the function status flag information in the RAM 13 and then stores it in the EEPROM 15 as backup data. By writing, not only the presence / absence of abnormality of the main microcomputer 10 but also information regarding the abnormality mode can be held as an abnormality history.
一方、メインマイコン10は、自己診断処理によりメインマイコン10の機能状態が正常と診断された場合、異常書き込み処理を終了して、図5の自己診断処理においてステップS303から実行を再開するとともに、図4におけるステップS204の異常時処理を終了して、ステップS202の定常処理を実行することができる。サブマイコン20は、メインマイコン10から正常である旨の自己診断情報を受信することで、停止要求信号の送信を停止する。 On the other hand, the main microcomputer 10 ends the abnormal writing process when the function state of the main microcomputer 10 is diagnosed as normal by the self-diagnosis process, and resumes the execution from step S303 in the self-diagnosis process of FIG. 4 can be terminated and the steady process of step S202 can be executed. The sub-microcomputer 20 receives the self-diagnosis information indicating that it is normal from the main microcomputer 10 and stops the transmission of the stop request signal.
(イグニッションスイッチの再オン操作時における処理)
図3の時刻t7でイグニッションスイッチ3がオフ操作された後、時刻t9でイグニッションスイッチ3が再度オン操作されると、時刻t10において、メインマイコン10及びサブマイコン20が起動する。ここで、メインマイコン10のEEPROM15には、前述の図6のステップS403によりメインマイコン10に異常が発生したことを示す自己診断情報が保持されているので、メインマイコン10のCPU12は、EEPROM15に保持された自己診断情報に基づいて、定常処理を行わずに、エンジン4に付随する各種アクチュエータの動作を停止又は制限する。
(Processing when the ignition switch is turned on again)
After the ignition switch 3 is turned off at time t7 in FIG. 3, when the ignition switch 3 is turned on again at time t9, the main microcomputer 10 and the sub-microcomputer 20 are activated at time t10. Here, since the EEPROM 15 of the main microcomputer 10 holds the self-diagnosis information indicating that an abnormality has occurred in the main microcomputer 10 in step S403 of FIG. Based on the self-diagnosis information, the operation of various actuators attached to the engine 4 is stopped or limited without performing steady processing.
また、メインマイコン10のCPU12は、時刻t9でイグニッションスイッチ3が再度オン操作されて、時刻t10において起動すると、EEPROM15に保持されている自己診断情報を参照して、メインマイコン10の異常解析を行う。 Further, when the ignition switch 3 is turned on again at time t9 and is activated at time t10, the CPU 12 of the main microcomputer 10 refers to the self-diagnosis information held in the EEPROM 15 and analyzes the abnormality of the main microcomputer 10. .
このような自動車用電子制御装置1によれば、メインマイコン10の異常によりメインマイコン10を停止して初期化を行った場合でも、初期化後、メインマイコン10の異常を監視するサブマイコン20がメインマイコン10を強制的に起動するとともに、RAM13に記憶された機能状態フラグを、自動的に異常を示す設定値に書き換えている。これにより、少なくともメインマイコン10に異常が発生したという情報をEEPROM15へ書き込むことができる。したがって、自動車用電子制御装置1は、少なくともメインマイコン10に異常が発生したという情報を異常履歴としてEEPROM15に保持しておくことができるので、メインマイコン10の異常解析精度を向上させることが可能となる。 According to such an automotive electronic control device 1, even when the main microcomputer 10 is stopped and initialized due to an abnormality of the main microcomputer 10, the sub-microcomputer 20 that monitors the abnormality of the main microcomputer 10 after the initialization is provided. While the main microcomputer 10 is forcibly activated, the function state flag stored in the RAM 13 is automatically rewritten to a set value indicating abnormality. Thereby, at least information that an abnormality has occurred in the main microcomputer 10 can be written in the EEPROM 15. Therefore, since the electronic control apparatus 1 for automobiles can hold at least information that an abnormality has occurred in the main microcomputer 10 in the EEPROM 15 as an abnormality history, the abnormality analysis accuracy of the main microcomputer 10 can be improved. Become.
また、メインマイコン10の強制作動時間中に、定常処理のうちエンジン4の故障診断処理や学習制御処理を実行する場合や、あるいは、自己診断を行う場合には、メインマイコン10は、故障診断情報及び学習データや、メインマイコン10の異常態様に関する情報についてもEEPROM15に履歴として保持しておくことができる。 Further, during the forced operation time of the main microcomputer 10, when executing the failure diagnosis process and the learning control process of the engine 4 among the steady processes, or when performing the self-diagnosis, the main microcomputer 10 displays the failure diagnosis information. Further, learning data and information related to the abnormal state of the main microcomputer 10 can also be stored in the EEPROM 15 as a history.
さらに、初期化後、サブマイコン20がメインマイコン10を強制的に起動させる際に、メインマイコン10の定常処理による各種アクチュエータの動作を制限するので、強制作動時間中にEEPROM15への書き込みが行われても、車両運転に影響を及ぼす可能性を低減することができる。 Further, after the initialization, when the sub microcomputer 20 forcibly starts the main microcomputer 10, the operation of various actuators by the steady process of the main microcomputer 10 is limited, so that writing to the EEPROM 15 is performed during the forced operation time. However, the possibility of affecting vehicle driving can be reduced.
なお、前述の実施形態において、サブマイコン20を、メインマイコン10の機能状態を監視するための特定用途向け集積回路(ASIC:Application Specific Integrated Circuit)に置き換えても本発明の適用は可能である。 In the above-described embodiment, the present invention can be applied even if the sub-microcomputer 20 is replaced with an application specific integrated circuit (ASIC) for monitoring the functional state of the main microcomputer 10.
[第2実施形態]
図7は、本発明の第2実施形態に係る自動車用電子制御装置の一例を示す。なお、第1実施形態と共通の構成については同一の符号を付すことで説明を省略又は簡略化する。
[Second Embodiment]
FIG. 7 shows an example of an automotive electronic control device according to the second embodiment of the present invention. In addition, about the structure which is common in 1st Embodiment, description is abbreviate | omitted or simplified by attaching | subjecting the same code | symbol.
第1実施形態の自動車用電子制御装置1は、メインマイコン10の機能状態を監視するサブマイコン20を備えていたが、これに代えて、第2実施形態の自動車用電子制御装置1Aでは、サブマイコン20を省略した1つのマイクロコンピュータ10Aを備えており、このμコンピュータが、複数のコア、例えば第1コア12a及び第2コア12bを備えたマルチコアである点で異なる。 The automotive electronic control device 1 of the first embodiment includes the sub-microcomputer 20 that monitors the functional state of the main microcomputer 10, but instead of this, in the automotive electronic control device 1A of the second embodiment, the sub-microcomputer 20 One microcomputer 10A in which the microcomputer 20 is omitted is provided, and this μ computer is different in that it is a multi-core having a plurality of cores, for example, a first core 12a and a second core 12b.
第1コア12aは、メインマイコン10と同様に、イグニッションスイッチ3のオン操作によりマイクロコンピュータ10Aに電源が供給されたことを契機として、定常処理、自己診断処理及び書き込み処理を行う(図2〜図5参照)。第2コア12bは、サブマイコン20と同様に、イグニッションスイッチ3のオン操作によりマイクロコンピュータ10Aに電源が供給されたことを契機として、第1コア12aの機能状態を監視する監視処理を開始する(図5参照)。 As with the main microcomputer 10, the first core 12a performs steady processing, self-diagnosis processing, and writing processing when power is supplied to the microcomputer 10A by turning on the ignition switch 3 (FIGS. 2 to 2). 5). Similar to the sub-microcomputer 20, the second core 12b starts a monitoring process for monitoring the functional state of the first core 12a when power is supplied to the microcomputer 10A by turning on the ignition switch 3 ( (See FIG. 5).
すなわち、第1コア12aは機能状態について自己診断を行い、異常と診断した場合には第2コアに内部バス16を介して送信し、第2コア12bは第1コア12aを停止させて初期化する。初期化後、第2コア12bは第1コア12aを強制的に起動させて、RAM13に記憶された機能状態フラグを、自動的に異常を示す設定値に書き換えさせる。これにより、少なくとも第1コア12aに異常が発生したという情報をEEPROM15へ書き込むことができる。 That is, the first core 12a performs a self-diagnosis on the function state, and when it is diagnosed as abnormal, transmits to the second core via the internal bus 16, and the second core 12b stops the first core 12a and initializes it. To do. After initialization, the second core 12b forcibly activates the first core 12a and automatically rewrites the function state flag stored in the RAM 13 to a set value indicating abnormality. Thereby, information that an abnormality has occurred in at least the first core 12a can be written in the EEPROM 15.
このような自動車用電子制御装置1Aによれば、第1コア10aの異常により第1コア10aを停止して初期化を行った場合でも、少なくとも第1コア10aに異常が発生したという情報をEEPROM15へ書き込むことができる。したがって、自動車用電子制御装置1Aは、少なくとも第1コア10aに異常が発生したという情報を異常履歴としてEEPROM15に保持しておくことができるので、メインマイコン10の異常解析精度を向上させることが可能となる。 According to such an automotive electronic control device 1A, even when the first core 10a is stopped and initialized due to an abnormality in the first core 10a, information indicating that an abnormality has occurred in at least the first core 10a is stored in the EEPROM 15 Can be written to. Therefore, the electronic control apparatus for an automobile 1A can retain at least information that an abnormality has occurred in the first core 10a in the EEPROM 15 as an abnormality history, so that the abnormality analysis accuracy of the main microcomputer 10 can be improved. It becomes.
また、第1実施形態と同様に、第1コア10aの強制作動時間中に、定常処理のうちエンジン4の故障診断処理や学習制御処理を実行する場合や、あるいは、自己診断を行う場合には、マイクロコンピュータ10Aは、故障診断情報及び学習データや、マイクロコンピュータ10Aの異常態様に関する情報についてもEEPROM15に履歴として保持しておくことができる。 Similarly to the first embodiment, when the failure diagnosis process and the learning control process of the engine 4 are executed during the forced operation time of the first core 10a, or when the self-diagnosis is performed. The microcomputer 10A can also store failure diagnosis information and learning data, and information related to the abnormal state of the microcomputer 10A in the EEPROM 15 as a history.
さらに、第1実施形態と同様に、初期化後、第2コア10bが第1コア10aを強制的に起動させる際に、第1コア10aの定常処理による各種アクチュエータの動作を制限するので、強制作動時間中にEEPROM15への書き込みが行われても、車両運転に影響を及ぼす可能性を低減することができる。 Further, as in the first embodiment, after the initialization, when the second core 10b forcibly activates the first core 10a, the operation of various actuators by the steady process of the first core 10a is limited. Even if writing to the EEPROM 15 is performed during the operation time, the possibility of affecting the vehicle operation can be reduced.
なお、第1実施形態及び第2実施形態において、電気的に書換え可能であって電源遮断時にも記憶された情報を保持する不揮発性メモリとして、EEPROM15を一例に説明したが、これに代えてフラッシュメモリを用いてもよく、また、これらEEPROM15またはフラッシュメモリは、メインマイコン10に内蔵又は外付けのいずれであってもよい。 In the first and second embodiments, the EEPROM 15 has been described as an example of a nonvolatile memory that can be electrically rewritten and retains stored information even when the power is turned off. A memory may be used, and these EEPROM 15 or flash memory may be either built in or external to the main microcomputer 10.
第1実施形態及び第2実施形態において、CPU12,21は、プロセッサ、マイクロプロセッサ、MPU(Micro Processing Unit)を含む概念であり、メインマイコン10及びサブマイコン20は、MCU(Microcontroller)を含む概念である。 In the first and second embodiments, the CPUs 12 and 21 are a concept including a processor, a microprocessor, and an MPU (Micro Processing Unit), and the main microcomputer 10 and the sub-microcomputer 20 are a concept including an MCU (Microcontroller). is there.
第1実施形態及び第2実施形態において、強制作動時間中にイグニッションスイッチのオフ操作を行った場合であっても、セルフシャットオフ期間であればメインマイコン10又はマイクロコンピュータ10Aには電源が供給されているので、セルフシャットオフ期間に継続してEEPROMへの書き込みを行ってもよい。 In the first embodiment and the second embodiment, even if the ignition switch is turned off during the forced operation time, power is supplied to the main microcomputer 10 or the microcomputer 10A during the self-shutoff period. Therefore, writing to the EEPROM may be performed continuously during the self-shutoff period.
第1実施形態及び第2実施形態において、異常時書き込みを行った場合には、セルフシャットオフ期間においてEEPROM15への書き込みは行わなくてもよいので、セルフシャットオフ機能を無効にすることができる。 In the first embodiment and the second embodiment, when writing is performed at the time of abnormality, it is not necessary to write to the EEPROM 15 during the self-shutoff period, so that the self-shutoff function can be invalidated.
第1実施形態において、メインマイコン10の機能状態の診断は、前述のようなメインマイコン10の自己診断処理に限らず、例えば、メインマイコン10及びサブマイコン20において行われた所定の演算処理の結果が一致するか否か等、メインマイコン10とサブマイコン20とが協働して行うことができる。同様に、第2実施形態において、第1コア12aの機能状態の診断についても、第1コア12aと第2コア12bとが協働して行うことができる。 In the first embodiment, the diagnosis of the functional state of the main microcomputer 10 is not limited to the self-diagnosis process of the main microcomputer 10 as described above. For example, the result of a predetermined arithmetic process performed in the main microcomputer 10 and the sub-microcomputer 20 is performed. The main microcomputer 10 and the sub-microcomputer 20 can cooperate with each other, such as whether or not they match. Similarly, in the second embodiment, the diagnosis of the functional state of the first core 12a can be performed in cooperation with the first core 12a and the second core 12b.
第1実施形態において、セルフシャットオフ機能は、メインマイコン10とは別のデバイス(例えばサブマイコン20)に、イグニッションスイッチ3の出力電圧Vignの検出信号Sviが入力されて、この別のデバイスが検出信号Sviに基づいてリレースイッチ40に対してこれをオン又はオフにする制御信号Sroを出力するように構成されても実現可能である。 In the first embodiment, the self-shutoff function detects a detection signal Svi of the output voltage Vign of the ignition switch 3 to a device different from the main microcomputer 10 (for example, the sub-microcomputer 20). Even if it is configured to output a control signal Sro for turning on or off the relay switch 40 based on the signal Svi, the present invention can be realized.
第1実施形態では、サブマイコン20から強制起動指令信号を受信したメインマイコン10が図3の時刻t5において強制的に起動して、強制停止指令信号を受信して時刻t6において動作を停止するまでの強制作動時間中に、メインマイコン10に異常が発生したことを示す自己診断情報をEEPROM15に書き込んでいた。しかし、最初の強制作動時間が終了した後、メインマイコン10が自己診断処理を繰り返し行って、異常が発生したと診断する度にサブマイコン20が停止要求信号をメインマイコン10に向けて送信する場合には、強制作動時間毎に、メインマイコン10に異常が発生したことを示す自己診断情報をEEPROM15に書き込むことになる。 In the first embodiment, the main microcomputer 10 that has received the forced start command signal from the sub-microcomputer 20 is forcibly started at time t5 in FIG. 3 until the forced stop command signal is received and operation is stopped at time t6. During the forced operation time, self-diagnosis information indicating that an abnormality has occurred in the main microcomputer 10 was written in the EEPROM 15. However, when the main microcomputer 10 repeatedly performs the self-diagnosis process after the first forced operation time ends and the sub-microcomputer 20 transmits a stop request signal to the main microcomputer 10 every time it is diagnosed that an abnormality has occurred. In this case, self-diagnosis information indicating that an abnormality has occurred in the main microcomputer 10 is written in the EEPROM 15 every forced operation time.
そこで、メインマイコン10は、自己診断処理により異常が発生したと診断して、その旨の自己診断情報をサブマイコン20へ送信すると、サブマイコン20は、その自己診断情報をRAM22に保存し、イグニッションスイッチ3のオフ操作後におけるセルフシャットオフ期間中に、サブマイコン20のRAM22に保存された自己診断情報をメインマイコン10へ送信することで、メインマイコン10が自己診断情報をEEPROM15に書き込んでもよい。これにより、他の車載機器に影響を与えることなく、安定的な書き込み動作が可能となる。 Therefore, when the main microcomputer 10 diagnoses that an abnormality has occurred by the self-diagnosis process and transmits the self-diagnosis information to that effect to the sub-microcomputer 20, the sub-microcomputer 20 stores the self-diagnosis information in the RAM 22 and provides an ignition. The main microcomputer 10 may write the self-diagnosis information in the EEPROM 15 by transmitting the self-diagnosis information stored in the RAM 22 of the sub-microcomputer 20 to the main microcomputer 10 during the self-shutoff period after the switch 3 is turned off. As a result, a stable write operation can be performed without affecting other in-vehicle devices.
1…自動車用電子制御装置、2…車載バッテリ、3…イグニッションスイッチ、4…エンジン、10,10A…メインマイコン、12…CPU、12a…第1コア、12b…第2コア、13…RAM、15…EEPROM、20…サブマイコン、30…電源回路、40…リレースイッチ DESCRIPTION OF SYMBOLS 1 ... Electronic control apparatus for motor vehicles, 2 ... Vehicle-mounted battery, 3 ... Ignition switch, 4 ... Engine, 10, 10A ... Main microcomputer, 12 ... CPU, 12a ... 1st core, 12b ... 2nd core, 13 ... RAM, 15 ... EEPROM, 20 ... Sub-microcomputer, 30 ... Power supply circuit, 40 ... Relay switch
Claims (4)
前記制御手段を監視し、前記制御手段に異常が発生したときに前記制御手段を停止させて初期化を行わせる監視手段と、
イグニッションスイッチのオフ操作を検知してから所定時間が経過するまでの間、前記制御手段及び前記監視手段に対する電源供給を継続させる電源制御手段と、
前記所定時間中に前記揮発性メモリのデータが書き込まれる書換え可能な不揮発性メモリと、
を備え、
前記監視手段は、前記制御手段を停止させて初期化を行わせた後に、前記制御手段を強制的に起動させて、少なくとも前記制御手段に異常が発生したという情報を、前記不揮発性メモリに書き込ませることを特徴とする自動車用電子制御装置。 A control means having a volatile memory and controlling the in-vehicle actuator;
Monitoring means for monitoring the control means, and stopping the control means to perform initialization when an abnormality occurs in the control means;
Power supply control means for continuing power supply to the control means and the monitoring means until a predetermined time elapses after detecting the ignition switch OFF operation;
A rewritable nonvolatile memory in which data of the volatile memory is written during the predetermined time;
With
The monitoring means, after stopping the control means and performing initialization, forcibly activates the control means, and writes at least information that an abnormality has occurred in the control means to the nonvolatile memory An electronic control device for automobiles.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2017059358A JP6887277B2 (en) | 2017-03-24 | 2017-03-24 | Electronic control device for automobiles |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2017059358A JP6887277B2 (en) | 2017-03-24 | 2017-03-24 | Electronic control device for automobiles |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2018161927A true JP2018161927A (en) | 2018-10-18 |
| JP6887277B2 JP6887277B2 (en) | 2021-06-16 |
Family
ID=63859667
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2017059358A Active JP6887277B2 (en) | 2017-03-24 | 2017-03-24 | Electronic control device for automobiles |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP6887277B2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2022109166A (en) * | 2021-01-14 | 2022-07-27 | パナソニックIpマネジメント株式会社 | Active noise reduction device, mobile body device and active noise reduction method |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2004044407A (en) * | 2002-07-09 | 2004-02-12 | Suzuki Motor Corp | Vehicle fault diagnosis control device |
| JP2008140373A (en) * | 2006-11-02 | 2008-06-19 | Hitachi Ltd | Electronic control unit |
| JP2009030543A (en) * | 2007-07-27 | 2009-02-12 | Mitsubishi Electric Corp | In-vehicle engine controller |
| JP2013159120A (en) * | 2012-02-01 | 2013-08-19 | Denso Corp | Electronic control device and electric power steering device using the same |
| US20140172190A1 (en) * | 2009-08-18 | 2014-06-19 | Hti Ip, Llc | Method and system for determining that a user has operated a vehicle ignition switch |
| WO2017006762A1 (en) * | 2015-07-07 | 2017-01-12 | 日立オートモティブシステムズ株式会社 | Vehicle control device |
-
2017
- 2017-03-24 JP JP2017059358A patent/JP6887277B2/en active Active
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2004044407A (en) * | 2002-07-09 | 2004-02-12 | Suzuki Motor Corp | Vehicle fault diagnosis control device |
| JP2008140373A (en) * | 2006-11-02 | 2008-06-19 | Hitachi Ltd | Electronic control unit |
| JP2009030543A (en) * | 2007-07-27 | 2009-02-12 | Mitsubishi Electric Corp | In-vehicle engine controller |
| US20140172190A1 (en) * | 2009-08-18 | 2014-06-19 | Hti Ip, Llc | Method and system for determining that a user has operated a vehicle ignition switch |
| JP2013159120A (en) * | 2012-02-01 | 2013-08-19 | Denso Corp | Electronic control device and electric power steering device using the same |
| WO2017006762A1 (en) * | 2015-07-07 | 2017-01-12 | 日立オートモティブシステムズ株式会社 | Vehicle control device |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2022109166A (en) * | 2021-01-14 | 2022-07-27 | パナソニックIpマネジメント株式会社 | Active noise reduction device, mobile body device and active noise reduction method |
| JP7510235B2 (en) | 2021-01-14 | 2024-07-03 | パナソニックオートモーティブシステムズ株式会社 | Active noise reduction device, mobile device, and active noise reduction method |
Also Published As
| Publication number | Publication date |
|---|---|
| JP6887277B2 (en) | 2021-06-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111164577B (en) | In-vehicle electronic control device and its abnormality processing method | |
| JP4803168B2 (en) | Vehicle information storage device | |
| JP5176728B2 (en) | Electronic control device for vehicle | |
| JP4835755B2 (en) | Vehicle control device | |
| JP2009184423A (en) | Electronic control device for vehicle | |
| WO2014091666A1 (en) | Onboard electronic control device | |
| JP2014151720A (en) | Tampering detection system and electronic control unit | |
| JP4552982B2 (en) | Electronic control unit | |
| US8209078B2 (en) | Electronic control unit and vehicle control system | |
| JP4001088B2 (en) | Electronic control unit | |
| JP6205214B2 (en) | Electronic control unit for automobile | |
| JP2002323902A (en) | Electronic controller | |
| JP6887277B2 (en) | Electronic control device for automobiles | |
| JP6345447B2 (en) | Electronic control unit for automobile | |
| CN115279627A (en) | Software update device, software update method, and software update processing program | |
| JP2018134964A (en) | Electronic control unit for automobile | |
| JP3296043B2 (en) | Vehicle electronic control unit | |
| JP5516509B2 (en) | Program writing system | |
| JP4375105B2 (en) | Microcomputer monitoring device failure diagnosis method and vehicle electronic control device | |
| JP7029366B2 (en) | Electronic control device for automobiles | |
| CN116438521A (en) | Vehicle control system | |
| JP7803720B2 (en) | Control device and electronic control device | |
| JP6597489B2 (en) | Vehicle control device | |
| JP2001182607A (en) | Vehicle controlling device | |
| CN104395178B (en) | Method for operating a motor vehicle comprising a parking assistance system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20190906 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20200624 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20200707 |
|
| A601 | Written request for extension of time |
Free format text: JAPANESE INTERMEDIATE CODE: A601 Effective date: 20200907 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20201105 |
|
| 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: 20210420 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20210518 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 6887277 Country of ref document: JP 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 |