JP2008144607A - Electronic control device - Google Patents

Electronic control device Download PDF

Info

Publication number
JP2008144607A
JP2008144607A JP2006329724A JP2006329724A JP2008144607A JP 2008144607 A JP2008144607 A JP 2008144607A JP 2006329724 A JP2006329724 A JP 2006329724A JP 2006329724 A JP2006329724 A JP 2006329724A JP 2008144607 A JP2008144607 A JP 2008144607A
Authority
JP
Japan
Prior art keywords
writing
data
power supply
control device
battery
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.)
Withdrawn
Application number
JP2006329724A
Other languages
Japanese (ja)
Inventor
Yonte So
よんて 宋
Sei Morishita
聖 森下
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Denso Ten Ltd
Original Assignee
Denso Ten Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Denso Ten Ltd filed Critical Denso Ten Ltd
Priority to JP2006329724A priority Critical patent/JP2008144607A/en
Publication of JP2008144607A publication Critical patent/JP2008144607A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To prevent cutoff of processing for writing data such as an abnormality diagnostic result in a nonvolatile memory, when a battery is removed when an electronic control device is in operation. <P>SOLUTION: This electronic control device has the battery arranged in an engine room having a hood, a nonvolatile storage means capable of holding the data without receiving supply of a power source, and a writing-in means for writing the data in the nonvolatile storage means by receiving the power source supply from the battery. The electronic control device is characterized in that the writing-in means prohibits writing of the data in the nonvolatile storage means when the hood is opened. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

この発明は、制御データをメモリへ書き込む電子制御装置に関し、特に車両に搭載される電子式燃料噴射制御装置の制御データを電源が遮断されても保持可能な不揮発性メモリへ書き込む電子式燃料噴射制御装置に関する。   The present invention relates to an electronic control device that writes control data to a memory, and more particularly to electronic fuel injection control that writes control data of an electronic fuel injection control device mounted on a vehicle to a non-volatile memory that can be retained even when the power is cut off. Relates to the device.

従来、例えば車載用エンジンへの燃料噴射制御を行う電子式燃料噴射制御装置(Electronic Fuel Injection - Electronic Controlled Unit (以下「ECU」という))において、エンジン制御用の様々な処理や動作を行う制御部として、マイクロコンピュータ(以下「マイコン」という)を中心とする各種電子回路が設けられている。   Conventionally, for example, in an electronic fuel injection control apparatus (Electronic Fuel Injection-Electronic Controlled Unit (hereinafter referred to as “ECU”)) that performs fuel injection control to an in-vehicle engine, a control section that performs various processes and operations for engine control. Various electronic circuits centering on a microcomputer (hereinafter referred to as “microcomputer”) are provided.

図1に示すように、ECUに備えられたマイコンは、エンジンルーム内に設置されたバッテリ100から電源回路102を介して電力が供給(例えば、12V)されるよう構成されている。マイコンはエンジン101の制御情報を入出力回路103を介して取得し、CPU104(Central Processing Unit)において演算を加えて制御値としてエンジン101へ出力する。CPU104での演算の際、制御値を一旦RAM(Random Access Memory)105へ記憶しておき、所定のタイミングでEEPROM(Electronically Erasable and Programmable Read Only Memory)106へ転送して記憶保持する。EEPROM106は不揮発性を有し、データの書き込みや消去する場合等に電源を必要とするが、電源供給が絶たれた後であっても記憶情報を保持し続けることができる。EEPROM106に記憶されたデータは次回マイコン起動時に読み出され、エンジン101の制御のための演算に使用される。   As shown in FIG. 1, the microcomputer provided in the ECU is configured such that electric power is supplied (for example, 12 V) from a battery 100 installed in the engine room via a power supply circuit 102. The microcomputer acquires control information of the engine 101 via the input / output circuit 103, adds a calculation in a CPU 104 (Central Processing Unit), and outputs the result to the engine 101 as a control value. At the time of calculation by the CPU 104, the control value is temporarily stored in a RAM (Random Access Memory) 105, transferred to an EEPROM (Electronically Erasable and Programmable Read Only Memory) 106 at a predetermined timing, and stored and held. The EEPROM 106 is non-volatile, and requires power when writing or erasing data, but can keep stored information even after the power supply is cut off. The data stored in the EEPROM 106 is read when the microcomputer is activated next time, and is used for calculations for controlling the engine 101.

ECU1は、図2に示すように車両34内に設置され、ボンネット33で閉じられるエンジンルーム31に配置されたエンジン21と接続される。そして、バッテリ13から電力が供給されている間に車両内の装置やセンサ24の異常診断を行っており、診断結果を不揮発性メモリへ記憶している。   The ECU 1 is installed in the vehicle 34 as shown in FIG. 2, and is connected to the engine 21 disposed in the engine room 31 that is closed by the hood 33. And while electric power is supplied from the battery 13, the abnormality diagnosis of the apparatus in the vehicle and the sensor 24 is performed, and the diagnosis result is stored in the nonvolatile memory.

一方、これら装置やセンサの異常診断制御によっては、車両停止中に行うものもある。すなわち、車両が動作せず静止して安定している状態で診断を行ったほうが診断の精度を向上できるものや、診断に長時間要するために他の装置の駆動制御に影響しないよう車両停止中に異常診断を行うものもある。たとえば、燃料蒸散防止装置等の燃料ガスに関する異常診断では、車両が停止しガソリン等の液体燃料がタンク内で動かず安定している間に異常診断を実行する。また、水温センサの異常診断では、ヒーターを作動させて水温を様々に変化させて行う診断があり、この場合には診断時間が長時間となる。この間、水温に基づくエンジン等制御が不能となるため、車両停止中にかかる診断が実行される。   On the other hand, some abnormality diagnosis control of these devices and sensors is performed while the vehicle is stopped. In other words, it is possible to improve the accuracy of diagnosis by making a diagnosis while the vehicle is stationary and stable, and because the diagnosis takes a long time, the vehicle is stopped so as not to affect the drive control of other devices. Some of them also diagnose abnormalities. For example, in abnormality diagnosis relating to fuel gas such as a fuel transpiration prevention device, abnormality diagnosis is executed while the vehicle is stopped and liquid fuel such as gasoline is stable without moving in the tank. In addition, in the abnormality diagnosis of the water temperature sensor, there is a diagnosis performed by operating the heater and variously changing the water temperature. In this case, the diagnosis time is long. During this time, the engine or the like based on the water temperature cannot be controlled, so the diagnosis is performed while the vehicle is stopped.

このような異常診断制御は、車両の停止後、つまりイグニッションスイッチがオフされた後にソークタイマによって一定期間ごとにECUを起動させ、装置の異常診断を実行して行われる。ソークタイマ(Soak Timer)とは、イグニッションスイッチがオフ等されることにより、当該ECUに実質的な動作電力が供給されなくなってからの時間(以下「ソーク時間」という)を計測するタイマである。そして、ソークタイマが一定のソーク時間毎(例えば、数時間毎から数日間毎)にECUのマイコンに電源を供給することにより、車両内の装置やセンサの異常診断が実行される。異常または正常の診断結果であるフラグが揮発性のメモリに一時記憶される。なお、一時的記憶メモリはRAM等で構成される揮発性メモリであるため、イグニッションスイッチがオフされると記憶データは消去される。そのため、異常診断処理が終了するとRAMに記憶した診断結果データを不揮発性メモリの所定アドレスに書き込んで記憶した後、異常診断制御を終了する。   Such abnormality diagnosis control is performed by starting the ECU at regular intervals by a soak timer after the vehicle is stopped, that is, after the ignition switch is turned off, and executing abnormality diagnosis of the apparatus. The soak timer is a timer that measures a time (hereinafter referred to as “soak time”) after substantial operating power is not supplied to the ECU due to an ignition switch being turned off or the like. Then, the soak timer supplies power to the microcomputer of the ECU every certain soak time (for example, every few hours to every several days), thereby executing abnormality diagnosis of devices and sensors in the vehicle. A flag which is an abnormal or normal diagnosis result is temporarily stored in a volatile memory. Since the temporary storage memory is a volatile memory composed of a RAM or the like, the stored data is erased when the ignition switch is turned off. For this reason, when the abnormality diagnosis process is completed, the diagnosis result data stored in the RAM is written and stored in a predetermined address of the nonvolatile memory, and then the abnormality diagnosis control is terminated.

この不揮発性メモリはEEPROM等で構成され、電源が遮断されても記憶されたデータを保存することができる。たとえば、最後にデータを記憶してから10年程度はデータを記憶することができる。また、データの書き込みは10万回程度繰り返し行うことが可能となっている。そして、異常診断制御の終了後、再びECUのマイコンと電源が遮断され、ソークタイマが再びカウントを開始する。   This nonvolatile memory is composed of an EEPROM or the like, and can store stored data even when the power is cut off. For example, data can be stored for about 10 years since the last data storage. Data writing can be repeated about 100,000 times. Then, after the abnormality diagnosis control is completed, the microcomputer and power supply of the ECU are shut off again, and the soak timer starts counting again.

異常診断制御は、たとえば燃料タンクからの燃料の蒸散を防止する燃料蒸散防止装置(エバポレータ)からの気化燃料の漏れを検出する穴あき検査(リークチェック)がある。燃料蒸散防止装置は、燃料タンク、活性炭等で燃料ガスを吸着する燃料吸着タンク(キャニスタ)、両タンクを結ぶ連通管、及びキャニスタから大気へ通じる大気閉塞弁と吸気管へ通じる吸気管調整弁から主に構成される。そして、燃料タンク内で蒸発して気化したガソリン等の蒸散燃料について連通管を通してキャニスタに吸着させて大気への放出を防ぐものである。キャニスタに吸着された燃料は、エンジンの運転状態に応じて上記弁の開度が調整されることにより、適宜吸気管内に導入されてエンジン内で燃焼される。   The abnormality diagnosis control includes, for example, a perforated inspection (leak check) for detecting leakage of vaporized fuel from a fuel transpiration prevention device (evaporator) that prevents transpiration of fuel from the fuel tank. The fuel transpiration prevention device consists of a fuel tank, a fuel adsorption tank (canister) that adsorbs fuel gas with activated carbon, etc., a communication pipe that connects both tanks, an air blocking valve that leads from the canister to the atmosphere, and an intake pipe adjustment valve that leads to the intake pipe Mainly composed. Then, the vaporized fuel such as gasoline evaporated and vaporized in the fuel tank is adsorbed to the canister through the communication pipe to prevent release to the atmosphere. The fuel adsorbed by the canister is appropriately introduced into the intake pipe and burned in the engine by adjusting the opening of the valve according to the operating state of the engine.

