[go: up one dir, main page]

JP5664454B2 - Electronic control device for vehicle - Google Patents

Electronic control device for vehicle Download PDF

Info

Publication number
JP5664454B2
JP5664454B2 JP2011113655A JP2011113655A JP5664454B2 JP 5664454 B2 JP5664454 B2 JP 5664454B2 JP 2011113655 A JP2011113655 A JP 2011113655A JP 2011113655 A JP2011113655 A JP 2011113655A JP 5664454 B2 JP5664454 B2 JP 5664454B2
Authority
JP
Japan
Prior art keywords
idle stop
data
engine
stored
target data
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.)
Active
Application number
JP2011113655A
Other languages
Japanese (ja)
Other versions
JP2012241645A (en
Inventor
雄正 日下
雄正 日下
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Denso Corp
Original Assignee
Denso Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Denso Corp filed Critical Denso Corp
Priority to JP2011113655A priority Critical patent/JP5664454B2/en
Publication of JP2012241645A publication Critical patent/JP2012241645A/en
Application granted granted Critical
Publication of JP5664454B2 publication Critical patent/JP5664454B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Control Of Vehicle Engines Or Engines For Specific Uses (AREA)
  • Combined Controls Of Internal Combustion Engines (AREA)
  • Programmable Controllers (AREA)

Description

本発明は、データ書き換えが可能な不揮発性メモリに情報を記憶する車両用電子制御装置に関する。   The present invention relates to a vehicular electronic control device that stores information in a nonvolatile memory capable of data rewriting.

車両に組み付けられてエンジン等を制御する車両用電子制御装置(以下、車両用ECUともいう)としては、総走行距離、MIL積算距離、フリーズフレームデータ、およびパーマネントDTC(Diagnostic Trouble Code)等の情報(以下、不揮発性メモリ書込対象データという)を、データ書き換えが可能な不揮発性メモリ(例えばEEPROM)に記憶するものがある。   As a vehicle electronic control device (hereinafter also referred to as a vehicle ECU) that is mounted on a vehicle and controls an engine or the like, information such as total travel distance, MIL integrated distance, freeze frame data, and permanent DTC (Diagnostic Trouble Code) Some (hereinafter referred to as non-volatile memory write target data) are stored in a non-volatile memory (for example, EEPROM) that can be rewritten.

車両用ECUには、イグニッションスイッチがオフされても、車両用ECU内のマイコンが全ての処理を終了して電源遮断を許可するまでは、そのマイコンへの動作用電圧の供給が維持されるようにするメインリレーが設けられている。   Even if the ignition switch is turned off, the vehicle ECU maintains the supply of the operating voltage to the microcomputer until the microcomputer in the vehicle ECU completes all the processes and permits the power supply to be cut off. A main relay is provided.

そして従来、車両用ECUは、RAMなどの揮発性メモリに不揮発性メモリ書込対象データを一旦記憶させておき、イグニッションキーのオフ後においてメインリレーによる動作用電圧の供給が維持されている間に、上記不揮発性メモリ書込対象データを不揮発性メモリに書き込むように構成されていた(例えば、特許文献1,2を参照)。   Conventionally, the vehicle ECU temporarily stores the data to be written into the nonvolatile memory in a volatile memory such as a RAM, and the supply of the operation voltage by the main relay is maintained after the ignition key is turned off. The nonvolatile memory write target data is configured to be written in the nonvolatile memory (see, for example, Patent Documents 1 and 2).

また近年、燃費の低減および排気ガスの低減を目的として、車両が停止してエンジンの駆動が不要である場合(例えば、信号待ち等)にエンジンを自動的に停止させ、その後、運転者が走行再開を意図した操作を行うとエンジンを自動的に再始動させるというアイドルストップ機能を備えた車両が実用化されている。   In recent years, for the purpose of reducing fuel consumption and exhaust gas, the engine is automatically stopped when the vehicle is stopped and the engine is not required to be driven (for example, waiting for a signal). A vehicle having an idle stop function in which an engine is automatically restarted when an operation intended to resume is performed.

特開平11−141391号公報Japanese Patent Laid-Open No. 11-141391 特許第3960212号公報Japanese Patent No. 3960212

しかし、特許文献1,2に記載の技術では、メインリレーに異常が発生して、イグニッションキーのオフ後における動作用電圧の供給の維持が実行されない場合には、上記不揮発性メモリ書込対象データの不揮発性メモリへの書き込みが行われず、不揮発性メモリ書込対象データの更新漏れが発生するおそれがある。   However, in the techniques described in Patent Documents 1 and 2, when an abnormality occurs in the main relay and the operation voltage supply is not maintained after the ignition key is turned off, the nonvolatile memory write target data Is not written to the non-volatile memory, and there is a possibility that the update of the data to be written to the non-volatile memory may occur.

また、アイドルストップ機能を備えた車両では、エンジンの再始動回数(すなわち、クランキング回数)が、アイドルストップ機能を備えていない車両と比較して多くなる。このため、再始動時のクランキングによるバッテリ電圧低下でECUのリセットが発生し、ECU内の揮発性メモリに記憶された不揮発性メモリ書込対象データが、不揮発性メモリに記憶される前に消失してしまうという事態が発生するおそれがある。   In addition, in a vehicle having an idle stop function, the number of engine restarts (that is, the number of crankings) is increased compared to a vehicle not having an idle stop function. Therefore, the reset of the ECU occurs due to the battery voltage drop due to cranking at the time of restart, and the nonvolatile memory write target data stored in the volatile memory in the ECU disappears before being stored in the nonvolatile memory There is a risk that this will happen.

本発明は、こうした問題に鑑みてなされたものであり、不揮発性メモリに記憶するデータの更新漏れを抑制する技術を提供することを目的とする。   The present invention has been made in view of these problems, and an object thereof is to provide a technique for suppressing omission of update of data stored in a nonvolatile memory.

上記目的を達成するためになされた請求項1に記載の車両用電子制御装置は、予め設定された自動停止条件が成立するとエンジンを停止させるとともにエンジンの停止後に予め設定された自動始動条件が成立するとエンジンを再始動させるアイドルストップ機能を有する車両に搭載され、データの読み出し及び書き込みが可能な揮発性メモリと、記憶内容の書き換えが可能な不揮発性メモリとを備え、記憶実行手段が、自動停止条件が成立してから、自動始動条件の成立によりエンジンが再始動するまでの間において、当該車両用電子制御装置への電源供給が維持されている場合に、揮発性メモリに記憶されるデータのうち不揮発性メモリに記憶させるデータとして予め設定されたデータである不揮発性メモリ記憶対象データを不揮発性メモリに記憶する。 The vehicle electronic control device according to claim 1 , which has been made to achieve the above object, stops the engine when a preset automatic stop condition is established, and establishes a preset automatic start condition after the engine is stopped. Then, it is mounted on a vehicle having an idle stop function for restarting the engine, and includes a volatile memory capable of reading and writing data, and a nonvolatile memory capable of rewriting the stored contents, and the storage execution means automatically stops. If the power supply to the vehicle electronic control device is maintained after the condition is satisfied and until the engine is restarted due to the establishment of the automatic start condition, the data stored in the volatile memory Of these, the nonvolatile memory storage target data, which is preset data as data to be stored in the nonvolatile memory, is stored in the nonvolatile memory. And stores it in.

このように構成された車両用電子制御装置では、アイドルストップ機能による再始動の前に不揮発性メモリ記憶対象データを不揮発性メモリに記憶する。このため、アイドルストップ機能の再始動時におけるクランキングによるバッテリ電圧低下に起因した車両用電子制御装置のリセットで、揮発性メモリに記憶されている不揮発性メモリ記憶対象データが、不揮発性メモリに記憶される前に消失してしまうという事態の発生を抑制することができる。   In the vehicle electronic control device configured as described above, the nonvolatile memory storage target data is stored in the nonvolatile memory before the restart by the idle stop function. For this reason, the nonvolatile memory storage target data stored in the volatile memory is stored in the nonvolatile memory when the vehicle electronic control device is reset due to the battery voltage drop due to the cranking at the restart of the idle stop function. Occurrence of the situation of disappearing before being performed can be suppressed.

さらに、イグニッションスイッチをオンにした後に車両が走行し、その後イグニッションスイッチのオフまでの間にアイドルストップ機能が作動すれば、揮発性メモリに記憶されている不揮発性メモリ記憶対象データが、不揮発性メモリに記憶される。このため、メインリレーに異常が発生し、イグニッションスイッチのオフ後において、揮発性メモリに記憶されている不揮発性メモリ記憶対象データを不揮発性メモリに記憶できない場合であっても、揮発性メモリに記憶されている不揮発性メモリ記憶対象データが、不揮発性メモリに記憶される前に消失してしまうという事態の発生を抑制することができる。   Furthermore, if the vehicle travels after the ignition switch is turned on and the idle stop function is activated before the ignition switch is turned off, the nonvolatile memory storage target data stored in the volatile memory is stored in the nonvolatile memory. Is remembered. For this reason, even if an abnormality occurs in the main relay and the nonvolatile memory storage target data stored in the volatile memory cannot be stored in the nonvolatile memory after the ignition switch is turned off, it is stored in the volatile memory. It is possible to suppress the occurrence of the situation where the stored nonvolatile memory storage target data is lost before being stored in the nonvolatile memory.

また、請求項1に記載の車両用電子制御装置において、記憶実行手段は、自動停止条件の成立後から、自動停止条件の成立によりエンジンが停止するまでの間に、不揮発性メモリ記憶対象データを不揮発性メモリに記憶するMoreover, Te vehicle electronic control unit smell of claim 1, memorize execution means after the establishment of the automatic stop condition, until the engine is stopped by the occurrence of an automatic stop condition, the non-volatile memory storage target stores data in a nonvolatile memory.

このように構成された車両用電子制御装置によれば、エンジン停止前であるので、アイドルストップ機能の再始動が発生しない状態、すなわち、クランキングによる車両用電子制御装置のリセットが発生しない安定した状態で、不揮発性メモリ記憶対象データを不揮発性メモリに記憶することができる。   According to the vehicle electronic control device configured as described above, since the engine is not stopped, the idle stop function is not restarted, that is, the vehicle electronic control device is not reset due to cranking. In this state, the nonvolatile memory storage target data can be stored in the nonvolatile memory.

ECU1とECU1の周辺装置とを示す構成図である。It is a block diagram which shows ECU1 and the peripheral device of ECU1. 第1実施形態のアイドルストップ制御処理を示すフローチャートである。It is a flowchart which shows the idle stop control process of 1st Embodiment. 第2実施形態のアイドルストップ制御処理を示すフローチャートである。It is a flowchart which shows the idle stop control process of 2nd Embodiment.

(第1実施形態)
以下に本発明の第1実施形態について図面とともに説明する。
図1は、本実施形態の電子制御装置(以下、ECUという)1とECU1の周辺装置とを示す構成図である。
(First embodiment)
A first embodiment of the present invention will be described below with reference to the drawings.
FIG. 1 is a configuration diagram illustrating an electronic control device (hereinafter referred to as ECU) 1 and peripheral devices of the ECU 1 according to the present embodiment.

ECU1は、車両に搭載され、図1に示すように、マイコン21と、EEPROM22と、入力回路23と、メインリレー駆動回路24と、スタータ駆動回路25とを備える。そしてECU1は、車両のイグニッションスイッチ(IGSW)2がオン状態になると、ECU1の外部に設けられた給電用のメインリレー3がオン状態となってバッテリ4からバッテリ電圧VBが供給され、動作を開始する。   The ECU 1 is mounted on a vehicle and includes a microcomputer 21, an EEPROM 22, an input circuit 23, a main relay drive circuit 24, and a starter drive circuit 25, as shown in FIG. When the ignition switch (IGSW) 2 of the vehicle is turned on, the ECU 1 starts operation by turning on the main relay 3 for power supply provided outside the ECU 1 and supplying the battery voltage VB from the battery 4. To do.

これらのうちマイコン21は、CPU31、ROM32、RAM33、I/O34及びこれらの構成を接続するバスラインなどからなる周知のマイクロコンピュータであり、ROM32及びRAM33に記憶されたプログラムに基づいて、エンジンを制御するための各種処理を実行する。   Of these, the microcomputer 21 is a well-known microcomputer comprising a CPU 31, ROM 32, RAM 33, I / O 34 and a bus line connecting these components, and controls the engine based on programs stored in the ROM 32 and RAM 33. Various processes for executing the above are executed.

またEEPROM22は、データの書き換えが可能な不揮発性メモリであり、マイコン21との間でデータ入出力可能に接続される。
また入力回路23は、エンジンを制御するための外部からの各種信号をマイコン21に入力させる。具体的には、IGSW2のオン/オフ状態を表すイグニッションスイッチ信号と、エンジンを始動させるためのスタータスイッチ(STASW)5のオン/オフ状態を表すスタータスイッチ信号と、車両のブレーキペダルが踏まれたときにオン状態となりストップランプを点灯させるストップランプスイッチ6のオン/オフ状態を示すストップランプ信号と、車速を検出する車速センサ7からの検出信号などが、入力回路23を介してマイコン21に入力される。
The EEPROM 22 is a nonvolatile memory capable of rewriting data, and is connected to the microcomputer 21 so that data can be input / output.
The input circuit 23 causes the microcomputer 21 to input various signals from the outside for controlling the engine. Specifically, an ignition switch signal indicating the on / off state of the IGSW 2, a starter switch signal indicating the on / off state of the starter switch (STASW) 5 for starting the engine, and a vehicle brake pedal are depressed. A stop lamp signal indicating the on / off state of the stop lamp switch 6 that sometimes turns on and turns on the stop lamp, a detection signal from the vehicle speed sensor 7 that detects the vehicle speed, and the like are input to the microcomputer 21 via the input circuit 23. Is done.

またメインリレー駆動回路24は、マイコン21からのリレー制御信号に基づいて、メインリレー3をオン状態にするためのリレー駆動信号を出力する。具体的には、マイコン21は、IGSW2がオン状態からオフ状態に切り替わってから、IGオフ後にマイコン21が実行すべき処理が終了するまで、駆動信号の出力を指示する制御信号をメインリレー駆動回路24に出力する。これにより、IGオフ後の所定期間、メインリレー3がオン状態になる。   The main relay drive circuit 24 outputs a relay drive signal for turning on the main relay 3 based on the relay control signal from the microcomputer 21. Specifically, the microcomputer 21 outputs a control signal for instructing the output of the drive signal from the time when the IGSW 2 is switched from the on state to the off state until the processing to be executed by the microcomputer 21 after the IG is turned off. 24. As a result, the main relay 3 is turned on for a predetermined period after the IG is turned off.

またスタータ駆動回路25は、マイコン21からのスタータ制御信号に基づいて、バッテリ4からバッテリ電圧VBの供給を受けてエンジンを始動させるスタータ8を駆動するためのスタータ駆動信号を出力する。   The starter drive circuit 25 outputs a starter drive signal for driving the starter 8 that starts the engine upon receiving the supply of the battery voltage VB from the battery 4 based on the starter control signal from the microcomputer 21.

このように構成されたECU1において、マイコン21は、予め設定されたアイドルストップ条件が成立するとエンジンを自動停止させるとともに、予め設定されたアイドルストップ復帰条件が成立するとエンジンを再始動させるアイドルストップ制御処理を実行する。なお、本実施形態における上記アイドルストップ条件は、車速センサ7からの検出信号に基づく車速が0km/hであり、且つ、ストップランプ信号がオン状態を示していることである。また、本実施形態における上記アイドルストップ復帰条件は、ストップランプ信号がオフ状態であることである。   In the ECU 1 configured as described above, the microcomputer 21 automatically stops the engine when a preset idle stop condition is satisfied, and restarts the engine when a preset idle stop return condition is satisfied. Execute. The idle stop condition in the present embodiment is that the vehicle speed based on the detection signal from the vehicle speed sensor 7 is 0 km / h, and the stop lamp signal indicates the on state. In addition, the idle stop return condition in the present embodiment is that the stop lamp signal is in an off state.

さらにマイコン21は、アイドルストップ制御によるエンジン停止後に、上記アイドルストップ復帰条件が成立したか否かを判断し、アイドルストップ復帰条件が成立した場合に再始動要求フラグFrをセットするともに、アイドルストップ復帰条件が非成立の場合に再始動要求フラグFrをクリアする再始動要求処理を、予め設定された処理周期(本実施形態では8ms)が経過する毎に実行するように構成されている。   Further, the microcomputer 21 determines whether or not the above-mentioned idle stop return condition is satisfied after the engine is stopped by the idle stop control. The restart request processing for clearing the restart request flag Fr when the condition is not satisfied is configured to be executed every time a preset processing cycle (8 ms in the present embodiment) elapses.

ここで、アイドルストップ制御処理の手順を図2を用いて説明する。図2はアイドルストップ制御処理を示すフローチャートである。このアイドルストップ制御処理は、マイコン21が起動(電源オン)している間に繰り返し実行される処理である。   Here, the procedure of the idle stop control process will be described with reference to FIG. FIG. 2 is a flowchart showing the idle stop control process. This idle stop control process is a process repeatedly executed while the microcomputer 21 is activated (powered on).

このアイドルストップ制御処理が実行されると、マイコン21は、まずS10にて、アイドルストップ中であるか否かを示すアイドルストップ中フラグFiがセットされているか否かを判断する。ここで、アイドルストップ中フラグFiがセットされていない場合には(S10:NO)、S20にて、予め設定されたアイドルストップ条件が成立したか否かを判断する。   When the idle stop control process is executed, the microcomputer 21 first determines in S10 whether or not an idle stop flag Fi indicating whether or not the idle stop is being performed is set. If the idle stop flag Fi is not set (S10: NO), it is determined in S20 whether a preset idle stop condition is satisfied.

ここで、アイドルストップ条件が成立していない場合には(S20:NO)、アイドルストップ制御処理を一旦終了する。一方、アイドルストップ条件が成立している場合には(S20:YES)、S30にて、EEPROM22へのデータ書込みが可能であるか否かを判定するために予め設定されたメモリ更新条件が成立しているか否かを判断する。本実施形態において、上記メモリ更新条件は、バッテリ電圧VBが予め設定された判定値以上であることである。   Here, when the idle stop condition is not satisfied (S20: NO), the idle stop control process is temporarily ended. On the other hand, if the idle stop condition is satisfied (S20: YES), in S30, a memory update condition set in advance to determine whether data can be written to the EEPROM 22 is satisfied. Judge whether or not. In the present embodiment, the memory update condition is that the battery voltage VB is equal to or higher than a predetermined determination value.

ここで、メモリ更新条件が成立していない場合には(S30:NO)、アイドルストップ制御処理を一旦終了する。一方、メモリ更新条件が成立している場合には(S30:YES)、S40にて、EEPROM22に書き込むデータとして予め設定されている書込対象データのうちで、マイコン21のRAM33上で更新されており、且つ、この更新がEEPROM22に反映されていないもの(以下、更新未反映書込対象データという)があるか否かを判断する。なお本実施形態において、書込対象データは、フリーズフレームデータ、イモビ識別コード、パーマネントDTC、総走行距離、MIL積算距離、および電子スロットル全閉学習値などである。   Here, when the memory update condition is not satisfied (S30: NO), the idle stop control process is temporarily ended. On the other hand, when the memory update condition is satisfied (S30: YES), the update is performed on the RAM 33 of the microcomputer 21 among the write target data set in advance as data to be written to the EEPROM 22 in S40. In addition, it is determined whether or not there is data in which this update is not reflected in the EEPROM 22 (hereinafter referred to as update-unreflected write target data). In the present embodiment, the data to be written is freeze frame data, immobility identification code, permanent DTC, total travel distance, MIL integrated distance, electronic throttle fully closed learning value, and the like.

ここで、更新未反映書込対象データがない場合には(S40:NO)、アイドルストップ制御処理を一旦終了する。一方、更新未反映書込対象データがある場合には(S40:YES)、S50にて、更新未反映書込対象データをEEPROM22に書き込む。さらにS60にて、エンジンを自動停止させる。そしてS70にて、アイドルストップ中フラグFiをセットし、アイドルストップ制御処理を一旦終了する。   Here, when there is no update unreflected write target data (S40: NO), the idle stop control process is temporarily ended. On the other hand, if there is update-unreflected write target data (S40: YES), the update-unreflected write target data is written to the EEPROM 22 in S50. In S60, the engine is automatically stopped. In S70, an idle stop flag Fi is set, and the idle stop control process is temporarily terminated.

またS10にて、アイドルストップ中フラグFiがセットされている場合には(S10:YES)、S80にて、再始動要求フラグFrがセットされているか否かを判断する。ここで、再始動要求フラグFrがセットされていない場合には(S80:NO)、S90にて、S40と同様に、更新未反映書込対象データがあるか否かを判断する。   If the idle stop flag Fi is set in S10 (S10: YES), it is determined in S80 whether the restart request flag Fr is set. If the restart request flag Fr is not set (S80: NO), it is determined in S90 whether there is data that has not been updated yet, as in S40.

ここで、更新未反映書込対象データがない場合には(S90:NO)、アイドルストップ制御処理を一旦終了する。一方、更新未反映書込対象データがある場合には(S90:NO)、S100にて、更新未反映書込対象データをEEPROM22に書き込むための所要時間(以下、データ書込時間という)を算出する。具体的には、1バイトのデータをEEPROM22に書き込むための所要時間(以下、単位書込所要時間という)に、更新未反映書込対象データのバイト数を乗ずることによりデータ書込時間を算出する。本実施形態では、単位書込所要時間を2msと設定している。このため、例えば、更新未反映書込対象データのデータ量が10バイトである場合には、データ書込時間は20msと算出される。但し、更新未反映書込対象データのうち、1バイト毎に分割されてEEPROM22に書き込まれても問題がないデータ(例えば、総走行距離)を対象としてデータ書込時間を算出する。   If there is no update-unreflected write target data (S90: NO), the idle stop control process is temporarily terminated. On the other hand, if there is update-unreflected write target data (S90: NO), the required time for writing the update-unreflected write target data to the EEPROM 22 (hereinafter referred to as data write time) is calculated in S100. To do. Specifically, the data writing time is calculated by multiplying the time required for writing 1-byte data into the EEPROM 22 (hereinafter referred to as unit writing required time) by the number of bytes of the update-unreflected write target data. . In this embodiment, the unit writing required time is set to 2 ms. For this reason, for example, when the data amount of the update unreflected write target data is 10 bytes, the data write time is calculated as 20 ms. However, the data writing time is calculated with respect to data (for example, total travel distance) that is not problematic even if it is divided into 1-byte data and written to the EEPROM 22 among the update-unreflected data to be written.

その後S110にて、S100で算出されたデータ書込み時間が再始動要求処理の処理周期(本実施形態では8ms)よりも短いか否かを判断する。ここで、データ書込み時間が再始動要求処理の処理周期よりも短い場合には(S110:YES)、S120にて、更新未反映書込対象データの全てをEEPROM22に書き込み、アイドルストップ制御処理を一旦終了する。一方、データ書込み時間が再始動要求処理の処理周期以上である場合には(S110:NO)、S130にて、再始動要求処理の処理周期内で書込み可能なデータ量分(本実施形態では、4バイト分)の更新未反映書込対象データをEEPROM22に書き込み、アイドルストップ制御処理を一旦終了する。   Thereafter, in S110, it is determined whether or not the data write time calculated in S100 is shorter than the processing cycle of restart request processing (8 ms in this embodiment). Here, when the data write time is shorter than the processing cycle of the restart request process (S110: YES), in S120, all the update unreflected write target data is written to the EEPROM 22, and the idle stop control process is temporarily performed. finish. On the other hand, if the data write time is equal to or longer than the restart request processing cycle (S110: NO), in S130, the amount of data that can be written within the restart request processing cycle (in this embodiment, (4 bytes) unupdated write target data is written to the EEPROM 22 and the idle stop control process is temporarily terminated.

またS80にて、再始動要求フラグFrがセットされている場合には(S80:YES)、S140にて、エンジンを再始動させ、その後S150にて、アイドルストップ中フラグFiをクリアし、アイドルストップ制御処理を一旦終了する。   If the restart request flag Fr is set in S80 (S80: YES), the engine is restarted in S140, and then the idle stop flag Fi is cleared in S150, and the idle stop is performed. The control process is temporarily terminated.

このように構成されたECU1は、予め設定されたアイドルストップ条件が成立するとエンジンを自動停止させるとともにエンジンの停止後に予め設定されたアイドルストップ復帰条件が成立するとエンジンを再始動させるアイドルストップ機能を有する車両に搭載され、データの読み出し及び書き込みが可能な揮発性メモリであるRAM33と、記憶内容の書き換えが可能な不揮発性メモリであるEEPROM22とを備え、アイドルストップ条件が成立してから、アイドルストップ復帰条件の成立によりエンジンが再始動するまでの間に、RAM33に記憶されるデータのうちEEPROM22に書き込むデータとして予め設定されている書込対象データをEEPROM22に記憶する(S10〜S50,S80〜S130)。   The ECU 1 configured as described above has an idle stop function of automatically stopping the engine when a preset idle stop condition is satisfied and restarting the engine when a preset idle stop return condition is satisfied after the engine is stopped. A RAM 33 that is a volatile memory that is mounted on a vehicle and can read and write data, and an EEPROM 22 that is a non-volatile memory that can rewrite the stored contents. Before the engine is restarted due to the satisfaction of the condition, write target data set in advance as data to be written in the EEPROM 22 among the data stored in the RAM 33 is stored in the EEPROM 22 (S10 to S50, S80 to S130). .

このように構成されたECU1では、アイドルストップ機能による再始動の前に書込対象データをEEPROM22に記憶する。このため、アイドルストップ機能の再始動時におけるクランキングによるバッテリ電圧低下に起因したECU1のリセットで、RAM33に記憶されている書込対象データが、EEPROM22に記憶される前に消失してしまうという事態の発生を抑制することができる。   In the ECU 1 configured as described above, the write target data is stored in the EEPROM 22 before restart by the idle stop function. For this reason, when the ECU 1 is reset due to the battery voltage drop due to the cranking at the restart of the idle stop function, the write target data stored in the RAM 33 is lost before being stored in the EEPROM 22. Can be suppressed.

さらに、IGSW2をオンにした後に車両が走行し、その後IGSW2のオフまでの間にアイドルストップ機能が作動すれば、RAM33に記憶されている書込対象データが、EEPROM22に記憶される。このため、メインリレー3に異常が発生し、IGSW2のオフ後において、揮発性メモリに記憶されている不揮発性メモリ記憶対象データを不揮発性メモリに記憶できない場合であっても、揮発性メモリに記憶されている不揮発性メモリ記憶対象データが、不揮発性メモリに記憶される前に消失してしまうという事態の発生を抑制することができる。   Further, if the vehicle travels after IGSW 2 is turned on and the idle stop function is activated after the IGSW 2 is turned off, the write target data stored in the RAM 33 is stored in the EEPROM 22. For this reason, even if an abnormality occurs in the main relay 3 and the non-volatile memory storage target data stored in the volatile memory cannot be stored in the non-volatile memory after the IGSW 2 is turned off, it is stored in the volatile memory. It is possible to suppress the occurrence of the situation where the stored nonvolatile memory storage target data is lost before being stored in the nonvolatile memory.

また、アイドルストップ条件の成立後から、アイドルストップ条件の成立によりエンジンが停止するまでの間に、書込対象データをEEPROM22に記憶する(S10〜S50)。すなわち、エンジン停止前であるので、アイドルストップ機能の再始動が発生しない状態、すなわち、クランキングによるECU1のリセットが発生しない安定した状態で、書込対象データをEEPROM22に記憶することができる。   Further, the write target data is stored in the EEPROM 22 after the idle stop condition is established and before the engine is stopped due to the establishment of the idle stop condition (S10 to S50). That is, since the engine is not stopped, the write target data can be stored in the EEPROM 22 in a state where the idle stop function is not restarted, that is, in a stable state where the ECU 1 is not reset by cranking.

また、アイドルストップ条件の成立によりエンジンが停止してから、アイドルストップ復帰条件の成立によりエンジンが再始動するまでの間に、書込対象データをEEPROM22に記憶するようにしてもよい(S80〜S130)。すなわち、エンジンが再始動する前であるので、書込対象データをEEPROM22に書き込んでいる最中に再始動時のクランキングが発生するという状況の発生を回避することができる。つまり、クランキングによる電源瞬断およびノイズ等の影響を受けない状態で書込対象データをEEPROM22に書き込むことができる。   Further, the write target data may be stored in the EEPROM 22 between the time when the engine is stopped due to the establishment of the idle stop condition and the time when the engine is restarted due to the establishment of the idle stop return condition (S80 to S130). ). That is, since it is before the engine is restarted, it is possible to avoid the occurrence of a situation in which cranking at the time of restart occurs while the write target data is being written to the EEPROM 22. In other words, the write target data can be written to the EEPROM 22 without being affected by the power supply interruption and noise caused by the cranking.

また、アイドルストップ機能で、アイドルストップ復帰条件が成立したか否かの判定を、予め設定された処理周期(8ms)毎に実行し、EEPROM22に記憶する全ての書込対象データを、処理周期内でEEPROM22に記憶することが可能なデータ量以内で分割し、分割した書込対象データ毎にEEPROM22に記憶する(S100〜S130)。これにより、処理周期毎に判定されるアイドルストップ復帰条件が成立する前に、分割した書込対象データの書き込みを完了することができるため、書込対象データをEEPROM22に書き込んでいる最中に、再始動時におけるクランキングが発生するという状況の発生を回避することができる。   In addition, it is determined whether or not the idle stop return condition is satisfied by the idle stop function every preset processing cycle (8 ms), and all the write target data stored in the EEPROM 22 is stored within the processing cycle. The data is divided within the amount of data that can be stored in the EEPROM 22, and the divided write target data is stored in the EEPROM 22 (S100 to S130). Thereby, since the writing of the divided write target data can be completed before the idle stop return condition determined for each processing cycle is satisfied, the write target data is being written to the EEPROM 22. Occurrence of a situation in which cranking occurs at the time of restart can be avoided.

また、書込対象データのうちRAM33上で記憶内容が更新されたものを不揮発性メモリに記憶する(S40,S90)。これにより、書込対象データの全てを一括してEEPROM22に記憶する場合と比較して、EEPROM22に書き込むデータ量を少なくすることができ、EEPROM22へのデータ書込時間を短くすることができるとともに、データ書込量の増加によるEEPROM22の劣化を抑制することができる。   Further, the data to be written in the RAM 33 is stored in the nonvolatile memory among the write target data (S40, S90). As a result, the amount of data to be written to the EEPROM 22 can be reduced and the time for writing data to the EEPROM 22 can be shortened as compared with the case where all of the write target data is stored in the EEPROM 22 at once. Degradation of the EEPROM 22 due to an increase in the data write amount can be suppressed.

以上説明した実施形態において、ECU1は本発明における車両用電子制御装置、RAM33は本発明における揮発性メモリ、EEPROM22は本発明における不揮発性メモリ、S10〜S50及びS80〜S130の処理は本発明における記憶実行手段、アイドルストップ条件は本発明における自動停止条件、アイドルストップ復帰条件は本発明における自動始動条件、書込対象データは本発明における不揮発性メモリ記憶対象データである。   In the embodiment described above, the ECU 1 is the vehicle electronic control device according to the present invention, the RAM 33 is the volatile memory according to the present invention, the EEPROM 22 is the non-volatile memory according to the present invention, and the processes of S10 to S50 and S80 to S130 are stored in the present invention. The execution means and the idle stop condition are the automatic stop condition in the present invention, the idle stop return condition is the automatic start condition in the present invention, and the write target data is the nonvolatile memory storage target data in the present invention.

(第2実施形態)
以下に本発明の第2実施形態を説明する。なお、第2実施形態では、第1実施形態と異なる部分のみを説明する。
(Second Embodiment)
The second embodiment of the present invention will be described below. In the second embodiment, only parts different from the first embodiment will be described.

第2実施形態のECU1は、アイドルストップ制御処理が変更された点以外は第1実施形態と同じである。図3は、第2実施形態のアイドルストップ制御処理を示すフローチャートである。   The ECU 1 of the second embodiment is the same as that of the first embodiment except that the idle stop control process is changed. FIG. 3 is a flowchart showing an idle stop control process according to the second embodiment.

第2実施形態のアイドルストップ制御処理は、図3に示すように、S100〜S130の処理が省略された点と、S210の処理が追加された点以外は第1実施形態と同じである。   As shown in FIG. 3, the idle stop control process of the second embodiment is the same as that of the first embodiment except that the processes of S100 to S130 are omitted and the process of S210 is added.

すなわち、S90にて、更新未反映書込対象データがあると判断した場合に(S90:YES)、S210にて、1バイト分の更新未反映書込対象データをEEPROM22に書き込み、アイドルストップ制御処理を一旦終了する。   That is, when it is determined in S90 that there is update-unreflected write target data (S90: YES), one byte of update-unreflected write target data is written to the EEPROM 22 in S210, and idle stop control processing is performed. Is temporarily terminated.

このように構成されたECU1では、書込対象データをEEPROM22に記憶している途中にアイドルストップ復帰条件が成立した場合に、その動作を中断する。これによって、書込対象データをEEPROM22に書き込んでいる最中に、再始動時におけるクランキングが発生するという状況の発生を回避することができる。   In the ECU 1 configured as described above, the operation is interrupted when the idle stop return condition is satisfied while the write target data is being stored in the EEPROM 22. As a result, it is possible to avoid the occurrence of a situation in which cranking occurs at the time of restart while the write target data is being written to the EEPROM 22.

以上、本発明の一実施例について説明したが、本発明は上記実施例に限定されるものではなく、本発明の技術的範囲に属する限り種々の形態を採ることができる。
例えば上記実施形態においては、アイドルストップ条件の成立後から、アイドルストップ条件の成立によりエンジンが停止するまでの間に書込対象データをEEPROM22に記憶する処理(以下、エンジン停止前書込処理という)と、アイドルストップ条件の成立によりエンジンが停止してから、アイドルストップ復帰条件の成立によりエンジンが再始動するまでの間に書込対象データをEEPROM22に記憶する処理(以下、再始動前書込処理という)の両方を実行するものを示したが、エンジン停止前書込処理および再始動前書込処理の何れか一方を実行するものであってもよい。
As mentioned above, although one Example of this invention was described, this invention is not limited to the said Example, As long as it belongs to the technical scope of this invention, a various form can be taken.
For example, in the above-described embodiment, a process for storing the write target data in the EEPROM 22 after the idle stop condition is established and before the engine is stopped due to the establishment of the idle stop condition (hereinafter referred to as a pre-engine stop writing process). The process of storing the write target data in the EEPROM 22 after the engine is stopped due to the establishment of the idle stop condition and before the engine is restarted due to the establishment of the idle stop return condition (hereinafter referred to as a pre-restart writing process). However, it is also possible to execute either one of the pre-engine stop writing process and the pre-restart writing process.

1…ECU、2…IGSW、3…メインリレー、4…バッテリ、5…STASW、6…ストップランプスイッチ、7…車速センサ、8…スタータ、21…マイコン、22…EEPROM、23…入力回路、24…メインリレー駆動回路、25…スタータ駆動回路、31…CPU、32…ROM、33…RAM、34…I/O   DESCRIPTION OF SYMBOLS 1 ... ECU, 2 ... IGSW, 3 ... Main relay, 4 ... Battery, 5 ... STASW, 6 ... Stop lamp switch, 7 ... Vehicle speed sensor, 8 ... Starter, 21 ... Microcomputer, 22 ... EEPROM, 23 ... Input circuit, 24 ... Main relay drive circuit, 25 ... Starter drive circuit, 31 ... CPU, 32 ... ROM, 33 ... RAM, 34 ... I / O

Claims (1)

予め設定された自動停止条件が成立するとエンジンを停止させるとともに前記エンジンの停止後に予め設定された自動始動条件が成立すると前記エンジンを再始動させるアイドルストップ機能を有する車両に搭載される車両用電子制御装置であって、
データの読み出し及び書き込みが可能な揮発性メモリと、
記憶内容の書き換えが可能な不揮発性メモリと、
前記自動停止条件が成立してから、前記自動始動条件の成立により前記エンジンが再始動するまでの間において、当該車両用電子制御装置への電源供給が維持されている場合に、前記揮発性メモリに記憶されるデータのうち前記不揮発性メモリに記憶させるデータとして予め設定されたデータである不揮発性メモリ記憶対象データを前記不揮発性メモリに記憶する記憶実行手段とを備え、
前記記憶実行手段は、
前記自動停止条件の成立後から、前記自動停止条件の成立により前記エンジンが停止するまでの間に、前記不揮発性メモリ記憶対象データを前記不揮発性メモリに記憶する
ことを特徴とする車両用電子制御装置。
Electronic control for a vehicle mounted on a vehicle having an idle stop function for stopping the engine when a preset automatic stop condition is satisfied and restarting the engine when a preset automatic start condition is satisfied after the engine is stopped A device,
A volatile memory capable of reading and writing data;
Non-volatile memory capable of rewriting stored contents,
When the power supply to the electronic control unit for the vehicle is maintained between the time when the automatic stop condition is satisfied and the time when the engine is restarted when the automatic start condition is satisfied, the volatile memory Storage execution means for storing, in the nonvolatile memory, nonvolatile memory storage target data that is preset as data to be stored in the nonvolatile memory among the data stored in
The storage execution means
The vehicle electronic control characterized in that the nonvolatile memory storage target data is stored in the nonvolatile memory after the automatic stop condition is satisfied and before the engine is stopped due to the establishment of the automatic stop condition. apparatus.
JP2011113655A 2011-05-20 2011-05-20 Electronic control device for vehicle Active JP5664454B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011113655A JP5664454B2 (en) 2011-05-20 2011-05-20 Electronic control device for vehicle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011113655A JP5664454B2 (en) 2011-05-20 2011-05-20 Electronic control device for vehicle

Publications (2)

Publication Number Publication Date
JP2012241645A JP2012241645A (en) 2012-12-10
JP5664454B2 true JP5664454B2 (en) 2015-02-04

Family

ID=47463620

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011113655A Active JP5664454B2 (en) 2011-05-20 2011-05-20 Electronic control device for vehicle

Country Status (1)

Country Link
JP (1) JP5664454B2 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140102962A (en) * 2013-02-15 2014-08-25 콘티넨탈 오토모티브 시스템 주식회사 Method for saving data when opening ignition key
JP6418928B2 (en) * 2014-12-04 2018-11-07 ボッシュ株式会社 Time-series freeze frame data acquisition method and vehicle control device
JP6444847B2 (en) * 2015-11-25 2018-12-26 日立オートモティブシステムズ株式会社 Electronic control device for vehicle
JP6193417B2 (en) * 2016-02-10 2017-09-06 本田技研工業株式会社 Idling stop device
JP6524370B2 (en) * 2017-04-19 2019-06-05 三菱電機株式会社 Data backup controller
CN111273853A (en) * 2018-12-04 2020-06-12 宝沃汽车(中国)有限公司 Vehicle EEPROM data storage method, device, equipment and medium
JP7279534B2 (en) * 2019-06-18 2023-05-23 株式会社デンソー Data storage controller and data storage control system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002041367A (en) * 2000-07-26 2002-02-08 Denso Corp Vehicle controller
US6347276B1 (en) * 2000-09-13 2002-02-12 Detroit Diesel Corporation Method and system for reducing the time required to power down engine controller with faulty EEPROM
JP4501776B2 (en) * 2005-05-20 2010-07-14 株式会社デンソー Control device for fuel supply system

Also Published As

Publication number Publication date
JP2012241645A (en) 2012-12-10

Similar Documents

Publication Publication Date Title
JP5664454B2 (en) Electronic control device for vehicle
JP5176728B2 (en) Electronic control device for vehicle
JP4937066B2 (en) Electronic control device
US6401163B1 (en) Apparatus and method for rewriting data from volatile memory to nonvolatile memory
JP2010198307A (en) Controller for automobile
JP3969278B2 (en) Electronic control unit
JP4706778B2 (en) Electronic control device and vehicle control system
JP2000020178A (en) Electronic controller
JP5598447B2 (en) Starter control device
JP6323044B2 (en) Vehicle information recording apparatus and program
US8606481B2 (en) Data write device and data write method
WO2018079537A1 (en) Electronic control unit and data protection method therefor
JP5527294B2 (en) Idle stop control device
JP2002323902A (en) Electronic controller
JP6444847B2 (en) Electronic control device for vehicle
KR101832278B1 (en) Method for diagnosing engine off timer
JP4375105B2 (en) Microcomputer monitoring device failure diagnosis method and vehicle electronic control device
JP2004151944A (en) Method for writing data in non-volatile storage device, its program and device, and onboard electronic controller
JP4760103B2 (en) Vehicle information backup device
JP6207991B2 (en) Vehicle control device
JP2013177822A (en) Vehicle control device and vehicle control system
US7103459B2 (en) Vehicular abnormality detecting device
JP2007162586A (en) On-vehicle control device
JP4767278B2 (en) In-vehicle electronic control unit
JP2018092241A (en) Onboard electronic control device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130807

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140225

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140227

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140417

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140909

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20141014

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20141111

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20141124

R151 Written notification of patent or utility model registration

Ref document number: 5664454

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250