JP2008144607A - Electronic control device - Google Patents
Electronic control device Download PDFInfo
- 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
Links
Images
Abstract
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
ECU1は、図2に示すように車両34内に設置され、ボンネット33で閉じられるエンジンルーム31に配置されたエンジン21と接続される。そして、バッテリ13から電力が供給されている間に車両内の装置やセンサ24の異常診断を行っており、診断結果を不揮発性メモリへ記憶している。
The ECU 1 is installed in the
一方、これら装置やセンサの異常診断制御によっては、車両停止中に行うものもある。すなわち、車両が動作せず静止して安定している状態で診断を行ったほうが診断の精度を向上できるものや、診断に長時間要するために他の装置の駆動制御に影響しないよう車両停止中に異常診断を行うものもある。たとえば、燃料蒸散防止装置等の燃料ガスに関する異常診断では、車両が停止しガソリン等の液体燃料がタンク内で動かず安定している間に異常診断を実行する。また、水温センサの異常診断では、ヒーターを作動させて水温を様々に変化させて行う診断があり、この場合には診断時間が長時間となる。この間、水温に基づくエンジン等制御が不能となるため、車両停止中にかかる診断が実行される。 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.
しかしながら、燃料蒸散検出の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
このメモリは、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.
バックアップRAM7は、イグニッションスイッチ11を介さずにバッテリ13と接続され常時電源が供給されているため、イグニッションスイッチ11がオフとされても記憶したデータを保持することができる揮発性のメモリである。ただし、バッテリコネクタ12が外されると電源が遮断され、その揮発性の性質のために記憶データは消去される。さらに、CPU2とこれらメモリは、相互にデータの入出力を行うためのデータバス10により接続されている。
The backup RAM 7 is a volatile memory that can hold stored data even when the
これらCPU2等はバッテリ13にバッテリコネクタ12を介して接続されて電源供給を受けている。バッテリ13は、12Vの電圧を安定的にECU等に出力する。また、ボンネットにより閉じられるエンジンルーム内に設置されており、雨や埃などが付着しないようになされている。したがって、バッテリ13はエンジンルーム以外にもトランクやダッシュボード等の車両に構成された格納庫内に備えることができる。ボンネットなど開閉機構として作用する蓋体を備える場所に設置されることで、蓋体を閉鎖して雨や埃を避け、開放してバッテリ13をメンテナンス等することのできる場所であればよい。本発明においては、ボンネットにより閉じられるエンジンルームを例としている。
The CPU 2 and the like are connected to the
バッテリコネクタ12はECU1とバッテリ13の間に備えられる。バッテリ13を接続することでECU1へ電源が供給され、接続を外すと電源供給が遮断される。このため、接続を外すことでECU1のCPU2やRAM6等をリセットすることができる。また、バッテリ液の補充などのメンテナンスを行う場合には、バッテリコネクタ12の接続を外すことで作業中の感電などの事故を防止できる。
The
電源回路3は、イグニッションスイッチ11がオンされると、バッテリ13から電源が供給され、5Vの安定化電圧をCPU2等のECUの各部に供給する。そして、電源供給開始時にCPU2へ起動信号であるリセット信号を送信する、いわゆるパワーオンリセット制御を行う。CPU2はこの起動信号を受信することにより起動処理を開始する。また、電源回路3はイグニッションスイッチ11がオフであっても、ソークタイマICから電源供給を受けることによりCPU2へ起動信号を送信する場合もある。
When the
ソークタイマ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
ボンネットスイッチ27はボンネットの開閉を検知するスイッチである。ボンネットが閉じている間はボンネットと車体ボディーに備えられた電極が短絡されることにより、電流がボディー側に設けられたアースに吸収され、入出力回路9には電流が流れない。ボンネットが開くとボンネットスイッチ27はアースと切断され通電されることにより入出力回路9に電流が流れる。したがって、入出力回路9に通電される電流の導通状態を検知することにより、CPU2においてボンネットの開閉を判断することができる。なお、本スイッチは、ボンネットのみならず車両の他のドアやトランク等の開閉機構に適用することによりその開閉を検知することができる。
The
燃料タンク14には、圧力センサ15が配設されている。気圧に反応する半導体素子から構成され、燃料タンク14内の気圧に応じて所定の電圧を出力する。この出力を計測することで、該タンク内の気圧を検出することができる。
A
また、燃料タンク14は、−40mmHg〜150mmHgを越える圧力となった場合に圧力を逃がすためのリリーフ弁16が配設されるとともに連通管20を介してキャニスタ17に接続されている。従って、燃料タンク14からキャニスタ17までの区間は常にこのリリーフ圧範囲内の圧力変動以下に抑えられている。従って、圧力センサ15としては、このリリーフ圧範囲に耐え得る構造のものを採用すれば足りる。
The
キャニスタ17は活性炭等を備えて燃料タンク14から蒸発した燃料ガスを吸着するよう構成されている。吸着された燃料ガスは、エンジン21の運転状態に応じて吸気管調整弁19の開度が調整されることにより、適宜吸気管30内に導入されてエンジン21で燃焼される。また、吸着の限度を越えると、大気閉塞弁18が開放されることにより燃料ガスが大気へ放出される場合もある。
The
なお、大気閉塞弁18は、キャニスタ17本体と大気とを連通する電磁開閉弁である。また、吸気管調整弁19は、キャニスタ17内の蒸散ガスを吸気管30へ導入する際に開放される電磁開閉弁である。燃料タンク14とキャニスタ17とを結び蒸散ガスを通す連通管20は、ゴムホースやナイロンホース等の可撓性を有するもので全体を形成されている。
The
外部操作ツール28はECU1の入出力回路9及びCPU2の電源回路3に接続され、CPU2をメンテナンスモードに設定したい場合にコネクタ32を介して接続される。メンテナンスモードとは、データの書き込みが禁止されている状態であっても、データの書き込みを行うことができるように設定するモードである。また、外部操作ツール28はCPU2の動作中に入出力回路9を介して、バックアップRAM7に記憶されたデータを読み出すこともできる。
The
ECU1に接続されるセンサ等としては、ラジエータ液の温度を測定しエンジン21の温度検出に使用される水温センサ24、スロットル弁角度を検出するスロットル弁開度センサ22、排気ガスの空燃比を検出するA/Fセンサ26、エンジン21のノッキングの有無と大きさの判定をするノックセンサ25、ECU1の出力に基づいてエンジン21へ燃料の噴射を行う燃料噴射弁23など、様々なセンサや装置がある。
The sensor connected to the ECU 1 includes a
バッテリ13やエンジン21、燃料タンク14等は格納庫となるエンジンルーム31に設置され、エンジンルーム31は開閉機構として作用する図示しないボンネットにより閉じられるよう構成されている。
The
図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
電源の供給中は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
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
次に、CPU2はボンネットスイッチ27からの信号を受けて、ボンネットが閉じているか、すなわちボンネットの開閉状態を判定する(ステップ210)。
ボンネットが閉じていない、つまり開放されていると判定する場合には、ステップ220以下の異常診断やEEPROM8への書き込み処理を行わず、終了処理の制御を行う(ステップ340)。すなわち、ボンネットが開放されているということは、バッテリ13が外される恐れがあるため、直ちにCPU2の終了処理を行うことで、制御処理の途中における電源遮断を回避できる。制御処理を継続させても処理結果をEEPROM8へ記憶させる前にバッテリ13が外されれば、それまでの処理結果を保存させることができず無駄な処理となってしまう。上記のように直ちにCPU2の終了処理を行うことで、制御に必要となるバッテリ電力を無駄に消費することを防止できる。
Next, the CPU 2 receives a signal from the
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
一方、ステップ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
異常診断の方法は、エバポレータを例とすれば、燃料タンク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
次に、キャニスタ17の吸気管調整弁19を開放し、大気閉塞弁18を閉鎖する。この状態で図示しないエンジン始動用モータを回転させてエンジン21のピストン31を動作させることにより、吸気管30内に負圧を生じさせる。吸気管調整弁19は開放されているため、燃料タンク14とキャニスタ17内には負圧が生じる。これを燃料タンク14に設けられた圧力センサ15にて検出し、所定の圧力、たとえば−20mmHgの圧力状態となったところで吸気管調整弁17を閉鎖して燃料タンク14及びキャニスタ17を密閉する。ここで、圧力センサ15にて負圧状態からの10分間の圧力上昇率(P2)を検出し記憶しておく。
Next, the intake
検出された圧力上昇率の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
次に、異常診断が実施されると、所定の異常診断処理が完了したか否かが判断される(ステップ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
電圧値が適正な場合には、再びボンネットの開閉状態が判定される(ステップ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
ボンネットが閉鎖されていると判断する場合には、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
このように、本実施の形態ではボンネットが開放である場合に、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
以上説明した本実施の態様によれば、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
また本実施の態様によれば、車両装置またはセンサについての異常診断処理を実行前、または実行中にボンネットの開閉を判定する。ボンネットが開放された場合には、整備員等によってバッテリコネクタが外される恐れがあるため、ボンネットの開放検知後は、直ちにプログラムの終了処理を実行する。これにより、制御処理の最中に当該コネクタが切断されるのを防止して、コネクタ切断までにおける制御処理に費やされるバッテリ電力の消費をなくすことができる。 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
First, in
初期化処理が終了すると、書き込み要求フラグが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
次に、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
なお、診断データを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
ここで書き込まれた診断データは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
外部操作ツール28をECU1の入出力回路9に備えられたコネクタ32に接続し、起動信号を電源回路3へ送信すると、CPU2は初期化処理を行い起動状態となる。ここで、メンテナンスモードの設定命令を外部操作ツール28によって送信することで、かかるモードが設定される。
When the
メンテナンスモードが設定されている場合には、整備員による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
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 /
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.
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.
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.
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.
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)
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 |
-
2006
- 2006-12-06 JP JP2006329724A patent/JP2008144607A/en not_active Withdrawn
Cited By (5)
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 |