上記リークチェックは、燃料漏れによる大気汚染や火災を防止するために、イグニッションスイッチのオフ後、ソークタイマにより計測した数時間後にECUを起動して、エバポレータ内の圧力を数十分間(たとえば30分間程度)制御、測定して漏れのチェックを行っている(特許文献1)。   In the leak check, in order to prevent air pollution and fire due to fuel leakage, after the ignition switch is turned off, the ECU is started after several hours measured by the soak timer, and the pressure in the evaporator is kept for several tens of minutes (for example, 30 minutes) The degree of leakage is checked by controlling and measuring (Patent Document 1).

燃料タンクからエバポレータへと蒸散燃料が通過する連通管には特殊なゴム等からなる管が使用される。かかる管はアルコール成分と接触することから、腐食等の劣化によるひび割れや穴あきが生じる恐れがあるためにかかるチェックが必要となっている。   A pipe made of special rubber or the like is used for the communication pipe through which the evaporated fuel passes from the fuel tank to the evaporator. Since such a tube comes into contact with an alcohol component, there is a possibility that cracks or holes may be generated due to deterioration such as corrosion.

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

しかしながら、燃料蒸散検出の30分間程に、ECUはバッテリから給電され起動しているが、バッテリ交換など車両整備のためにバッテリコードがバッテリから外される場合がある。車両所有者や整備員は、イグニッションスイッチがオフのためECUは起動していないと認識していることがあるためである。また、かかる診断中はECUが起動していてもエンジンは作動していないため、作業者にとってECUが作動しているか否か見分けがつかないためである。   However, although the ECU is powered and activated for about 30 minutes after detecting fuel evaporation, the battery cord may be disconnected from the battery for vehicle maintenance such as battery replacement. This is because the vehicle owner or the maintenance staff may recognize that the ECU is not activated because the ignition switch is off. Further, during the diagnosis, even if the ECU is activated, the engine is not operating, so it is impossible for an operator to tell whether the ECU is operating.

バッテリコードがバッテリから外されたとき、異常診断の結果を不揮発性メモリ等に書き込む途中であると、複数ビットからなる診断データが途中まで書き込まれて記憶される恐れがある。たとえば、診断データが複数ビットの記憶領域からなり、各ビット毎に1つのセンサや装置についての異常または正常フラグを記憶する場合には、過去に診断された異常フラグを最新の診断の正常フラグに書き替える前に電源が遮断されて書き込みが途絶えると、異常フラグが診断データに残されたままとなってしまう恐れがあり問題となる。この場合、次回エンジン起動時に、かかる誤記憶の診断データに基づいてエンジンが制御されることにより、異常が生じていないにもかかわらず故障警告が発せられたり、またエンジン等が適切に制御されず燃費の悪化や排気ガスの浄化不良を生ずる恐れがある。   When the battery code is removed from the battery, if the result of the abnormality diagnosis is in the middle of being written to the nonvolatile memory or the like, there is a risk that diagnostic data consisting of a plurality of bits will be written and stored halfway. For example, when diagnosis data consists of a storage area of multiple bits and an abnormality or normal flag for one sensor or device is stored for each bit, the abnormality flag diagnosed in the past is used as the normal flag for the latest diagnosis. If the power is shut off before rewriting and the writing is interrupted, the abnormal flag may remain in the diagnostic data, which is a problem. In this case, the next time the engine is started, the engine is controlled based on the erroneously stored diagnosis data, so that a failure warning is issued even if no abnormality has occurred, and the engine is not properly controlled. There is a risk of deterioration of fuel consumption and poor purification of exhaust gas.

たとえば、燃料蒸散防止装置が異常となると吸気管へ導入される蒸散燃料量を正確に算出できないため、同装置が異常と判断されると吸気管調整弁の閉弁制御を行い蒸散燃料を使用せずにエンジン制御を行う。このため、異常でないのに異常であるとの誤った診断結果が記憶された場合には、吸気管調整弁が閉じられて吸気管へ導入されるはずの蒸散燃料が導入されないため、エンジン制御において不要な燃費の悪化を招くこととなる。   For example, if the fuel transpiration prevention device becomes abnormal, the amount of transpiration fuel introduced into the intake pipe cannot be calculated accurately. Therefore, if the device is determined to be abnormal, the intake pipe adjustment valve is closed and the transpiration fuel is used. Without engine control. For this reason, when an erroneous diagnosis result is stored that is not abnormal but stored as abnormal, the intake pipe adjustment valve is closed and the vaporized fuel that should be introduced into the intake pipe is not introduced. This will cause unnecessary fuel consumption deterioration.

また、水温センサが異常と判断されると水温センサから取得した値を制御に使用せず、水温を90℃等と固定した値(フェールセーフ値)を使用してエンジン制御を行う。この場合、センサを修理するまでの間、エンジンの制御自体は継続して行うことが出来ても、燃料噴射制御で適正な制御が出来ず空燃比が安定しない。このため、水温センサが異常でないのに異常であるとの誤った診断結果が記憶されると、本来実際の水温に基づいた燃料噴射制御が出来るはずなのにフェールセーフ値を使用した燃料噴射制御を行うため、空燃比が安定せず不要な排気ガスの浄化不良を招くこととなる。   Further, when it is determined that the water temperature sensor is abnormal, the value obtained from the water temperature sensor is not used for control, and the engine control is performed using a value (fail safe value) in which the water temperature is fixed at 90 ° C. or the like. In this case, even if the engine control itself can be continuously performed until the sensor is repaired, the fuel injection control cannot be performed properly, and the air-fuel ratio is not stabilized. For this reason, if an erroneous diagnosis result indicating that the water temperature sensor is not abnormal is stored, but the fuel injection control based on the actual water temperature should be possible, the fuel injection control using the fail-safe value is performed. For this reason, the air-fuel ratio is not stable, and unnecessary purification of exhaust gas is caused.

本発明は、上記問題に着目してなされたものであって、その目的とするところは、不揮発性メモリの書き込み処理を精度よく行い、車載用エンジンの制御を適正に行うことができる電子式燃料噴射制御装置を提供することにある。   The present invention has been made paying attention to the above-mentioned problems, and an object of the present invention is to provide an electronic fuel capable of accurately performing a nonvolatile memory writing process and appropriately controlling a vehicle-mounted engine. To provide an injection control device.

上記目的を達成するために、本発明1は、開閉機構を備えた格納庫に設置された電源手段から電源供給を受け、不揮発性記憶手段へデータの書き込みを行う書き込み手段を備えた電子制御装置において、前記開閉機構が開放されているとき、前記書き込み手段は前記不揮発性記憶手段へのデータの書き込みを禁止することを特徴とする。   In order to achieve the above object, the present invention provides an electronic control device comprising a writing means for receiving power from a power supply means installed in a hangar equipped with an opening / closing mechanism and writing data to a nonvolatile storage means. When the opening / closing mechanism is opened, the writing means prohibits writing of data into the nonvolatile storage means.

本発明1にかかる電子制御装置によれば、電源手段を設置した格納庫に備えられた開閉機構が開放されるとき、書き込み手段は不揮発性記憶手段へのデータの書き込みが禁止されるように構成した。このため、開閉機構の開放後、電源手段が操作されて電子制御装置への電源供給が遮断される前に書き込み制御の実行を中止又は保留することができる。したがって、不揮発性記憶手段へのデータの書き込み制御の最中に電源が絶たれて、不揮発性記憶手段に本来書き込もうとしていた診断結果を相違して記憶してしまう恐れを防止することができる。また、誤った診断結果に基づく燃料噴射制御を行うことによる不要な燃費の悪化や排気ガスの浄化不良を防止することができる。   According to the electronic control device of the first aspect of the present invention, when the opening / closing mechanism provided in the hangar in which the power supply means is installed is opened, the writing means is prohibited from writing data into the nonvolatile storage means. . For this reason, after the opening / closing mechanism is opened, the execution of the write control can be stopped or suspended before the power supply means is operated and the power supply to the electronic control device is interrupted. Therefore, it is possible to prevent the possibility that the diagnosis result originally intended to be written to the nonvolatile storage means is stored differently during the control of writing data to the nonvolatile storage means. Further, unnecessary fuel consumption deterioration and exhaust gas purification failure due to fuel injection control based on an erroneous diagnosis result can be prevented.

また本発明2は、前記書き込み手段は、前記書き込みを禁止する際、前記データを前記電源手段から常時電源供給を受ける一時的記憶手段へ記憶させることを特徴とする。   According to the second aspect of the present invention, the writing unit stores the data in a temporary storage unit that is constantly supplied with power from the power source unit when the writing is prohibited.

本発明2によれば、書き込み手段は書き込みを禁止する際、書き込みを行おうとしていた最新のデータ、すなわち不揮発性記憶手段への書き込みが禁止されたデータを電源手段から常時電源供給を受ける一時的記憶手段へ記憶させる。このため、書き込み禁止後に電子制御装置への電源供給を終了させても、独自に電源供給を受ける一時的記憶手段にデータを保存することができる。したがって、書き込みのために作成したデータを電子制御装置への電源供給の終了に伴って消去することなく、作成した最新のデータを制御に活用することができる。   According to the second aspect of the present invention, when the writing unit prohibits writing, the latest data that was about to be written, that is, data that is prohibited from being written to the nonvolatile storage unit, is temporarily received from the power source unit. It memorize | stores in a memory | storage means. For this reason, even if the power supply to the electronic control device is terminated after the write is prohibited, the data can be stored in the temporary storage means that receives the power supply independently. Therefore, the latest data created can be used for control without erasing the data created for writing with the termination of power supply to the electronic control unit.

また本発明3は、前記書き込み手段は、前記データの書き込みを禁止した後に、前記開閉機構が閉鎖されたとき、前記不揮発性記憶手段のデータの書き込みを許可することを特徴とする。   According to the third aspect of the present invention, the writing unit permits writing of data in the nonvolatile storage unit when the opening / closing mechanism is closed after prohibiting writing of the data.

本発明3によれば、書き込み手段はデータの書き込みを禁止した後に、開閉機構の閉鎖を検知するとき、不揮発性記憶手段へのデータの書き込みを許可するように構成した。このため、開閉機構が開放されてデータの書き込みを禁止しても、後に開閉機構が閉鎖されれば、不揮発性記憶手段のデータの書き込みを行うことができる。したがって、書き込みのために作成したデータを開閉機構が閉鎖された状態、すなわち、電源が遮断される恐れのない状態においてデータの書き込みを安全に行うことができる。   According to the third aspect of the present invention, the writing means is configured to permit writing of data to the nonvolatile storage means when detecting closing of the opening / closing mechanism after prohibiting data writing. For this reason, even if the opening / closing mechanism is opened and data writing is prohibited, if the opening / closing mechanism is closed later, data can be written in the nonvolatile storage means. Therefore, data created for writing can be safely written in a state in which the opening / closing mechanism is closed, that is, in a state where there is no possibility that the power supply is shut off.

