JP2013151220A - On-vehicle control device - Google Patents
On-vehicle control device Download PDFInfo
- Publication number
- JP2013151220A JP2013151220A JP2012012974A JP2012012974A JP2013151220A JP 2013151220 A JP2013151220 A JP 2013151220A JP 2012012974 A JP2012012974 A JP 2012012974A JP 2012012974 A JP2012012974 A JP 2012012974A JP 2013151220 A JP2013151220 A JP 2013151220A
- Authority
- JP
- Japan
- Prior art keywords
- battery
- power supply
- execution history
- history data
- executed
- 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.)
- Pending
Links
Images
Landscapes
- Combined Controls Of Internal Combustion Engines (AREA)
Abstract
Description
本発明は、バッテリが外されたことに応じて保持データを初期化する車載制御装置に関する。 The present invention relates to an in-vehicle control device that initializes retained data in response to removal of a battery.
図6は、特許文献1など開示された従来の車載制御装置のマイコンと電源ICに係る構成を示している。車両のエンジンを制御する電子制御装置1(以下、ECU1と称す)は、イグニッションスイッチ2がオンされると駆動回路3によりメインリレー4をオン駆動する。メイン電源回路5は、バッテリ6からメインリレー4の接点を通して与えられる電圧VBによりメイン電源電圧VOMを生成し、マイコン7のCPUを含むメイン処理部8に供給する。
FIG. 6 shows a configuration related to a microcomputer and a power supply IC of a conventional in-vehicle control device disclosed in
マイコン7には、メイン電源電圧VOM(5V)で動作するメイン処理部8の他に、例えばRAM9のようにサブ電源電圧VOS(3V/3.3V)で動作する低電圧回路処理部も備えている。そこで、サブ電源回路10は、バッテリ6からメインリレー4の接点を通して与えられる電圧VBによりサブ電源電圧VOS1(3.3V)を生成し、RAM9を含む低電圧回路処理部に供給する。
In addition to the
RAM9は、ダイアグデータ、各種センサの学習データなどを記憶しており、イグニッションスイッチ2がオフしている間もこれらのデータを保持し続ける必要がある。サブ電源回路11は、バッテリ6から常時接続の専用配線を通して与えられる電圧VBATTによりサブ電源電圧VOS2(3V)を生成する。サブ電源回路10が定電圧出力動作中は、サブ電源回路11は出力動作を停止する。
The RAM 9 stores diagnosis data, learning data of various sensors, and the like, and it is necessary to keep these data while the
RAM9に記憶されたデータを保持するため、車両を使用しない時でもサブ電源回路11を動作させなければならない。このため、常時接続された上記専用配線が必要になる。また、車両にはECU1をはじめ多数のECUが搭載されているので、各ECUにおけるメモリバックアップのための暗電流が増加するとバッテリ上がりの原因となる。そこで、専用配線をなくすとともに、従来のRAM9に替えてフラッシュメモリやEEPROMなどの不揮発性メモリを用いることが行われている。
In order to retain the data stored in the RAM 9, the sub
近年、車載型故障診断装置であるOBD(On Board Diagnosis System)の搭載を義務付ける法規制が進んでいる。OBDは、所定の診断処理を実行し、故障と確定した時には故障内容を記憶保持するとともに、ウォーニングランプを点灯して運転者に知らせる装置である。診断項目としては、例えば触媒劣化、エンジン失火、酸素センサまたは空燃比センサの不良、排気ガス再循環システム(EGR)の不良などが挙げられる。記憶されるデータは、過去の故障診断の実施履歴データ、故障時のエンジン関連データなどである。 In recent years, laws and regulations that require the installation of an OBD (On Board Diagnosis System), which is an in-vehicle failure diagnosis device, have been advanced. The OBD is a device that executes a predetermined diagnosis process and stores and holds the content of the failure when it is determined that the failure has occurred, and lights a warning lamp to notify the driver. Examples of diagnostic items include catalyst deterioration, engine misfire, oxygen sensor or air-fuel ratio sensor failure, exhaust gas recirculation system (EGR) failure, and the like. The stored data includes past failure diagnosis execution history data, engine related data at the time of failure, and the like.
ウォーニングランプが点灯したためディーラーや修理工場に車両が持ち込まれると、通常はECU1に故障診断ツールが接続されてより詳しいデータ解析が行われる。そして、部品交換などの修理がされたときには、故障診断ツールを用いて不揮発性メモリのダイアグデータや学習データの初期化が行われる。しかし、故障診断ツールを利用できない状況下或いはOBDが搭載されていない車両に対しては、より簡易な初期化方法として、ECU1からバッテリ6を外して再接続した後イグニッションスイッチをIGONの位置にした時(またはその後IGOFFとした時)に、不揮発性メモリに記憶されるデータを初期化する手法が用いられる。
When the vehicle is brought to a dealer or a repair shop because the warning lamp is turned on, a failure diagnosis tool is usually connected to the
上述した車載制御装置は、バッテリ電圧としきい値とを比較することによりバッテリが外されたことを検出している。しかし、劣化が進んだバッテリまたは氷点下などの非常に低い温度環境で用いられるバッテリは内部抵抗が増加し、スタータの駆動時に電圧が大きく低下して、バッテリが外されたと誤判定する虞がある。誤判定が生じると、保持されるべきデータが初期化されるという深刻な結果をもたらす。 The vehicle-mounted control apparatus mentioned above has detected that the battery was removed by comparing a battery voltage with a threshold value. However, a battery that has been deteriorated or a battery that is used in a very low temperature environment such as below freezing has an increased internal resistance, and when the starter is driven, there is a possibility that the voltage is greatly reduced, and it is erroneously determined that the battery has been removed. If a misjudgment occurs, it has the serious consequence that the data to be retained is initialized.
本発明は上記事情に鑑みてなされたもので、その目的は、スタータの駆動時に保持データを誤って初期化することを回避可能な車載制御装置を提供することにある。 The present invention has been made in view of the above circumstances, and an object of the present invention is to provide an in-vehicle control device capable of avoiding erroneous initialization of retained data when a starter is driven.
請求項1に記載した車載制御装置は、イグニッションスイッチ、バッテリからの電源供給路を開閉する電源供給用リレー、およびエンジンを始動させるスタータを備えた車両に搭載されている。車載制御装置は、書き換え可能な不揮発性メモリ、バッテリ外れ検出回路および制御手段を備えている。バッテリ外れ検出回路は、バッテリからの電圧がしきい値以下になったことを条件としてバッテリが外されたことを示す検出信号を出力し、リセット信号が入力されたことを条件としてバッテリが外されていないことを示す検出信号を出力する。 The vehicle-mounted control apparatus according to the first aspect is mounted on a vehicle including an ignition switch, a power supply relay that opens and closes a power supply path from the battery, and a starter that starts the engine. The in-vehicle control device includes a rewritable nonvolatile memory, a battery detachment detection circuit, and a control unit. The battery detachment detection circuit outputs a detection signal indicating that the battery has been removed on condition that the voltage from the battery has fallen below the threshold, and the battery is removed on condition that the reset signal has been input. A detection signal indicating that the signal has not been output is output.
制御手段は、バッテリが接続されている状態でイグニッションスイッチがオンされた時の電源リセットまたはスタータの駆動に起因する電圧低下による電源リセットからの立ち上がり時に、スタータの駆動に先立ってイニシャル処理を実行する。また、イグニッションスイッチがオフされると、シャットダウン処理を実行してから電源供給用リレーをオフする。実行履歴データは、制御手段による検出信号の読み込み処理とバッテリ外れの判定処理との実行状況を示す実行履歴情報であり、データ内容として未実行または実行済を持つ。この実行履歴データは、不揮発性メモリに記憶される。保持データは、イグニッションスイッチがオフの期間も不揮発性メモリに記憶して常時保持され、バッテリが外されたことにより初期化されるデータである。 The control means executes an initial process prior to driving the starter at the time of rising from the power reset when the ignition switch is turned on while the battery is connected or a voltage drop caused by driving the starter. . Further, when the ignition switch is turned off, the power supply relay is turned off after the shutdown process is executed. The execution history data is execution history information indicating the execution status of the detection signal reading process and the battery detachment determination process performed by the control means, and has the data content not executed or executed. This execution history data is stored in a nonvolatile memory. The retained data is data that is always stored in the nonvolatile memory even when the ignition switch is off, and is initialized when the battery is removed.
制御手段は、シャットダウン処理において実行履歴データに未実行を設定して不揮発性メモリに書き込む。制御手段は、イニシャル処理において不揮発性メモリから実行履歴データを読み出す。ここで、読み出した実行履歴データが未実行に設定されている場合とは、イグニッションスイッチがオンされた場合であって、前回のイグニッションオフから検出信号の読み込みおよびスタータの駆動がなされていない場合である。 The control means sets the execution history data to non-executed in the shutdown process and writes it to the nonvolatile memory. The control means reads execution history data from the nonvolatile memory in the initial process. Here, the case where the read execution history data is set to non-execution is when the ignition switch is turned on, and when the detection signal is not read and the starter is not driven since the previous ignition off. is there.
この場合は、検出信号の読み込み処理とイグニッションスイッチがオフの期間にバッテリが外されたか否か(バッテリ外れ)の判定処理とを実行すべき場合であるので、これらの処理を実行して実行履歴データを実行済に設定して不揮発性メモリに書き込む。そして、バッテリが外されたと判定したときには保持データを初期化する。これにより、故障診断ツール(専用ツール)がないときでも容易に保持データを初期化できる。また、検出信号を判定に用いたので、次のバッテリ外れに備えてバッテリ外れ検出回路にリセット信号を出力する。 In this case, since the reading process of the detection signal and the determination process of whether or not the battery has been removed (battery removal) should be executed during the period when the ignition switch is off, these processes are executed to execute the execution history. Set data as executed and write to non-volatile memory. When it is determined that the battery has been removed, the retained data is initialized. Thereby, even when there is no failure diagnosis tool (dedicated tool), the retained data can be easily initialized. Since the detection signal is used for the determination, a reset signal is output to the battery removal detection circuit in preparation for the next battery removal.
一方、読み出した実行履歴データが実行済に設定されている場合とは、イグニッションスイッチがオンされて検出信号の読み込み処理とバッテリ外れの判定処理とを実行した後、イグニッションスイッチがオフされていないにもかかわらず電源リセットが生じた場合である。つまり、スタータ駆動等による異常な電圧低下が生じた場合である。この場合には、バッテリが外されていないにもかかわらず、バッテリ外れ検出回路がバッテリ外れを示す検出信号を出力している蓋然性が高い。そこで、制御手段は、検出信号の読み込み処理とバッテリ外れの判定処理とを実行することなく、バッテリ外れ検出回路にリセット信号を出力する。 On the other hand, when the read execution history data is set to executed, the ignition switch is turned on, the detection signal reading process and the battery removal determination process are executed, and the ignition switch is not turned off. However, this is a case where a power reset occurs. That is, an abnormal voltage drop occurs due to starter driving or the like. In this case, there is a high probability that the battery detachment detection circuit outputs a detection signal indicating battery detachment even though the battery is not removed. Therefore, the control means outputs a reset signal to the battery detachment detection circuit without executing the detection signal reading process and the battery detachment determination process.
こうした制御により、スタータの駆動時にバッテリ電圧が低下して、バッテリ外れ検出回路がバッテリ外れを示す検出信号を出力した場合でも、バッテリが外されたと誤判定することを回避することができる。その結果、バッテリが外されていないのに保持データを誤って初期化することを防止できる。 Such control can avoid erroneous determination that the battery has been removed even when the battery voltage drops when the starter is driven and the battery removal detection circuit outputs a detection signal indicating battery removal. As a result, it is possible to prevent the stored data from being erroneously initialized even if the battery is not removed.
請求項2に記載した手段によれば、制御手段は、イニシャル処理において、実行履歴データを実行済に設定して不揮発性メモリに書き込む際に、バッテリが外されたか否かの判定結果も併せて書き込む。そして、イニシャル処理において、不揮発性メモリから読み出した実行履歴データが実行済で且つバッテリが外されたとの判定結果である場合、すなわちバッテリが外された後の最初のイグニッションスイッチのオン期間でスタータの駆動等による異常な電圧リセットが生じた場合には、保持データを再度初期化し直す。これにより、一旦初期化された保持データが電圧低下により不定となることを確実に防止できる。
According to the means described in
請求項3に記載した手段によれば、制御手段は、保持データを揮発性メモリに記憶しておき、シャットダウン処理において不揮発性メモリに書き込む。制御手段は、イニシャル処理において、保持データの初期化を揮発性メモリに記憶される保持データに対して行う。また、不揮発性メモリから読み出した実行履歴データが未実行で且つバッテリが外されていないとの判定結果である場合に、不揮発性メモリから揮発性メモリに保持データを読み出す。これにより、処理速度を高められる。さらに、不揮発性メモリから読み出した実行履歴データが実行済で且つバッテリが外されていないとの判定結果である場合にも、不揮発性メモリから揮発性メモリに保持データを再度読み出す。これにより、一旦読み出された保持データが電圧低下により不定となることを確実に防止できる。
According to the means described in
請求項4に記載した手段によれば、スタータ駆動信号が入力されるとスタータを駆動するスタータ制御回路を備えている。制御手段は、スタート指令を入力すると、イニシャル処理が終了した後にスタータ駆動信号を出力する。これにより、イニシャル処理が終了する前にスタータが駆動されて電圧低下が生じることを防止できる。 According to a fourth aspect of the present invention, there is provided a starter control circuit for driving the starter when a starter drive signal is inputted. When the start command is input, the control means outputs a starter drive signal after the initial process is completed. As a result, it is possible to prevent the voltage from being lowered due to the starter being driven before the initial process is completed.
請求項5に記載した手段によれば、スタート指令を入力すると、少なくともイニシャル処理の処理時間だけ待ってからスタータの駆動を可能とする遅延回路を備えている。これにより、イニシャル処理が終了する前にスタータが駆動されて電圧低下が生じることを防止できる。
According to the means described in
請求項6に記載した手段によれば、車載制御装置とバッテリとの間に、イグニッションスイッチを介してバッテリの正側端子に接続される第1電源線、電源供給用リレーの常開接点を介してバッテリの正側端子に接続される第2電源線および電源供給用リレーのコイルを介してバッテリの正側端子に接続される第3電源線が設けられている。保持データは不揮発性メモリに記憶されるので、車載制御装置とバッテリとを直接繋ぐ専用配線を設ける必要がなく、暗電流も低減できる。
According to the means described in
請求項7に記載した手段によれば、バッテリ外れ検出回路は、第1ないし第3電源線の電圧のうち最も高い電圧がしきい値以下になったことを条件としてバッテリが外されたことを示す検出信号を出力する。これにより、上記専用配線が設けられていない場合でも、バッテリ外れを検出できる。 According to the means described in claim 7, the battery detachment detection circuit detects that the battery has been removed on condition that the highest voltage among the voltages of the first to third power supply lines is equal to or lower than the threshold value. The detection signal shown is output. Thereby, even when the dedicated wiring is not provided, it is possible to detect battery disconnection.
各実施形態において実質的に同一部分には同一符号を付して説明を省略する。
(第1の実施形態)
以下、第1の実施形態について図1ないし図4を参照しながら説明する。図1に示す電子制御装置21(以下、ECU21と称す)は、エンジン(内燃機関)を制御する車載制御装置である。車両には、バッテリ22、イグニッションスイッチ23、バッテリ22からの電源供給路(電源線29)を開閉するメインリレー24(電源供給用リレー)、エンジンをクランキングするスタータ25(スタータモータ)、スタータリレー26およびスタータスイッチ27が設けられている。スタータリレー26のコイル26bが通電されると、接点26aが閉じてバッテリ22からスタータ25に給電される。
In each embodiment, substantially the same parts are denoted by the same reference numerals and description thereof is omitted.
(First embodiment)
Hereinafter, a first embodiment will be described with reference to FIGS. 1 to 4. An electronic control device 21 (hereinafter referred to as ECU 21) shown in FIG. 1 is an in-vehicle control device that controls an engine (internal combustion engine). The vehicle includes a
ECU21の端子21a、21b、21cは、それぞれ電源線28、29、30に設けられた電源端子である。第1電源線28は、イグニッションスイッチ23を介してバッテリ22の正側端子に接続されている。第2電源線29は、メインリレー24の常開接点24aを介してバッテリ22の正側端子に接続されている。第3電源線30は、メインリレー24のコイル24bを介してバッテリ22の正側端子に接続されている。以下の説明において、これら電源線28、29、30の電圧をそれぞれVB1、VB2、VB3とし、バッテリ22の電圧をVBとする。ロードダンプなどにより生じるサージ電圧を抑制するため、各電源線とグランドとの間には必要に応じてダイオードやツェナーダイオードなど(図示せず)が接続されている。
ECU21は、電源IC31、マイコン32およびスタータ制御回路33を備えている。電源IC31は、電源線29の電圧VB2に基づいてメイン電源電圧VOM(5V)とサブ電源電圧VOS(3.3V)を生成してマイコン32に供給する。また、イグニッションスイッチ23がオンされた時にメインリレー24をオン駆動する。さらに、ECU21からバッテリ22が外されたか否かを示す検出信号Sbをマイコン32に出力する。
The
マイコン32は、CPUを主体としてメイン電源電圧VOMで動作するメイン処理部34(制御手段)と、RAM35(揮発性メモリ)とフラッシュメモリ(不揮発性メモリ)を含みサブ電源電圧VOSで動作する低電圧回路処理部を備えている。フラッシュメモリには、ダイアグデータや学習データなどの保持データを記憶し後述する初期化処理の対象となるフラッシュメモリ36と、エンジンの制御プログラム、保持データの初期値等を記憶して初期化処理の対象とならないフラッシュメモリ(図示せず)とから構成されている。
The
電源IC31において、リレー制御回路37は、電源線28の電圧VB1が立ち上がるとMOSFET38をオンしてメインリレー24をオン駆動する。このリレー制御回路37は、イグニッションスイッチ23がオフされた後も、マイコン32からHレベルの電源維持信号Shが入力されている間はMOSFET38をオンし続ける。
In the
メイン電源回路39は、電源線29の電圧VB2を入力してメイン電源電圧VOMを生成する。その構成は、基準電圧生成回路40、オペアンプ41、トランジスタ42および分圧抵抗43a、43b(電圧検出回路43)からなるシリーズレギュレータである。サブ電源回路44も、電源線29の電圧VB2を入力してサブ電源電圧VOSを生成する。その構成は、基準電圧生成回路40、オペアンプ45、トランジスタ46および分圧抵抗47a、47b(電圧検出回路47)からなるシリーズレギュレータである。
The main
バッテリ外れ検出回路48は、電源線28、29、30の電圧VB1、VB2、VB3のうち最も高い電圧がしきい値以下に低下した後再びしきい値を超えると、バッテリが外されたことを示すHレベルの検出信号Sbを出力する。バッテリ22が接続されていれば、イグニッションスイッチ23の状態にかかわらず電圧VB1、VB2、VB3の何れかはバッテリ電圧VBになっている。バッテリ外れ検出回路48は、マイコン32からリセット信号Srが入力されると、バッテリが外されていないことを示すLレベルの検出信号Sbを出力する。
The battery
図示しないが、メイン電源電圧VOMがしきい値以下に低下したときにマイコン32に対し電源リセット信号を出力するパワーオンリセット回路が設けられている。バッテリ外れ検出回路48が用いるしきい値は、パワーオンリセット回路が用いるしきい値以下に設定されている。従って、バッテリ電圧の低下によりバッテリ外れ検出回路48がHレベルの検出信号Sbを出力する場合には、マイコン32は必ず電源リセットされることになる。なお、パワーオンリセット回路に替えて、バッテリ外れ検出回路48にパワーオンリセット機能を備えてもよい。
Although not shown, a power-on reset circuit is provided that outputs a power reset signal to the
次に、図2ないし図4を参照しながら本実施形態の作用を説明する。車両のECU21は、故障状態の特定に資するようにダイアグデータや学習データなどの保持データをフラッシュメモリ36に記憶する。保持データは、初期化が行われない限り、イグニッションスイッチ23の状態にかかわらず常時保持される。車両に故障が生じてディーラーや修理工場で修理が行われた場合、フラッシュメモリ36に記憶されている保持データの初期化が行われる。
Next, the operation of the present embodiment will be described with reference to FIGS. The
保持データの初期化とは、初期化の対象となっていないフラッシュメモリ或いはROM(図示せず)に記憶されている初期値を保持データに設定する処理であり、その保持データはフラッシュメモリ36に書き込まれる。本実施形態のECU21は、故障診断ツール(専用ツール)を用いて初期化する方法に加え、ECU21から一旦バッテリ22を外して再接続した後にイグニッションスイッチ23をオンすることにより初期化する方法を利用することができる。
The initialization of retained data is a process of setting an initial value stored in a flash memory or ROM (not shown) that is not an initialization target as retained data, and the retained data is stored in the
図2は、電源リセットが解除された時に、マイコン32のメイン処理部34がスタータ25の駆動前に実行するイニシャル処理である。電源線29の電圧VB2ひいてはメイン電源電圧VOMが低下して電源リセットがかかるのは、イグニッションスイッチ23がオフされた時と、スタータ25の駆動等によりバッテリ電圧VBが低下した時である。バッテリ22の取り外しは、イグニッションスイッチ23がオフされている間に行われる。図3は、イグニッションスイッチ23がオフされた時に、メイン処理部34が電源遮断前にすべき種々の処理を実行した後で最後に実行するシャットダウン処理である。スタータ25の駆動等によりバッテリ電圧VBが低下して電源リセットがかかった時には、シャットダウン処理は実行されない。
FIG. 2 shows an initial process executed by the
図4は、スタータ25の駆動によりバッテリ電圧VBが低下して、バッテリ外れ検出回路48がバッテリ外れを表すHレベルの検出信号Sbを出力するとともに、マイコン32が電源リセットされる場合のタイミングチャートである。メイン処理部34は、イニシャル処理において、フラッシュメモリ36からRAM35にダイアグデータや学習データなどの保持データを読み出す。以降、メイン処理部34は、RAM35の保持データを対象としてデータを更新し、シャットダウン処理においてRAM35の保持データをフラッシュメモリ36に書き込む。
FIG. 4 is a timing chart in the case where the battery voltage VB is lowered by driving the
スタータ25の駆動によるバッテリ外れとの誤判定を防止するため、メイン処理部34は実行履歴データを用いる。実行履歴データとは、前回イグニッションスイッチ23がオフされてから、検出信号Sbの読み込み処理と読み込んだ検出信号Sbに基づくバッテリ外れの判定処理とを実行したか否かの実行状況(未実行/実行済)、およびバッテリ22が外されたか否かの判定結果(外れ有/外れ無)を示すデータである。この実行履歴データは、フラッシュメモリ36に記憶されている。
In order to prevent erroneous determination that the battery is disconnected due to the
メイン処理部34は、シャットダウン処理において、RAM35に未実行の実行履歴データを設定し(ステップT1)、それをフラッシュメモリ36に書き込む(ステップT2)。すなわち、イグニッションスイッチ23がオフされた時(時刻t1、t4、t9)には、必ず実行履歴データが未実行に設定される。その後、メイン処理部34は、保持データをフラッシュメモリ36に書き込んで退避させ(ステップT3)、電源維持信号ShをLレベルにしてメインリレー24を遮断する。
In the shutdown process, the
メイン処理部34は、イニシャル処理を開始すると(時刻t2、t3、t7、t8、t10、t11)、フラッシュメモリ36から実行履歴データを読み出し(ステップS1)、その実行履歴データが未実行か否かを判断する(ステップS2)。後述するように、イニシャル処理を実行すると、次にイグニッションスイッチ23がオフされてシャットダウン処理を実行するまでの期間、実行履歴データは実行済に維持される(ステップS6、S7)。
When the initial processing is started (time t2, t3, t7, t8, t10, t11), the
実行履歴データが未実行(YES)の場合とは、前回イグニッションスイッチ23がオフされた時から初めてのイニシャル処理の場合、換言すればイグニッションスイッチ23がオンされたことによる立ち上がり(時刻t2、t7、t10)であって、スタータ25の駆動等によるバッテリ電圧VBの一時的な低下による電源リセットからの立ち上がり(時刻t3、t8、t11)でない場合である。
The case where the execution history data is not executed (YES) is the initial processing for the first time since the
この場合には、検出信号Sbを読み込み(ステップS3)、バッテリ外れが検出されたか否かを判断する(ステップS4)。検出信号SbがHレベルのときはバッテリが外された(YES)と判断し、RAM35に記憶される上記保持データを初期化する(ステップS5)。このとき、初期化された保持データを直ちにフラッシュメモリ36に書き込んでもよいが、書き込み時間が長くなるとスタータ25の始動が遅れる虞がある。そこで、上述したように、シャットダウン処理のステップT3でフラッシュメモリ36に書き込んでいる。その後、RAM35に実行済且つ外れ有の実行履歴データを設定し(ステップS6)、それをフラッシュメモリ36に書き込む(ステップS9)。
In this case, the detection signal Sb is read (step S3), and it is determined whether or not battery removal is detected (step S4). When the detection signal Sb is at the H level, it is determined that the battery has been removed (YES), and the stored data stored in the
一方、検出信号SbがLレベルのときはバッテリが外されていない(NO)と判断し、フラッシュメモリ36からRAM35に保持データを読み出す(ステップS7)。その後、RAM35に実行済且つ外れ無の実行履歴データを設定し(ステップS8)、それをフラッシュメモリ36に書き込む(ステップS9)。その後、メイン処理部34は、次のバッテリ外れに備えてリセット信号Srを出力する(ステップS13)。
On the other hand, when the detection signal Sb is at the L level, it is determined that the battery is not removed (NO), and the retained data is read from the
ステップS2の判断で実行履歴データが実行済(NO)の場合とは、前回イグニッションスイッチ23がオフされた時から少なくとも1回のイニシャル処理が実行されており、且つ、イグニッションスイッチ23がオフされることなく電源リセットされた状態から立ち上がった場合(時刻t3、t8、t11)である。この場合の検出信号Sbは、バッテリ22が外されていないにもかかわらず、バッテリ電圧の低下によりHレベル(バッテリ外れ)になっている蓋然性が高い。つまり、検出信号Sbは、真のバッテリ外れ状態を反映していない。
The case where the execution history data is already executed (NO) at the determination in step S2 is that at least one initial process has been executed since the
そこで、メイン処理部34は、検出信号Sbの読み込み処理と読み込んだ検出信号Sbに基づくバッテリ外れの判定処理を実行しない。また、実行履歴データの変更もしない。さらに、電源リセットによりRAM35の保持データが不定になっている虞があるので、その再設定を行う。すなわち、実行履歴データが外れ有か否かを判断し(ステップS10)、外れ有(YES)の場合には、ステップS5と同様にRAM35に記憶される保持データを初期化する(ステップS11)。外れ無(NO)の場合には、ステップS7と同様にフラッシュメモリ36からRAM35に保持データを読み出す(ステップS12)。メイン処理部34は、次のバッテリ外れに備えてリセット信号Srを出力する(ステップS13)。
Accordingly, the
運転者は、エンジンを始動するために、イグニッションスイッチ23をオン操作し、ブレーキを踏みながらスタータスイッチ27をオン操作する。このイグニッションスイッチ23のオン操作からスタータスイッチ27のオン操作までの時間が短いと、イニシャル処理が間に合わない事態も考えられる。そこで、メイン処理部34は、スタータスイッチ27からスタート指令を入力すると、イニシャル処理が終了した後にスタータ駆動信号を出力する。スタータ制御回路33は、マイコン32からスタータ駆動信号が入力されると、スタータリレー26のコイル26bに通電する。これにより、イニシャル処理が終了する前にスタータ25が駆動されて電圧低下が生じることを防止できる。
In order to start the engine, the driver turns on the
以上説明したように、本実施形態のマイコン32はフラッシュメモリ36を備え、常時保持が必要な保持データをフラッシュメモリ36に記憶する構成を有している。また、バッテリ外れ検出回路48は、電源線28、29、30の電圧VB1、VB2、VB3のうち最も高い電圧に基づいて検出信号Sbを出力するように構成されている。こうした構成により、ECU21とバッテリ22との間を直接繋ぐ専用配線が不要となり、データのバックアップのための暗電流も低減できる。
As described above, the
メイン処理部34は、新たに実行履歴データを導入し、スタータ25を駆動する前のイニシャル処理においてフラッシュメモリ36から実行履歴データを読み出す。この実行履歴データが未実行か実行済かに応じて、イグニッションオンによる正常な立ち上がりか、バッテリ電圧VBの低下による電源リセットからの異常な立ち上がりかを判定することができる。後者の判定時には、メイン処理部34は、検出信号Sbの読み込み処理とバッテリ外れの判定処理を実行しない。従って、スタータ25の駆動によりバッテリ電圧VBがしきい値以下に低下しても、誤ってバッテリ外れと判定して保持データを初期化することを防止できる。
The
メイン処理部34は、イニシャル処理において、実行履歴データを実行済に設定してフラッシュメモリ36に書き込む際に、バッテリ外れの判定結果も併せて書き込む。そして、イニシャル処理において、フラッシュメモリ36から読み出した実行履歴データが実行済の場合、判定結果(外れ有/外れ無)に応じて保持データの再初期化/保持データの再読み出しを実行する。これにより、保持データがバッテリ電圧VBの低下により不定となることを確実に防止できる。
In the initial process, the
メイン処理部34は、保持データをRAM35に記憶し、シャットダウン処理においてフラッシュメモリ36に退避させる。この処理シーケンスによれば、保持データの初期化、保持データの更新等をRAM35に対して行えばよいので、処理速度を高めることができる。
The
(第2の実施形態)
図5に示す電子制御装置51(ECU51)は、スタータ制御回路33に替えて遅延回路52を備えている点を除き、図1に示したECU21と同様に構成されている。ECU51は、スタータ25の駆動タイミングを直接制御する機能を備えていない。そこで、遅延回路52は、スタータスイッチ27からのスタート指令を遅延させてスタータリレー26のコイル26bに通電する。このときの遅延時間は、イニシャル処理に要する時間以上に設定されている。本実施形態によっても、第1の実施形態と同様の作用および効果が得られる。
(Second Embodiment)
An electronic control device 51 (ECU 51) shown in FIG. 5 is configured in the same manner as the
(その他の実施形態)
以上、本発明の好適な実施形態について説明したが、本発明は上述した実施形態に限定されるものではなく、発明の要旨を逸脱しない範囲内で種々の変形、拡張を行うことができる。
(Other embodiments)
As mentioned above, although preferred embodiment of this invention was described, this invention is not limited to embodiment mentioned above, A various deformation | transformation and expansion | extension can be performed within the range which does not deviate from the summary of invention.
実行履歴データは、少なくとも実行状況(未実行/実行済)を含めばよく、判定結果(外れ有/外れ無)まで含む必要はない。すなわち、図2に示すステップS6、S8でRAM35に実行済の実行履歴データを設定し、ステップS2でNOと判断した場合にはステップS10〜S12の処理を飛ばしてステップS13に移行すればよい。ただし、ステップS2でNOと判断した場合には保持データが不定になる虞があるので、再設定処理またはエラー処理などを別に講じることが好ましい。
The execution history data only needs to include at least the execution status (not executed / executed), and does not need to include the determination result (missed / not missed). That is, the executed history data is set in the
メイン処理部34は、イニシャル処理においてRAM35の保持データを初期化し、またはフラッシュメモリ36からRAM35に保持データを読み出し、シャットダウン処理においてRAM35の保持データをフラッシュメモリ36に書き込んだ。しかし、保持データをRAM35に記憶することなく、フラッシュメモリ36に記憶した保持データを直接書き換えてもよい。この場合には、ステップS5、S11においてフラッシュメモリ36に記憶された保持データを初期化し、ステップS7、S12、T3の処理は不要である。
The
本発明でいう書き換え可能な不揮発性メモリは、1つのメモリチップとは限らない。実行履歴データを記憶する不揮発性メモリと保持データを記憶する不揮発性メモリは、異なるメモリチップまたは異なるメモリ領域であってもよい。書き換え可能な不揮発性メモリは、フラッシュメモリ36に限られず、例えばEEPROMであってもよい。
本発明でいう電源供給用リレーは、半導体スイッチを用いた開閉器も含めたスイッチ手段を広く意味する。
The rewritable nonvolatile memory referred to in the present invention is not limited to one memory chip. The non-volatile memory that stores the execution history data and the non-volatile memory that stores the retained data may be different memory chips or different memory areas. The rewritable nonvolatile memory is not limited to the
The power supply relay referred to in the present invention broadly means switch means including a switch using a semiconductor switch.
図面中、21、51は電子制御装置(車載制御装置)、22はバッテリ、23はイグニッションスイッチ、24はメインリレー(電源供給用リレー)、24aは常開接点、24bはコイル、25はスタータ、28、29、30は第1、第2、第3電源線、33はスタータ制御回路、34はメイン処理部(制御手段)、35はRAM(揮発性メモリ)、36はフラッシュメモリ(書き換え可能な不揮発性メモリ)、48はバッテリ外れ検出回路、52は遅延回路である。 In the drawings, 21 and 51 are electronic control devices (vehicle-mounted control devices), 22 is a battery, 23 is an ignition switch, 24 is a main relay (power supply relay), 24a is a normally open contact, 24b is a coil, 25 is a starter, 28, 29 and 30 are first, second and third power lines, 33 is a starter control circuit, 34 is a main processing unit (control means), 35 is RAM (volatile memory), and 36 is flash memory (rewritable). (Nonvolatile memory), 48 is a battery disconnection detection circuit, and 52 is a delay circuit.
Claims (7)
書き換え可能な不揮発性メモリと、
バッテリからの電圧がしきい値以下になったことを条件としてバッテリが外されたことを示す検出信号を出力し、リセット信号が入力されたことを条件としてバッテリが外されていないことを示す検出信号を出力するバッテリ外れ検出回路と、
前記イグニッションスイッチがオフされると、前記検出信号の読み込み処理とバッテリ外れの判定処理との実行状況に係る実行履歴データを未実行に設定して前記不揮発性メモリに書き込んでから前記電源供給用リレーをオフするシャットダウン処理を実行し、電源リセット状態から立ち上がると、前記スタータが駆動する前に、前記不揮発性メモリから前記実行履歴データを読み出し、その読み出した実行履歴データが未実行に設定されている場合には、前記検出信号の読み込み処理とバッテリ外れの判定処理とを実行して前記実行履歴データを実行済に設定して前記不揮発性メモリに書き込み、バッテリが外されたと判定したときには前記不揮発性メモリに記憶されて常時保持される保持データを初期化し、前記バッテリ外れ検出回路にリセット信号を出力し、前記読み出した実行履歴データが実行済に設定されている場合には、前記検出信号の読み込み処理とバッテリ外れの判定処理とを実行することなく前記バッテリ外れ検出回路にリセット信号を出力するイニシャル処理を実行する制御手段とを備えていることを特徴とする車載制御装置。 In an in-vehicle control device mounted on a vehicle equipped with an ignition switch, a relay for power supply for opening and closing a power supply path from a battery, and a starter for starting an engine,
Rewritable nonvolatile memory,
Outputs a detection signal indicating that the battery has been removed on the condition that the voltage from the battery has fallen below the threshold value, and indicates that the battery has not been removed on the condition that the reset signal has been input A battery disconnection detection circuit that outputs a signal;
When the ignition switch is turned off, execution history data relating to the execution status of the detection signal reading process and the battery detachment determination process is set to unexecuted and written to the nonvolatile memory, and then the power supply relay When the shutdown process is executed to turn off the power supply, the execution history data is read from the nonvolatile memory before the starter is driven, and the read execution history data is set to non-execution. In this case, the detection signal reading process and the battery detachment determination process are executed to set the execution history data as executed and written to the nonvolatile memory. When it is determined that the battery is removed, the nonvolatile memory Initialize the stored data that is stored in the memory and is held at all times. When a set signal is output and the read execution history data is set to executed, a reset signal is output to the battery removal detection circuit without executing the detection signal reading process and the battery removal determination process. The vehicle-mounted control apparatus characterized by including the control means which performs the initial process which outputs.
前記制御手段は、前記シャットダウン処理において、前記揮発性メモリに記憶されている保持データを前記不揮発性メモリに書き込み、前記イニシャル処理において、前記保持データの初期化を前記揮発性メモリに記憶される保持データに対して行い、前記不揮発性メモリから読み出した実行履歴データが未実行で且つバッテリが外されていないとの判定結果である場合および前記不揮発性メモリから読み出した実行履歴データが実行済で且つバッテリが外されていないとの判定結果である場合には、前記不揮発性メモリに記憶されている保持データを前記揮発性メモリに読み出すことを特徴とする請求項2記載の車載制御装置。 With volatile memory,
The control means writes retained data stored in the volatile memory to the nonvolatile memory in the shutdown process, and retains initialization of the retained data stored in the volatile memory in the initial process. The execution history data read from the non-volatile memory is executed and the execution history data read from the non-volatile memory is executed and the execution history data read from the non-volatile memory is not executed and the battery is not removed. The in-vehicle control device according to claim 2, wherein when the determination result indicates that the battery is not removed, the retained data stored in the nonvolatile memory is read out to the volatile memory.
前記制御手段は、スタート指令を入力すると、前記イニシャル処理が終了した後に前記スタータ駆動信号を出力することを特徴とする請求項1ないし3の何れかに記載の車載制御装置。 A starter control circuit for driving the starter when a starter drive signal is input;
4. The in-vehicle control device according to claim 1, wherein when the start command is input, the control means outputs the starter drive signal after the initial process is completed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012012974A JP2013151220A (en) | 2012-01-25 | 2012-01-25 | On-vehicle control device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012012974A JP2013151220A (en) | 2012-01-25 | 2012-01-25 | On-vehicle control device |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2013151220A true JP2013151220A (en) | 2013-08-08 |
Family
ID=49047992
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2012012974A Pending JP2013151220A (en) | 2012-01-25 | 2012-01-25 | On-vehicle control device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2013151220A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101605639B1 (en) | 2014-12-23 | 2016-03-23 | 주식회사 현대케피코 | System and method for initializing of factory in engine controller |
KR101610504B1 (en) | 2014-09-05 | 2016-04-07 | 현대자동차주식회사 | System for managing battery of vehicle and method thereof |
JP2018134964A (en) * | 2017-02-21 | 2018-08-30 | 日立オートモティブシステムズ株式会社 | Electronic control unit for automobile |
WO2019054482A1 (en) * | 2017-09-15 | 2019-03-21 | 日立オートモティブシステムズ株式会社 | Electronic control device |
-
2012
- 2012-01-25 JP JP2012012974A patent/JP2013151220A/en active Pending
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101610504B1 (en) | 2014-09-05 | 2016-04-07 | 현대자동차주식회사 | System for managing battery of vehicle and method thereof |
US9606186B2 (en) | 2014-09-05 | 2017-03-28 | Hyundai Motor Company | System for managing a battery and method thereof |
KR101605639B1 (en) | 2014-12-23 | 2016-03-23 | 주식회사 현대케피코 | System and method for initializing of factory in engine controller |
JP2018134964A (en) * | 2017-02-21 | 2018-08-30 | 日立オートモティブシステムズ株式会社 | Electronic control unit for automobile |
WO2019054482A1 (en) * | 2017-09-15 | 2019-03-21 | 日立オートモティブシステムズ株式会社 | Electronic control device |
KR20200030611A (en) * | 2017-09-15 | 2020-03-20 | 히다치 오토모티브 시스템즈 가부시키가이샤 | Electronic control device |
US10857905B2 (en) | 2017-09-15 | 2020-12-08 | Hitachi Automotive Systems, Ltd. | Electronic control unit |
KR102232770B1 (en) | 2017-09-15 | 2021-03-26 | 히다치 아스테모 가부시키가이샤 | Electronic control unit |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4274186B2 (en) | Failure diagnosis apparatus and failure information recording method | |
JP4065790B2 (en) | In-vehicle electronic control unit | |
US7155326B2 (en) | Electric control unit | |
US7475234B2 (en) | Electronic control apparatus equipped with malfunction monitor | |
CN110594028B (en) | Throttle self-learning control method and device and electronic control unit | |
US5095438A (en) | Engine controller with low voltage reset | |
US20060256497A1 (en) | Method of diagnosing main relay by use of electronic control unit and electronic control unit | |
JP4552982B2 (en) | Electronic control unit | |
US8095263B2 (en) | Electronic control unit and vehicle control system | |
US7203581B2 (en) | Electronic control unit for controlling updating of data in non-volatile memory | |
JP2013151220A (en) | On-vehicle control device | |
JP4706778B2 (en) | Electronic control device and vehicle control system | |
JP4001088B2 (en) | Electronic control unit | |
JP4281808B2 (en) | VEHICLE CONTROL DEVICE AND ITS CONTROL METHOD | |
JP5223630B2 (en) | Electronic control unit | |
US20180024173A1 (en) | Vehicle control apparatus | |
JP2002323902A (en) | Electronic controller | |
JP2009126451A (en) | Controller for vehicle | |
CN110023911B (en) | Electronic control device and data protection method thereof | |
JP2007162586A (en) | On-vehicle control device | |
JP2017096186A (en) | Vehicle electronic control device | |
KR101832278B1 (en) | Method for diagnosing engine off timer | |
JP5672185B2 (en) | In-vehicle control device | |
JP4033141B2 (en) | Electronic control device for vehicle | |
JP2004151021A (en) | Fault diagnostic device for vehicle |