また本発明4は、前記書き込み手段は、前記開閉機構の開閉状態にかかわらず前記不揮発性記憶手段へのデータの書き込みを行う書き込みモードを備えたことを特徴とする。   According to a fourth aspect of the present invention, the writing unit includes a writing mode for writing data to the nonvolatile storage unit regardless of the open / close state of the opening / closing mechanism.

本発明4にかかる電子制御装置によれば、開閉機構の開閉状態にかかわらず不揮発性記憶手段へのデータの書き込みを行う書き込みモードを備える。このため、開閉機構が開放されても、電源遮断の恐れがない場合には、かかるモードに設定することで、不揮発性記憶手段へのデータの書き込みを行うことができる。したがって、最新のデータに書き込まれて電子制御装置を作動させることができるので、電子制御装置や接続される装置の最新動作を点検することが可能となる。   The electronic control device according to the fourth aspect of the present invention has a write mode for writing data to the nonvolatile storage means regardless of the open / close state of the open / close mechanism. For this reason, even when the opening / closing mechanism is opened, if there is no fear of power interruption, data can be written to the nonvolatile storage means by setting to this mode. Accordingly, since the electronic control device can be operated by writing the latest data, it is possible to check the latest operation of the electronic control device and the connected device.

また、本発明5は、ボンネットを備えたエンジンルームに設置されたバッテリと、電源の供給を受けずにデータを保持できる不揮発性記憶手段と、前記バッテリから電源供給を受け、前記不揮発性記憶手段へデータの書き込みを行う書き込み手段を備えた電子制御装置において、前記ボンネットが開放されたとき、前記書き込み手段は前記不揮発性記憶手段へのデータの書き込みを禁止することを特徴とする。   According to the fifth aspect of the present invention, there is provided a battery installed in an engine room having a bonnet, a non-volatile storage means capable of holding data without receiving power supply, and a non-volatile storage means receiving power supply from the battery. In the electronic control device provided with the writing means for writing data to the memory, when the bonnet is opened, the writing means prohibits data writing to the nonvolatile storage means.

本発明5にかかる電子制御装置によれば、バッテリを設置したエンジンルームに備えられたボンネットが開放されたとき、書き込み手段が不揮発性記憶手段へのデータの書き込みをするのを禁止するように構成した。このため、ボンネットの開放後、バッテリが操作されて電子制御装置への電源供給が遮断される前に書き込み制御の実行を中止又は保留することができる。したがって、不揮発性記憶手段へのデータの書き込み制御の最中に電源が絶たれて、不揮発性記憶手段に本来書き込もうとしていた診断結果を相違して記憶してしまう恐れを防止することができる。また、誤った診断結果に基づく燃料噴射制御を行うことによる不要な燃費の悪化や排気ガスの浄化不良を防止することができる。   The electronic control device according to the fifth aspect of the invention is configured such that when the bonnet provided in the engine room in which the battery is installed is opened, the writing unit is prohibited from writing data into the nonvolatile storage unit. did. For this reason, after the bonnet is opened, the execution of the write control can be suspended or suspended before the battery is operated and the power supply to the electronic control device is interrupted. Therefore, it is possible to prevent the possibility that the diagnosis result originally intended to be written to the nonvolatile storage means is stored differently during the control of writing data to the nonvolatile storage means. Further, unnecessary fuel consumption deterioration and exhaust gas purification failure due to fuel injection control based on an erroneous diagnosis result can be prevented.

また、本発明6は、ボンネットを備えたエンジンルームに設置されたバッテリから電源供給を受けて作動し、車両に搭載されたエンジンの燃料噴射制御を行う電子式燃料噴射制御装置において、前記バッテリから電源供給が停止された後の時間を計測するタイマと、前記タイマにより所定時間毎に燃料蒸散防止装置及び水温センサの少なくともどちらかの異常診断を行う異常診断手段と、前記異常診断の診断結果を記憶する不揮発性メモリと、前記不揮発性メモリへ前記診断結果を書き込む書き込み手段とを備え、前記書き込み手段は、前記ボンネットが開放されているとき、前記不揮発性メモリへ前記診断結果の書き込みを禁止することを特徴とする。   According to a sixth aspect of the present invention, there is provided an electronic fuel injection control device that operates by receiving power supply from a battery installed in an engine room provided with a bonnet and performs fuel injection control of an engine mounted on a vehicle. A timer for measuring the time after the power supply is stopped, an abnormality diagnosis means for performing abnormality diagnosis of at least one of the fuel transpiration prevention device and the water temperature sensor every predetermined time by the timer, and a diagnosis result of the abnormality diagnosis Non-volatile memory for storing and writing means for writing the diagnostic result to the nonvolatile memory, and the writing means prohibits writing of the diagnostic result to the nonvolatile memory when the hood is opened. It is characterized by that.

本発明6にかかる電子式燃料噴射制御装置によれば、ボンネットが開放されているとき、不揮発性メモリの記憶内容を異常診断の診断結果で書き込むことを禁止するように構成した。このため、ボンネットの開放後、バッテリが操作されて電子式燃料噴射制御装置への電源供給が遮断される前に書き込み制御の実行を中止又は保留することができる。したがって、不揮発性メモリへのデータの書き込み制御の最中に電源が絶たれて、不揮発性メモリに本来書き込もうとしていた診断結果を相違して記憶してしまう恐れを防止することができる。また、誤った診断結果に基づいてエンジンの燃料噴射制御を行うことによる不要な燃費の悪化や排気ガスの浄化不良を防止することができる。   According to the electronic fuel injection control device of the sixth aspect of the present invention, when the bonnet is opened, the storage contents of the nonvolatile memory are prohibited from being written with the diagnosis result of the abnormality diagnosis. For this reason, after the bonnet is opened, the execution of the write control can be stopped or suspended before the battery is operated and the power supply to the electronic fuel injection control device is shut off. Accordingly, it is possible to prevent the possibility that the diagnosis result originally intended to be written in the nonvolatile memory is stored differently during the control of writing data to the nonvolatile memory. Moreover, unnecessary fuel consumption deterioration and exhaust gas purification failure caused by performing fuel injection control of the engine based on an erroneous diagnosis result can be prevented.

以下、本発明の実施の形態を図面を参照して詳細に説明する。
図3は本発明を適用したECUの構成例を示すブロック図である。
このECU1は、車両用エンジン21の燃料噴射制御や点火時期制御、アイドリング回転数制御などのエンジン制御に必要となる制御を行うものである。そして、エンジン21又は車両内に設けられた各種センサなどが取得する情報を受信し、エンジン21への燃料噴射時間などの制御信号をエンジン制御用の各アクチュエータへ送信する入出力回路9と、入力された情報を基に所定の演算を行うCPU2と、メモリとを有している。CPU2は、演算結果のうち所定のデータをメモリに書き込む制御を行う書き込み手段としても作用する。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
FIG. 3 is a block diagram showing a configuration example of an ECU to which the present invention is applied.
The ECU 1 performs control necessary for engine control such as fuel injection control, ignition timing control, and idling speed control of the vehicle engine 21. The input / output circuit 9 receives information acquired by the engine 21 or various sensors provided in the vehicle, and transmits a control signal such as a fuel injection time to the engine 21 to each actuator for engine control, and an input The CPU 2 that performs a predetermined calculation based on the obtained information and a memory are provided. The CPU 2 also functions as a writing unit that performs control to write predetermined data of the calculation result into the memory.

このメモリは、CPU2が実行する燃料噴射制御プログラム、本発明の機能を実行するプログラムを記憶するROM5と、燃料噴射などを制御中のCPU2の演算結果などを一時的に記憶し、電源供給が絶たれると記憶データが消失する揮発性のRAM6と、エンジン制御に必要な変数、学習値、車両に固有の情報などを記憶しておく不揮発性のEEPROM8と、バックアップRAM7からなる。   This memory temporarily stores the fuel injection control program executed by the CPU 2, the ROM 5 for storing the program for executing the functions of the present invention, the calculation results of the CPU 2 controlling the fuel injection, etc., and the power supply is cut off. Volatile RAM 6 in which stored data disappears, nonvolatile EEPROM 8 for storing variables necessary for engine control, learning values, vehicle-specific information, and the like, and backup RAM 7.

バックアップRAM7は、イグニッションスイッチ11を介さずにバッテリ13と接続され常時電源が供給されているため、イグニッションスイッチ11がオフとされても記憶したデータを保持することができる揮発性のメモリである。ただし、バッテリコネクタ12が外されると電源が遮断され、その揮発性の性質のために記憶データは消去される。さらに、CPU2とこれらメモリは、相互にデータの入出力を行うためのデータバス10により接続されている。   The backup RAM 7 is a volatile memory that can hold stored data even when the ignition switch 11 is turned off because it is connected to the battery 13 and is always supplied with power without passing through the ignition switch 11. However, when the battery connector 12 is removed, the power is cut off and the stored data is erased due to its volatile nature. Further, the CPU 2 and these memories are connected by a data bus 10 for inputting / outputting data to / from each other.

これらCPU2等はバッテリ13にバッテリコネクタ12を介して接続されて電源供給を受けている。バッテリ13は、12Vの電圧を安定的にECU等に出力する。また、ボンネットにより閉じられるエンジンルーム内に設置されており、雨や埃などが付着しないようになされている。したがって、バッテリ13はエンジンルーム以外にもトランクやダッシュボード等の車両に構成された格納庫内に備えることができる。ボンネットなど開閉機構として作用する蓋体を備える場所に設置されることで、蓋体を閉鎖して雨や埃を避け、開放してバッテリ13をメンテナンス等することのできる場所であればよい。本発明においては、ボンネットにより閉じられるエンジンルームを例としている。   The CPU 2 and the like are connected to the battery 13 via the battery connector 12 and are supplied with power. The battery 13 stably outputs a voltage of 12V to the ECU or the like. In addition, it is installed in an engine room that is closed by a bonnet so that rain, dust, and the like are not attached. Therefore, the battery 13 can be provided in a hangar configured in a vehicle such as a trunk or a dashboard in addition to the engine room. Any place can be used as long as it can be installed in a place having a lid that acts as an opening / closing mechanism, such as a bonnet, so that the lid can be closed to avoid rain and dust, and can be opened to maintain the battery 13. In the present invention, an engine room closed by a bonnet is taken as an example.

バッテリコネクタ12はECU1とバッテリ13の間に備えられる。バッテリ13を接続することでECU1へ電源が供給され、接続を外すと電源供給が遮断される。このため、接続を外すことでECU1のCPU2やRAM6等をリセットすることができる。また、バッテリ液の補充などのメンテナンスを行う場合には、バッテリコネクタ12の接続を外すことで作業中の感電などの事故を防止できる。   The battery connector 12 is provided between the ECU 1 and the battery 13. By connecting the battery 13, power is supplied to the ECU 1, and when the connection is removed, the power supply is cut off. For this reason, it is possible to reset the CPU 2 and RAM 6 of the ECU 1 by disconnecting the connection. Further, when performing maintenance such as replenishment of battery fluid, it is possible to prevent accidents such as electric shock during work by disconnecting the battery connector 12.

電源回路3は、イグニッションスイッチ11がオンされると、バッテリ13から電源が供給され、5Vの安定化電圧をCPU2等のECUの各部に供給する。そして、電源供給開始時にCPU2へ起動信号であるリセット信号を送信する、いわゆるパワーオンリセット制御を行う。CPU2はこの起動信号を受信することにより起動処理を開始する。また、電源回路3はイグニッションスイッチ11がオフであっても、ソークタイマICから電源供給を受けることによりCPU2へ起動信号を送信する場合もある。   When the ignition switch 11 is turned on, the power supply circuit 3 is supplied with power from the battery 13 and supplies a stabilized voltage of 5V to each part of the ECU such as the CPU 2. Then, so-called power-on reset control is performed in which a reset signal, which is an activation signal, is transmitted to the CPU 2 when power supply is started. The CPU 2 starts the activation process by receiving this activation signal. Further, the power supply circuit 3 may transmit an activation signal to the CPU 2 by receiving power supply from the soak timer IC even when the ignition switch 11 is off.

ソークタイマIC4は、イグニッションスイッチ11がオフされてもバッテリ13に接続され動作が可能である。そして、ECU1に実質的な動作電力が供給されなくなってからの時間の計測を行う。予め設定された時間となると、電源回路3へバッテリ13の電源を供給する。なお、電源回路3はソークタイマIC4からの電源供給を受けてCPU2を起動させる信号を送信する。ソークタイマIC4から起動信号を受けたCPU2は、イグニッションスイッチ11がオフのためバッテリ13から直接電源の供給を受けることができず、起動用の電源もソークタイマIC4を介して入力されている。また、CPU2は動作中に動作していることを示す保持信号をソークタイマIC4に出力しており、制御を終了する時に保持信号の出力を停止する。CPU2が制御を終了した場合は、ソークタイマIC4への保持信号が途絶えるため、ソークタイマIC4は保持信号の途絶を検知することにより電源の供給制御を終了する。その後、再び時間の計測を開始する。   The soak timer IC 4 is connected to the battery 13 and can operate even when the ignition switch 11 is turned off. And the time after substantial operating electric power is no longer supplied to ECU1 is measured. When the preset time is reached, the power of the battery 13 is supplied to the power supply circuit 3. The power supply circuit 3 receives a power supply from the soak timer IC 4 and transmits a signal for starting the CPU 2. The CPU 2 that has received the activation signal from the soak timer IC 4 cannot receive power directly from the battery 13 because the ignition switch 11 is off, and the activation power is also input via the soak timer IC 4. The CPU 2 outputs a holding signal indicating that the CPU 2 is operating during operation to the soak timer IC 4 and stops outputting the holding signal when the control is finished. When the CPU 2 finishes the control, the holding signal to the soak timer IC 4 is interrupted, so the soak timer IC 4 ends the power supply control by detecting the interruption of the holding signal. Thereafter, time measurement is started again.

ボンネットスイッチ27はボンネットの開閉を検知するスイッチである。ボンネットが閉じている間はボンネットと車体ボディーに備えられた電極が短絡されることにより、電流がボディー側に設けられたアースに吸収され、入出力回路9には電流が流れない。ボンネットが開くとボンネットスイッチ27はアースと切断され通電されることにより入出力回路9に電流が流れる。したがって、入出力回路9に通電される電流の導通状態を検知することにより、CPU2においてボンネットの開閉を判断することができる。なお、本スイッチは、ボンネットのみならず車両の他のドアやトランク等の開閉機構に適用することによりその開閉を検知することができる。   The bonnet switch 27 is a switch that detects opening and closing of the bonnet. While the bonnet is closed, the bonnet and the electrodes provided on the vehicle body are short-circuited, so that the current is absorbed by the ground provided on the body side, and no current flows through the input / output circuit 9. When the bonnet is opened, the bonnet switch 27 is disconnected from the ground and energized, whereby a current flows through the input / output circuit 9. Accordingly, the CPU 2 can determine whether the bonnet is opened or closed by detecting the conduction state of the current supplied to the input / output circuit 9. In addition, this switch can detect the opening / closing by applying it to not only the bonnet but also an opening / closing mechanism such as another door or trunk of the vehicle.

燃料タンク14には、圧力センサ15が配設されている。気圧に反応する半導体素子から構成され、燃料タンク14内の気圧に応じて所定の電圧を出力する。この出力を計測することで、該タンク内の気圧を検出することができる。   A pressure sensor 15 is disposed in the fuel tank 14. A semiconductor element that reacts to atmospheric pressure is used, and a predetermined voltage is output in accordance with the atmospheric pressure in the fuel tank 14. By measuring this output, the atmospheric pressure in the tank can be detected.

また、燃料タンク14は、−40mmHg〜150mmHgを越える圧力となった場合に圧力を逃がすためのリリーフ弁16が配設されるとともに連通管20を介してキャニスタ17に接続されている。従って、燃料タンク14からキャニスタ17までの区間は常にこのリリーフ圧範囲内の圧力変動以下に抑えられている。従って、圧力センサ15としては、このリリーフ圧範囲に耐え得る構造のものを採用すれば足りる。   The fuel tank 14 is provided with a relief valve 16 for releasing the pressure when the pressure exceeds −40 mmHg to 150 mmHg, and is connected to the canister 17 via the communication pipe 20. Therefore, the section from the fuel tank 14 to the canister 17 is always kept below the pressure fluctuation within this relief pressure range. Therefore, it is sufficient to employ a pressure sensor 15 having a structure that can withstand this relief pressure range.

キャニスタ17は活性炭等を備えて燃料タンク14から蒸発した燃料ガスを吸着するよう構成されている。吸着された燃料ガスは、エンジン21の運転状態に応じて吸気管調整弁19の開度が調整されることにより、適宜吸気管30内に導入されてエンジン21で燃焼される。また、吸着の限度を越えると、大気閉塞弁18が開放されることにより燃料ガスが大気へ放出される場合もある。   The canister 17 includes activated carbon and is configured to adsorb the fuel gas evaporated from the fuel tank 14. The adsorbed fuel gas is appropriately introduced into the intake pipe 30 and combusted in the engine 21 by adjusting the opening of the intake pipe adjustment valve 19 according to the operating state of the engine 21. Further, when the adsorption limit is exceeded, the fuel gas may be released to the atmosphere by opening the air blocking valve 18.

なお、大気閉塞弁18は、キャニスタ17本体と大気とを連通する電磁開閉弁である。また、吸気管調整弁19は、キャニスタ17内の蒸散ガスを吸気管30へ導入する際に開放される電磁開閉弁である。燃料タンク14とキャニスタ17とを結び蒸散ガスを通す連通管20は、ゴムホースやナイロンホース等の可撓性を有するもので全体を形成されている。   The air blocking valve 18 is an electromagnetic on-off valve that communicates the canister 17 body with the atmosphere. The intake pipe adjusting valve 19 is an electromagnetic on-off valve that is opened when the vaporized gas in the canister 17 is introduced into the intake pipe 30. The communication pipe 20 that connects the fuel tank 14 and the canister 17 and allows the vaporized gas to pass therethrough is formed entirely of a flexible material such as a rubber hose or a nylon hose.

外部操作ツール28はECU1の入出力回路9及びCPU2の電源回路3に接続され、CPU2をメンテナンスモードに設定したい場合にコネクタ32を介して接続される。メンテナンスモードとは、データの書き込みが禁止されている状態であっても、データの書き込みを行うことができるように設定するモードである。また、外部操作ツール28はCPU2の動作中に入出力回路9を介して、バックアップRAM7に記憶されたデータを読み出すこともできる。   The external operation tool 28 is connected to the input / output circuit 9 of the ECU 1 and the power supply circuit 3 of the CPU 2 and is connected via the connector 32 when the CPU 2 is to be set in the maintenance mode. The maintenance mode is a mode that is set so that data can be written even when data writing is prohibited. The external operation tool 28 can also read data stored in the backup RAM 7 via the input / output circuit 9 during the operation of the CPU 2.

ECU1に接続されるセンサ等としては、ラジエータ液の温度を測定しエンジン21の温度検出に使用される水温センサ24、スロットル弁角度を検出するスロットル弁開度センサ22、排気ガスの空燃比を検出するA/Fセンサ26、エンジン21のノッキングの有無と大きさの判定をするノックセンサ25、ECU1の出力に基づいてエンジン21へ燃料の噴射を行う燃料噴射弁23など、様々なセンサや装置がある。   The sensor connected to the ECU 1 includes a temperature sensor 24 for detecting the temperature of the radiator liquid and detecting the temperature of the engine 21, a throttle valve opening sensor 22 for detecting the throttle valve angle, and an air-fuel ratio of the exhaust gas. There are various sensors and devices, such as an A / F sensor 26 that performs knocking, a knock sensor 25 that determines whether or not the engine 21 is knocked, and a fuel injection valve 23 that injects fuel into the engine 21 based on the output of the ECU 1. is there.

バッテリ13やエンジン21、燃料タンク14等は格納庫となるエンジンルーム31に設置され、エンジンルーム31は開閉機構として作用する図示しないボンネットにより閉じられるよう構成されている。   The battery 13, the engine 21, the fuel tank 14, and the like are installed in an engine room 31 serving as a storage. The engine room 31 is configured to be closed by a bonnet (not shown) that functions as an opening / closing mechanism.

図4はソークタイマIC4の制御の流れを示すフローチャートである。本制御はソークタイマIC4が時間を計測することによって所定時間毎に実行される。   FIG. 4 is a flowchart showing a control flow of the soak timer IC4. This control is executed at predetermined time intervals by the soak timer IC 4 measuring time.

ソークタイマIC4は、イグニッションスイッチ11がオフとなっている場合でもバッテリ13から電源供給を受けて作動している。CPU2から保持信号の出力が途絶えると、すなわちCPU2の動作終了を検出すると計時を開始し、計時カウントが6時間に達したか否かを判断する(ステップ100)。なお、CPU2の動作終了は、イグニッションスイッチ11がオフになったことによる場合と、ソークタイマIC4によりCPU2が起動し、所定の処理を終了してCPU2が自ら動作終了した場合とがある。6時間後に該当する場合には、電源回路3へ電源を供給する(ステップ110)。一方、CPU2が作動終了してから6時間後に該当しない場合には本フローは終了する。   The soak timer IC 4 operates by receiving power supply from the battery 13 even when the ignition switch 11 is off. When the output of the hold signal from the CPU 2 is interrupted, that is, when the end of the operation of the CPU 2 is detected, time measurement is started, and it is determined whether or not the time count has reached 6 hours (step 100). Note that the end of the operation of the CPU 2 may be due to the ignition switch 11 being turned off, or the CPU 2 is activated by the soak timer IC 4, the predetermined processing is terminated, and the CPU 2 ends the operation itself. If the result corresponds to 6 hours later, power is supplied to the power supply circuit 3 (step 110). On the other hand, if the CPU 2 does not correspond after 6 hours from the end of the operation, this flow ends.

電源の供給中はCPU2からの保持信号が入力されているかを判断する(ステップ120)。入力されていると判断される場合は、CPU2が制御中であるため電源回路へ電源供給を継続する。保持信号が途絶えたと判断される場合は、電源の供給を終了する(ステップ130)。その後時間の計測を開始して(ステップ140)、本フローを終了する。   While the power is being supplied, it is determined whether a holding signal is input from the CPU 2 (step 120). If it is determined that the input has been made, power supply to the power supply circuit is continued because the CPU 2 is under control. If it is determined that the holding signal has been interrupted, the supply of power is terminated (step 130). Thereafter, time measurement is started (step 140), and this flow is ended.

図5はECU1に備えられたCPU2の制御の流れを示すフローチャートである。本フローチャートによる処理は、CPU2が電源回路3を介して起動信号を受信した場合に実行される。すなわち、イグニッシンスイッチ11がオンとなった場合と、ソークタイマICが所定時間を計測した場合である。   FIG. 5 is a flowchart showing a control flow of the CPU 2 provided in the ECU 1. The processing according to this flowchart is executed when the CPU 2 receives an activation signal via the power supply circuit 3. That is, when the ignition switch 11 is turned on and when the soak timer IC measures a predetermined time.

CPU2はソークタイマIC4から電源回路3を介して電源の供給を受け、同回路3から出力される起動信号を受信すると、起動処理を実行する(ステップ200)。この際、RAM6などの初期化処理が実行されるが、初期化については図4のフローチャートに従って制御される。初期化処理が終了すると図示しないイグニッションスイッチ検出回路の信号からイグニッションスイッチがオフであるかを検出する(ステップ205)。イグニッションスイッチがオフであれば、ステップ210に進む。一方、イグニッションスイッチがオンであれば本フローを終了し、図示せぬ通常制御に移行する。このため、本フローのステップ210からステップ340以下の制御は、イグニッションスイッチがオフのとき、すなわちソークタイマIC4によりCPU2が起動したときに実行される。   When the CPU 2 receives power supply from the soak timer IC 4 via the power supply circuit 3 and receives the activation signal output from the circuit 3, the CPU 2 executes activation processing (step 200). At this time, initialization processing of the RAM 6 and the like is executed. The initialization is controlled according to the flowchart of FIG. When the initialization process is completed, it is detected from the signal of an ignition switch detection circuit (not shown) whether the ignition switch is off (step 205). If the ignition switch is off, the process proceeds to step 210. On the other hand, if the ignition switch is turned on, this flow is terminated and the routine proceeds to normal control (not shown). Therefore, the control from step 210 to step 340 in this flow is executed when the ignition switch is OFF, that is, when the CPU 2 is activated by the soak timer IC4.

次に、CPU2はボンネットスイッチ27からの信号を受けて、ボンネットが閉じているか、すなわちボンネットの開閉状態を判定する(ステップ210)。
ボンネットが閉じていない、つまり開放されていると判定する場合には、ステップ220以下の異常診断やEEPROM8への書き込み処理を行わず、終了処理の制御を行う(ステップ340)。すなわち、ボンネットが開放されているということは、バッテリ13が外される恐れがあるため、直ちにCPU2の終了処理を行うことで、制御処理の途中における電源遮断を回避できる。制御処理を継続させても処理結果をEEPROM8へ記憶させる前にバッテリ13が外されれば、それまでの処理結果を保存させることができず無駄な処理となってしまう。上記のように直ちにCPU2の終了処理を行うことで、制御に必要となるバッテリ電力を無駄に消費することを防止できる。
Next, the CPU 2 receives a signal from the bonnet switch 27 and determines whether the bonnet is closed, that is, the open / closed state of the bonnet (step 210).
When it is determined that the bonnet is not closed, that is, opened, the termination process is controlled without performing the abnormality diagnosis and the writing process to the EEPROM 8 after step 220 (step 340). That is, when the hood is opened, there is a possibility that the battery 13 may be removed. Therefore, the CPU 2 can be immediately terminated to avoid power interruption during the control process. Even if the control processing is continued, if the battery 13 is removed before the processing result is stored in the EEPROM 8, the processing result up to that point cannot be saved, resulting in useless processing. By immediately ending the CPU 2 as described above, it is possible to prevent wasteful consumption of battery power required for control.

一方、ステップ210でボンネットが閉鎖されていると判定される場合は、CPU2は蒸散防止装置の異常診断を実行する(ステップ220)。圧力センサ15の出力値を入出力回路を介して取り込む。また、他のセンサ類を診断する場合は、水温センサ24やスロットルセンサ22、A/Fセンサ26の出力値を入出力回路を介して取り込む。また、センサ以外にも電子制御トランスミッション用の電子制御装置など他の電子制御装置が異常診断対象となる場合もある。   On the other hand, when it is determined in step 210 that the bonnet is closed, the CPU 2 performs abnormality diagnosis of the transpiration prevention device (step 220). The output value of the pressure sensor 15 is taken in via an input / output circuit. When diagnosing other sensors, the output values of the water temperature sensor 24, the throttle sensor 22, and the A / F sensor 26 are taken in via an input / output circuit. In addition to the sensor, other electronic control devices such as an electronic control device for an electronic control transmission may be subject to abnormality diagnosis.

異常診断の方法は、エバポレータを例とすれば、燃料タンク15とキャニスタ17及び両者を結ぶ連通管20から蒸散ガスの漏れ異常がないかについて行われる。まずキャニスタ17の吸気管調整弁19を閉鎖し、大気閉塞弁18を開放して燃料タンク14及びキャニスタ17内を大気圧となるようにする。次に開放していた大気閉塞弁18を閉鎖して燃料タンク19及びキャニスタ17を密閉する。燃料タンク14内での燃料ガスの発生量に応じて圧力は上昇していく。CPU2内に設けられたタイマによって10分間計測する。燃料タンク14に設けられた圧力センサー15にて大気圧からの10分間の圧力上昇率(P1)を検出し記憶しておく。   If the evaporator is taken as an example, the abnormality diagnosis method is performed as to whether there is an abnormality in the leakage of the vaporized gas from the fuel tank 15 and the canister 17 and the communication pipe 20 connecting the two. First, the intake pipe adjustment valve 19 of the canister 17 is closed, and the air blocking valve 18 is opened so that the inside of the fuel tank 14 and the canister 17 becomes atmospheric pressure. Next, the open air closing valve 18 is closed to seal the fuel tank 19 and the canister 17. The pressure rises according to the amount of fuel gas generated in the fuel tank 14. It is measured for 10 minutes by a timer provided in the CPU 2. A pressure increase rate (P1) for 10 minutes from atmospheric pressure is detected and stored by a pressure sensor 15 provided in the fuel tank 14.

次に、キャニスタ17の吸気管調整弁19を開放し、大気閉塞弁18を閉鎖する。この状態で図示しないエンジン始動用モータを回転させてエンジン21のピストン31を動作させることにより、吸気管30内に負圧を生じさせる。吸気管調整弁19は開放されているため、燃料タンク14とキャニスタ17内には負圧が生じる。これを燃料タンク14に設けられた圧力センサ15にて検出し、所定の圧力、たとえば−20mmHgの圧力状態となったところで吸気管調整弁17を閉鎖して燃料タンク14及びキャニスタ17を密閉する。ここで、圧力センサ15にて負圧状態からの10分間の圧力上昇率(P2)を検出し記憶しておく。   Next, the intake pipe adjustment valve 19 of the canister 17 is opened, and the atmospheric block valve 18 is closed. In this state, an engine start motor (not shown) is rotated to operate the piston 31 of the engine 21, thereby generating a negative pressure in the intake pipe 30. Since the intake pipe adjusting valve 19 is opened, a negative pressure is generated in the fuel tank 14 and the canister 17. This is detected by a pressure sensor 15 provided in the fuel tank 14, and when a predetermined pressure, for example, −20 mmHg, is reached, the intake pipe adjustment valve 17 is closed to seal the fuel tank 14 and the canister 17. Here, the pressure increase rate (P2) for 10 minutes from the negative pressure state is detected and stored by the pressure sensor 15.

検出された圧力上昇率のP1及びP2が一致しない場合には、エバポレータ内に蒸散ガスの漏れ異常が生じている恐れがあると判断できる。すなわち、エバポレータに穴あき等の異常があれば、正圧状態から圧力上昇したP1は、ガスの流出が生じるため上昇率は低くなる。一方、負圧状態から圧力上昇したP2は、外気の流入が生じるため上昇率は高くなる。したがって、エバポレータに異常があればガスの流出または外気の流入が生じてP1及びP2が一致しないこととなる。   If the detected pressure increase rates P1 and P2 do not match, it can be determined that there is a possibility that a vaporized gas leakage abnormality has occurred in the evaporator. In other words, if there is an abnormality such as a hole in the evaporator, the rate of increase of P1 that has increased in pressure from the positive pressure state is low because of gas outflow. On the other hand, the increase rate of P2, which has increased in pressure from the negative pressure state, is increased because of the inflow of outside air. Therefore, if there is an abnormality in the evaporator, the outflow of gas or the inflow of outside air occurs and P1 and P2 do not match.

なお、水温センサ24等のセンサを異常診断対象とすることもできる。この場合はセンサ出力値が正常な範囲にあるか否かを判断することにより診断される。たとえば、水温センサ24は正常な場合には0.1V〜5.0Vを出力するが、この範囲内での出力がない場合にはセンサに何らかの異常があると診断できる。また、常温から高温まで異常なく温度検出可能であるかを判断するために、図示しないヒーターを作動させ、水温を上昇させることにより広範囲の水温検出を行う場合もある。この場合、ヒーターによる加熱時間のため数十分間に渡って水温が検出される。   Note that a sensor such as the water temperature sensor 24 may be an abnormality diagnosis target. In this case, the diagnosis is made by determining whether or not the sensor output value is in a normal range. For example, the water temperature sensor 24 outputs 0.1 V to 5.0 V when it is normal, but if there is no output within this range, it can be diagnosed that there is some abnormality in the sensor. In addition, in order to determine whether the temperature can be detected without abnormality from normal temperature to high temperature, a wide range of water temperature detection may be performed by operating a heater (not shown) and increasing the water temperature. In this case, the water temperature is detected over several tens of minutes due to the heating time by the heater.

次に、異常診断が実施されると、所定の異常診断処理が完了したか否かが判断される(ステップ230)。完了していないと判断される場合は、再びステップ210においてボンネットが閉鎖か否か判断され、異常診断が継続される。   Next, when abnormality diagnosis is performed, it is determined whether or not a predetermined abnormality diagnosis process is completed (step 230). If it is determined that the bonnet is not completed, it is determined again in step 210 whether or not the hood is closed, and the abnormality diagnosis is continued.

異常診断が完了したと判断される場合は、診断により異常が検出されたか否かが判断される(ステップ240)。異常が検出された場合にはエバポレータ診断フラグに「1」を設定する(ステップ250)。異常が検出されなかった場合には、同様に「0」を設定する(ステップ260)。   If it is determined that the abnormality diagnosis has been completed, it is determined whether an abnormality has been detected by the diagnosis (step 240). If an abnormality is detected, “1” is set to the evaporator diagnosis flag (step 250). If no abnormality is detected, “0” is similarly set (step 260).

次に、書き込み要求フラグに「1」を設定する。この書き込み要求フラグに1が設定されていることが、EEPROM8に診断データを書き込む制御の実行条件となる。   Next, “1” is set in the write request flag. The fact that 1 is set in this write request flag is an execution condition of control for writing diagnostic data to the EEPROM 8.

次に、ソークタイマIC4から電源回路3を介して供給される電圧が10V以上かつ12V以下であるかが判定される(ステップ280)。CPU2への印加電圧を検出するのは、CPU2の動作時は通常11V程度が印加されており、+1Vから−1V程度の電圧変動範囲内において通常動作が可能であるためである。しかし、電圧が10V以下または12V以上の場合はEEPROM8に対し適正な電圧を用いて書き込み処理が出来ないため、記憶させてもすぐにデータが消えてしまう恐れや、誤ったデータ内容をメモリに記憶させてしまうといった恐れがある。このため、EEPROM8へ診断データの書き込み処理を行う前には、CPU2に印加される電圧値が10V以上かつ12V以下であるか否か判断される。   Next, it is determined whether the voltage supplied from the soak timer IC 4 through the power supply circuit 3 is 10 V or more and 12 V or less (step 280). The reason why the voltage applied to the CPU 2 is detected is that about 11V is normally applied during the operation of the CPU 2 and normal operation is possible within a voltage fluctuation range of about + 1V to −1V. However, if the voltage is 10V or less or 12V or more, it is impossible to write data to the EEPROM 8 using an appropriate voltage. Therefore, even if it is stored, the data may be erased immediately, or erroneous data contents are stored in the memory. There is a fear of letting you. For this reason, before the diagnostic data is written into the EEPROM 8, it is determined whether or not the voltage value applied to the CPU 2 is 10V or more and 12V or less.

ステップ280にて電圧が10V以上かつ12V以下でないと判断される場合は、ステップ340へ処理を移行し、プログラムの終了処理を行う。そして、本フローの処理を終了し、次回のフロー開始タイミングでステップ200より再び処理が開始される。   If it is determined in step 280 that the voltage is not less than 10 V and not more than 12 V, the process proceeds to step 340 and the program is terminated. Then, the process of this flow is terminated, and the process is started again from step 200 at the next flow start timing.

電圧値が適正な場合には、再びボンネットの開閉状態が判定される(ステップ290)。EEPROM8への書き込み処理の前に判断することで、バッテリコネクタ12が外される恐れのない間に、書き込み処理を実施することができるため、誤ったデータ内容を書き込むことがない。   If the voltage value is appropriate, the open / close state of the bonnet is determined again (step 290). By making the determination before the writing process to the EEPROM 8, the writing process can be performed while there is no fear that the battery connector 12 is removed, so that erroneous data contents are not written.

ボンネットが閉鎖されていると判断する場合には、EEPROMへ診断データの書き込み処理を実施する(ステップ300)。   If it is determined that the bonnet is closed, diagnostic data is written into the EEPROM (step 300).

診断データの書き込み処理を実施すると、診断データの書き込み処理が正常に終了したことを示すために、書き込み要求フラグに「0」を設定し(ステップ320)、制御プログラムの終了処理を行う(ステップ340)。   When the diagnostic data writing process is executed, the write request flag is set to “0” to indicate that the diagnostic data writing process has ended normally (step 320), and the control program end process is performed (step 340). ).

一方、ステップ290においてボンネットが開放されていると判断されると、バックアップRAM7にステップ250又は260、及びステップ270で記憶された診断データ及び書き込み要求フラグを記憶する(ステップ310、ステップ330)。本ステップにより、ステップ300のEEPROM8への診断データの書き込み処理、及びステップ320の書き込み要求フラグの「0」設定処理を介さずに、制御プログラムの終了処理が行われる(ステップ340)。   On the other hand, if it is determined in step 290 that the hood is open, the diagnostic data and the write request flag stored in step 250 or 260 and step 270 are stored in the backup RAM 7 (step 310 and step 330). By this step, the control program end processing is performed without going through the diagnostic data writing processing to the EEPROM 8 in step 300 and the write request flag “0” setting processing in step 320 (step 340).

このように、本実施の形態ではボンネットが開放である場合に、EEPROM8への書き込み処理の実行を回避することで、データの書き込み処理を禁止する。また、バックアップRAM7は、イグニッションスイッチ11を介さずにバッテリ13と接続されているため、イグニッシンスイッチ11がオフとなっていてもデータを保持することができる。このため、バッテリコネクタ12が外されない限り、次回制御時にCPU2が起動されたとき、書き込み要求フラグは1のままであるので、バッテリコネクタ12が外される恐れのないときにバックアップRAM7に記憶された診断データをEEPROM8へ書き込むことができる。   As described above, in the present embodiment, when the hood is open, the data writing process is prohibited by avoiding the writing process to the EEPROM 8. Further, since the backup RAM 7 is connected to the battery 13 without passing through the ignition switch 11, data can be retained even when the ignition switch 11 is turned off. For this reason, unless the battery connector 12 is removed, the write request flag remains 1 when the CPU 2 is activated at the next control, so that it is stored in the backup RAM 7 when there is no risk of the battery connector 12 being removed. Diagnostic data can be written to the EEPROM 8.

以上説明した本実施の態様によれば、EEPROM8へ診断データの書き込み処理を実行する前に、ボンネットの開閉を判定する。ボンネットが開放である場合には、整備員等によってバッテリコネクタ12が外される恐れがあるため、EEPROM8へ診断データの書き込み処理を禁止することにより、書き込み処理中に当該コネクタが切断されるのを防止してEEPROM8への記憶処理を適正に行わせることが可能となる。   According to the embodiment described above, the opening / closing of the hood is determined before the diagnostic data writing process to the EEPROM 8 is executed. If the bonnet is open, the battery connector 12 may be removed by maintenance personnel or the like. Therefore, by prohibiting the writing process of diagnostic data to the EEPROM 8, the connector is disconnected during the writing process. Therefore, it is possible to prevent the EEPROM 8 from being properly stored.

また本実施の態様によれば、車両装置またはセンサについての異常診断処理を実行前、または実行中にボンネットの開閉を判定する。ボンネットが開放された場合には、整備員等によってバッテリコネクタが外される恐れがあるため、ボンネットの開放検知後は、直ちにプログラムの終了処理を実行する。これにより、制御処理の最中に当該コネクタが切断されるのを防止して、コネクタ切断までにおける制御処理に費やされるバッテリ電力の消費をなくすことができる。   Further, according to the present embodiment, the opening / closing of the bonnet is determined before or during the execution of the abnormality diagnosis process for the vehicle device or sensor. When the bonnet is opened, the battery connector may be removed by maintenance personnel or the like, and therefore, after the bonnet opening is detected, the program termination process is executed immediately. Thereby, it is possible to prevent the connector from being disconnected during the control process, and to eliminate the consumption of battery power consumed in the control process until the connector is disconnected.

次に、ステップ200におけるCPU2の起動処理について図6を用いて説明する。
まず、ステップ400において初期化処理が行われる。ここではまず、制御プログラムをROM5から取得し、EEPROM8から制御データの取得を行う。続いて、入出力回路9の初期化が行われる。すなわち回路の各ポートがオフとなる出力が行われると、RAM6の内容を全て0にクリア処理したうえで、ROM5またはEEPROM8から読み出した制御データによってRAM6の初期値の設定を行う。これにより、CPU2はエンジン21や車載装置を制御するうえでの演算処理に備えられる。
Next, the activation process of the CPU 2 in step 200 will be described with reference to FIG.
First, in step 400, initialization processing is performed. Here, first, a control program is acquired from the ROM 5 and control data is acquired from the EEPROM 8. Subsequently, the input / output circuit 9 is initialized. That is, when an output that turns off each port of the circuit is performed, the contents of the RAM 6 are all cleared to 0 and the initial value of the RAM 6 is set by the control data read from the ROM 5 or the EEPROM 8. As a result, the CPU 2 is provided for arithmetic processing in controlling the engine 21 and the in-vehicle device.

初期化処理が終了すると、書き込み要求フラグが1であるか否かを判断する(ステップ410)。本ステップにおいて、書き込み要求フラグが1に設定されているということは、ステップ310、330において診断データが一時記憶手段であるバックアップRAM7へ記憶されている状態を意味している。すなわち、ソークタイマIC4により前回起動されたときの処理においてステップ240〜ステップ270の診断処理は完了したが、ボンネットが開放されてEEPROM8への記憶処理が行われず、診断データがバックアップRAM7へ記憶され保存されている状態を意味する。したがって、本ステップにおいて書き込み要求フラグが1であれば、前回処理に継続する処理としてEEPROM8への書き込みを実行する。   When the initialization process ends, it is determined whether or not the write request flag is 1 (step 410). In this step, the fact that the write request flag is set to 1 means that the diagnostic data is stored in the backup RAM 7 which is a temporary storage means in steps 310 and 330. That is, in the process when it was previously activated by the soak timer IC4, the diagnostic process of step 240 to step 270 is completed, but the bonnet is opened and the storing process to the EEPROM 8 is not performed, and the diagnostic data is stored and saved in the backup RAM 7. Means the state. Therefore, if the write request flag is 1 in this step, writing to the EEPROM 8 is executed as processing that continues from the previous processing.

次に、CPU2へ印加される電圧が10V以上かつ12V以下であるか否かを判断する(ステップ420)。一方、フラグが0であれば、つまり診断データの書き込み要求がなければ、本フローの処理は終了し、ステップ210に進む。   Next, it is determined whether or not the voltage applied to the CPU 2 is 10V or more and 12V or less (step 420). On the other hand, if the flag is 0, that is, if there is no request for writing diagnostic data, the process of this flow ends, and the process proceeds to step 210.

CPU2への印加電圧を検出するのは、CPU2の動作時は通常11V程度が印加されており、上下1V程度の電圧変動範囲内での通常動作が可能であるためである。しかし、電圧が10Vより低いまたは12Vより高い場合にはEEPROM8に対し適切な電圧を用いて記憶処理が出来ないため、誤ったデータ内容を記憶させてしまう恐れや、記憶させてもすぐにデータが消えてしまうといった恐れがある。このため、診断データの書き込み処理を行う前には、CPU2に印加される電圧値が10V以上かつ12V以下であるか否か判断される。   The reason why the voltage applied to the CPU 2 is detected is that about 11 V is normally applied during the operation of the CPU 2 and normal operation within a voltage fluctuation range of about 1 V above and below is possible. However, if the voltage is lower than 10V or higher than 12V, the storage process cannot be performed using an appropriate voltage for the EEPROM 8, and there is a risk of storing wrong data contents, or the data is immediately stored even if stored. There is a risk of disappearing. Therefore, before the diagnostic data writing process is performed, it is determined whether or not the voltage value applied to the CPU 2 is 10 V or more and 12 V or less.

ステップ420にて電圧が10V以上かつ12V以下でないと判断される場合は、本フローの処理を終了し、電圧が10V以上かつ12V以下であると判断される場合には、ボンネットが閉鎖されているか否かが判定される(ステップ430)。ボンネットが閉鎖されていると判定されれば、ステップ440でバックアップRAM6に記憶した診断データをEEPROM8に書き込み制御を行う(ステップ440)。反対に、ボンネットが開放されていると判断される場合は、バッテリコネクタ12が取り外される恐れがあるため、診断データの書き込みを行わずに本フローを終了する。このように、ボンネットの開放状態に対応して診断データの書き込みを実行しないことにより、書き込みの禁止処理が行われることとなる。   If it is determined in step 420 that the voltage is not lower than 10 V and not higher than 12 V, the process of this flow is terminated. If it is determined that the voltage is not lower than 10 V and not higher than 12 V, is the hood closed? It is determined whether or not (step 430). If it is determined that the hood is closed, the diagnostic data stored in the backup RAM 6 in step 440 is written into the EEPROM 8 (step 440). On the other hand, if it is determined that the bonnet is open, the battery connector 12 may be removed, and thus this flow is terminated without writing diagnostic data. As described above, the writing prohibition process is performed by not executing the writing of the diagnostic data in response to the open state of the hood.

なお、診断データをEEPROM8に書き込む代わりに、入出力回路9から送信機29へ送ることにより図示しない車外の異常管理センターや車両所有者の携帯端末等へ診断データを送信することもできる。さらに、上記書き込みと同時に診断データの送信を行うよう構成することも可能である。   Instead of writing the diagnostic data in the EEPROM 8, the diagnostic data can be transmitted to an abnormality management center outside the vehicle (not shown), a portable terminal of the vehicle owner, or the like by sending it from the input / output circuit 9 to the transmitter 29. Further, it is possible to transmit diagnostic data simultaneously with the writing.

ここで書き込まれた診断データはEEPROM8からCPU2へ読み出されることとなる。CPU2は診断データに異常データが設定されているのを読み出すと、図示しない警告ランプを点灯させてドライバーに対し車両装置等に異常が発生している旨を警告する。そして、車両が整備工場等へ搬送された場合には、外部操作ツールを用いることで診断データの内容を参照することができるため、診断データを車両修理等に役立てることができる。   The diagnostic data written here is read from the EEPROM 8 to the CPU 2. When the CPU 2 reads that the abnormality data is set in the diagnostic data, the CPU 2 turns on a warning lamp (not shown) to warn the driver that an abnormality has occurred in the vehicle device or the like. When the vehicle is transported to a maintenance factory or the like, the contents of the diagnostic data can be referred to by using an external operation tool, so that the diagnostic data can be used for vehicle repair or the like.

EEPROM8へ診断データの書き込みが完了すると、書き込み要求フラグを0に設定して(ステップ450)本フローによる処理を終了する。   When the writing of diagnostic data to the EEPROM 8 is completed, the write request flag is set to 0 (step 450), and the processing according to this flow is terminated.

以上のように本実施の態様においては、CPU2の起動処理において、バックアップRAM7に診断データが記憶されていれば、これをEEPROM8へ書き込みを行う。すなわち、異常診断後であって、診断データ記憶前のタイミングでボンネットが開放された場合には、直ちにCPU2を終了処理できるうえ、次回起動時に十分な処理時間を確保してEEPROM8へ診断データを書き込みできるので、異常診断により取得したデータを有効に活用することができる。   As described above, in the present embodiment, if diagnostic data is stored in the backup RAM 7 in the startup process of the CPU 2, this is written into the EEPROM 8. That is, if the bonnet is opened at the timing after diagnosis of the abnormality and before the diagnosis data is stored, the CPU 2 can be immediately terminated, and sufficient processing time is secured at the next startup to write the diagnosis data to the EEPROM 8. Therefore, the data acquired by the abnormality diagnosis can be used effectively.

以上詳述したように、本発明によれば、電源の供給が絶たれる恐れのある場合には診断データの書き込み処理を禁止したので、不揮発性記憶手段へのデータの書き込み制御の最中に電源が絶たれて、不揮発性記憶手段に本来書き込もうとしていた診断結果を相違して記憶してしまうことを防止することができる。   As described above in detail, according to the present invention, when the power supply may be cut off, the diagnostic data writing process is prohibited, so that the power supply is being controlled during the data writing control to the nonvolatile storage means. Therefore, it is possible to prevent the diagnosis result originally written in the nonvolatile storage means from being stored differently.

なお、以上の実施の形態においては、エンジンの燃料噴射制御を行う電子制御装置の場合を例に説明したが、本発明は特定の実施形態に限定されるものではなく、他の電子制御装置についても同様に適用することができる。また、以上の実施形態では、電源装置の収納場所としてエンジンルーム、及びその蓋体としてボンネットを示したが、何らこれに限定されるものではなく、電源装置を設置できる他の収納場所に本発明を適用してもよい。   In the above embodiment, the case of an electronic control device that performs fuel injection control of the engine has been described as an example. However, the present invention is not limited to a specific embodiment, and other electronic control devices are also described. Can be applied similarly. Further, in the above embodiment, the engine room is shown as the storage place for the power supply device, and the bonnet is shown as the lid, but the invention is not limited to this, and the present invention is applied to other storage places where the power supply device can be installed. May be applied.

次に本発明の第2の実施態様について図7を用いて説明する。なお、本処理において、第1の実施態様と同じ処理を行うステップについては、第1の実施態様と同じ符号を付したので、その説明は省略する。従って、第1の実施態様とは異なるステップについてのみ説明する。   Next, a second embodiment of the present invention will be described with reference to FIG. In addition, in this process, about the step which performs the same process as a 1st embodiment, since the same code | symbol as the 1st embodiment was attached | subjected, the description is abbreviate | omitted. Therefore, only steps different from the first embodiment will be described.

図7に示すように、CPU2の起動処理の制御において、ボンネットが開放と判定されるとメンテナンスモードに設定されているかが判断される(ステップ500)。メンテナンスモードは外部操作ツール28によって、EEPROM8やバックアップRAM7に記憶されたデータを読み出す場合に設定されるモードである。車両の整備員は記憶されたデータを読み出すことにより、車両状態を把握し適切な整備等を行うことができる。   As shown in FIG. 7, in the control of the startup process of the CPU 2, if it is determined that the hood is open, it is determined whether or not the maintenance mode is set (step 500). The maintenance mode is a mode that is set when data stored in the EEPROM 8 or the backup RAM 7 is read by the external operation tool 28. A vehicle mechanic can read out the stored data to grasp the vehicle state and perform appropriate maintenance.

外部操作ツール28をECU1の入出力回路9に備えられたコネクタ32に接続し、起動信号を電源回路3へ送信すると、CPU2は初期化処理を行い起動状態となる。ここで、メンテナンスモードの設定命令を外部操作ツール28によって送信することで、かかるモードが設定される。   When the external operation tool 28 is connected to the connector 32 provided in the input / output circuit 9 of the ECU 1 and a start signal is transmitted to the power supply circuit 3, the CPU 2 performs an initialization process and enters a start state. Here, this mode is set by transmitting a maintenance mode setting command by the external operation tool 28.

メンテナンスモードが設定されている場合には、整備員によるEEPROM8等のデータの読み出しが前提であるため、ボンネットが開放されていたとしてもバッテリが外される恐れがない。したがって、この場合には診断データをEEPROM8へ記憶させる(ステップ440)。一方、メンテナンスモードでない場合には、診断データの記憶処理を回避して、処理は終了する。   When the maintenance mode is set, since it is premised on the data read from the EEPROM 8 or the like by the maintenance personnel, there is no possibility that the battery will be removed even if the hood is opened. Therefore, in this case, diagnostic data is stored in the EEPROM 8 (step 440). On the other hand, when not in the maintenance mode, the diagnosis data storage process is avoided and the process ends.

以上説明した第2の実施態様では、メンテナンスモードが設定されている場合には、ボンネットの開閉に関わらず、診断データをEEPROM8へ書き込み制御を行わせるため、バックアップRAM7に一時的に記憶したデータを直ちにEEPROM8へ書き込ませることができる。これにより、車両整備のためにバッテリを外しても最新の診断データを記憶し保存しておくことができる。   In the second embodiment described above, when the maintenance mode is set, the data temporarily stored in the backup RAM 7 is used to control the writing of diagnostic data to the EEPROM 8 regardless of whether the hood is opened or closed. It can be immediately written to the EEPROM 8. As a result, the latest diagnostic data can be stored and stored even if the battery is removed for vehicle maintenance.

なお、メンテナンスモードを第2の実施態様において説明したが、本モードを第1の実施態様に対して適用することも可能である。すなわち、図3のステップ290において、ボンネットが開であると判断された場合にメンテナンスモードが設定されているか否か判断する。設定されている場合には、ステップ300へ進み、診断フラグをEEPROM8へ記憶する。一方、メンテナンスモードが設定されていないと判断される場合は、診断フラグをバックアップRAMへ記憶するステップ310へ進む。このように、メンテナンスモードを第1の実施の態様に対して適用することにより、診断フラグの記憶処理の直前でボンネットが開放された場合でも、メンテナンスモードが設定されていれば診断フラグはEEPROM8へ記憶されるので、車両整備のためにバッテリを外しても最新の診断データを記憶し保存しておくことができる。   In addition, although the maintenance mode was demonstrated in the 2nd embodiment, it is also possible to apply this mode with respect to a 1st embodiment. That is, if it is determined in step 290 of FIG. 3 that the hood is open, it is determined whether or not the maintenance mode is set. If it is set, the process proceeds to step 300 and the diagnosis flag is stored in the EEPROM 8. On the other hand, if it is determined that the maintenance mode is not set, the process proceeds to step 310 where the diagnostic flag is stored in the backup RAM. As described above, by applying the maintenance mode to the first embodiment, even if the hood is opened immediately before the storing process of the diagnostic flag, the diagnostic flag is transferred to the EEPROM 8 if the maintenance mode is set. Since it is stored, the latest diagnostic data can be stored and saved even if the battery is removed for vehicle maintenance.

本発明の従来例を示すブロック図である。It is a block diagram which shows the prior art example of this invention. 本発明の従来例を示す図である。It is a figure which shows the prior art example of this invention. 本発明を適用したECUの構成例を示すブロック図である。It is a block diagram which shows the structural example of ECU to which this invention is applied. ソークタイマの処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process of a soak timer. CPUの処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process of CPU. CPUの処理の流れのうち、起動処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a starting process among the process flows of CPU. 第2実施の態様でのCPUの処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process of CPU in a 2nd embodiment.

符号の説明Explanation of symbols

1 ECU(電子式燃料噴射制御装置)
2 CPU(中央演算装置)
3 電源回路
4 ソークタイマIC
6 RAM(揮発性メモリ)
7 バックアップRAM(揮発性メモリ)
8 EEPROM(不揮発性メモリ)
9 入出力回路
10 データバス
11 イグニッションスイッチ
12 バッテリコネクタ
13 バッテリ
14 燃料タンク
17 キャニスタ
18 大気閉塞弁
19 吸気管調整弁
27 ボンネットスイッチ
28 外部操作ツール
29 送信機
30 吸気管
31 エンジンルーム
33 ボンネット
34 車両
1 ECU (electronic fuel injection control device)
2 CPU (Central Processing Unit)
3 Power supply circuit 4 Soak timer IC
6 RAM (volatile memory)
7 Backup RAM (volatile memory)
8 EEPROM (nonvolatile memory)
DESCRIPTION OF SYMBOLS 9 Input / output circuit 10 Data bus 11 Ignition switch 12 Battery connector 13 Battery 14 Fuel tank 17 Canister 18 Atmospheric block valve 19 Intake pipe adjustment valve 27 Bonnet switch 28 External operation tool 29 Transmitter 30 Intake pipe 31 Engine room 33 Bonnet 34 Vehicle

Claims (6)

開閉機構を備えた格納庫に設置された電源手段から電源供給を受け、不揮発性記憶手段へデータの書き込みを行う書き込み手段を備えた電子制御装置において、
前記開閉機構が開放されたとき、前記書き込み手段は前記不揮発性記憶手段へのデータの書き込みを禁止することを特徴とする電子制御装置。
In an electronic control device comprising a writing means for receiving power supply from a power supply means installed in a hangar equipped with an opening / closing mechanism and writing data to a nonvolatile storage means,
The electronic control device according to claim 1, wherein when the opening / closing mechanism is opened, the writing means prohibits writing of data into the nonvolatile storage means.
前記書き込み手段は、前記書き込みを禁止する際、前記不揮発性記憶手段への書き込みが禁止されたデータを前記電源手段から常時電源供給を受ける一時的記憶手段へ記憶させることを特徴とする請求項1に記載の電子制御装置。
2. The writing means, when prohibiting the writing, stores data prohibited to be written to the nonvolatile storage means in a temporary storage means that is constantly supplied with power from the power supply means. The electronic control apparatus as described in.
前記書き込み手段は、前記データの書き込みを禁止した後に、前記開閉機構が閉鎖されたとき、前記不揮発性記憶手段へのデータの書き込みを許可することを特徴とする請求項1又は2に記載の電子制御装置。
3. The electronic device according to claim 1, wherein the writing unit permits writing of data to the nonvolatile storage unit when the opening / closing mechanism is closed after prohibiting the writing of the data. 4. Control device.
前記書き込み手段は、前記開閉機構の開閉状態にかかわらず前記不揮発性記憶手段へのデータの書き込みを行う書き込みモードを備えたことを特徴とする請求項1から3に記載の電子制御装置。
4. The electronic control device according to claim 1, wherein the writing unit includes a writing mode in which data is written to the nonvolatile storage unit regardless of an open / close state of the opening / closing mechanism.
ボンネットを備えたエンジンルームに設置されたバッテリと、
電源の供給を受けずにデータを保持できる不揮発性記憶手段と、
前記バッテリから電源供給を受け、前記不揮発性記憶手段へデータの書き込みを行う書き込み手段を備えた電子制御装置において、
前記ボンネットが開放されたとき、前記書き込み手段は前記不揮発性記憶手段へのデータの書き込みを禁止することを特徴とする電子制御装置。
A battery installed in the engine room with a bonnet;
Non-volatile storage means capable of holding data without receiving power supply;
In an electronic control device comprising a writing means for receiving power supply from the battery and writing data to the nonvolatile storage means,
The electronic control device according to claim 1, wherein when the bonnet is opened, the writing means prohibits writing of data into the nonvolatile storage means.
ボンネットを備えたエンジンルームに設置されたバッテリから電源供給を受けて作動し、車両に搭載されたエンジンの燃料噴射制御を行う電子式燃料噴射制御装置において、
前記バッテリから電源供給が停止された後の時間を計測するタイマと、
前記タイマにより所定時間毎に燃料蒸散防止装置及び水温センサの少なくともどちらかの異常診断を行う異常診断手段と、
前記異常診断の診断結果を記憶する不揮発性メモリと、
前記不揮発性メモリへ前記診断結果を書き込む書き込み手段とを備え、
前記書き込み手段は、前記ボンネットが開放されたとき、前記不揮発性メモリへの前記診断結果の書き込みを禁止することを特徴とする電子式燃料噴射制御装置。
In an electronic fuel injection control device that operates by receiving power supply from a battery installed in an engine room equipped with a bonnet and performs fuel injection control of an engine mounted on a vehicle,
A timer for measuring the time after power supply from the battery is stopped;
An abnormality diagnosis means for performing abnormality diagnosis of at least one of the fuel transpiration prevention device and the water temperature sensor every predetermined time by the timer;
A non-volatile memory for storing a diagnosis result of the abnormality diagnosis;
Writing means for writing the diagnostic result to the nonvolatile memory;
The electronic fuel injection control device according to claim 1, wherein when the bonnet is opened, the writing means prohibits writing of the diagnostic result to the nonvolatile memory.
JP2006329724A 2006-12-06 2006-12-06 Electronic control device Withdrawn JP2008144607A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006329724A JP2008144607A (en) 2006-12-06 2006-12-06 Electronic control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006329724A JP2008144607A (en) 2006-12-06 2006-12-06 Electronic control device

Publications (1)

Publication Number Publication Date
JP2008144607A true JP2008144607A (en) 2008-06-26

Family

ID=39605059

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006329724A Withdrawn JP2008144607A (en) 2006-12-06 2006-12-06 Electronic control device

Country Status (1)

Country Link
JP (1) JP2008144607A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010190152A (en) * 2009-02-19 2010-09-02 Kubota Corp Working vehicle
JP2011094516A (en) * 2009-10-28 2011-05-12 Fujitsu Ten Ltd Data write device and data write method
JP2014122594A (en) * 2012-12-21 2014-07-03 Toyota Motor Corp Control device for engine

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010190152A (en) * 2009-02-19 2010-09-02 Kubota Corp Working vehicle
US8146570B2 (en) 2009-02-19 2012-04-03 Kubota Corporation Fuel system for vehicle with engine
JP2011094516A (en) * 2009-10-28 2011-05-12 Fujitsu Ten Ltd Data write device and data write method
JP2014122594A (en) * 2012-12-21 2014-07-03 Toyota Motor Corp Control device for engine
US9822725B2 (en) 2012-12-21 2017-11-21 Toyota Jidosha Kabushiki Kaisha Control device and control method of engine

Similar Documents

Publication Publication Date Title
JP4572751B2 (en) Electronic control unit
JP4274186B2 (en) Failure diagnosis apparatus and failure information recording method
US7475234B2 (en) Electronic control apparatus equipped with malfunction monitor
JP5176728B2 (en) Electronic control device for vehicle
JPS61261145A (en) Trouble diagnoser for vehicles
JP2007211789A5 (en)
US8095263B2 (en) Electronic control unit and vehicle control system
JP2007211789A (en) Leak diagnosis device for evaporated gas purge system
JP2011255862A (en) Electronic control unit and information management system
EP2020497B1 (en) Electronic control unit
US20090254242A1 (en) Electronic control apparatus and vehicle control system
JP2008155736A (en) Electronic control device
JP2004139521A (en) Electronic control device
JP2008144607A (en) Electronic control device
JP6432356B2 (en) Electronic control unit
JP4475345B2 (en) Electronic control unit
US11314634B2 (en) Electronic control unit and data protection method therefor
JP2008195130A (en) Control device for vehicle and method of controlling same
JP2007062632A (en) Electronic control unit and storing method of data for abnormality generated time storage
JP4033141B2 (en) Electronic control device for vehicle
JP5406689B2 (en) Control apparatus and control method
JP6180462B2 (en) Automotive electronic control device
JP2008019829A (en) Engine control unit for vehicle
JP6156242B2 (en) Electronic control device for vehicle
KR100802274B1 (en) Method for managementing error of car

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20091120

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20100415