JP2013166453A - Vehicle-mounted electronic control device - Google Patents

Vehicle-mounted electronic control device Download PDF

Info

Publication number
JP2013166453A
JP2013166453A JP2012030771A JP2012030771A JP2013166453A JP 2013166453 A JP2013166453 A JP 2013166453A JP 2012030771 A JP2012030771 A JP 2012030771A JP 2012030771 A JP2012030771 A JP 2012030771A JP 2013166453 A JP2013166453 A JP 2013166453A
Authority
JP
Japan
Prior art keywords
power supply
voltage
data
electronic control
control device
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
Application number
JP2012030771A
Other languages
Japanese (ja)
Inventor
Naoki Maeda
直樹 前田
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.)
JTEKT Corp
Original Assignee
JTEKT 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 JTEKT Corp filed Critical JTEKT Corp
Priority to JP2012030771A priority Critical patent/JP2013166453A/en
Publication of JP2013166453A publication Critical patent/JP2013166453A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Power Steering Mechanism (AREA)

Abstract

PROBLEM TO BE SOLVED: To prevent data for normal use to be stored in an EEPROM 5 is rewritten into erroneous data by prohibiting data write on the EEPROM 5 when a power supply voltage seems to have a failure.SOLUTION: A voltage V of a battery 2 and a change speed of the voltage are detected. When the detected voltage value is lower than a first specific threshold (condition 1), or the detected voltage decreases at a speed faster than a second threshold (condition 2), no data is written on an EEPROM 5.

Description

本発明は車載用電子制御装置に関する。   The present invention relates to an on-vehicle electronic control device.

車載用電子制御装置として、例えば、電動パワーステアリングシステムの操舵補助モータを制御する制御装置が挙げられる。この制御装置は操舵補助モータを制御するためのパラメータの一部、例えばトルクセンサ、角度センサ、電流センサなど各センサのセンサ補正データ又は診断データを、制御装置内のEEPROM(Electrically Erasable Programmable Read-Only Memory; 電気的に消去可能な不揮発性メモリ)などのメモリに記憶させている。   Examples of the on-vehicle electronic control device include a control device that controls a steering assist motor of an electric power steering system. This control device uses a part of parameters for controlling the steering assist motor, for example, sensor correction data or diagnostic data of each sensor such as a torque sensor, an angle sensor, and a current sensor, and an EEPROM (Electrically Erasable Programmable Read-Only) in the control device. Memory; such as an electrically erasable non-volatile memory).

EEPROMへのデータの書き込みは制御装置の初期調整時、起動後、又は終了処理時に実施される。
また制御装置は、特許文献1に教示されているように、車両側のイグニション・オフ後に終了処理を実施し、終了処理完了後に、自ら供給電源を遮断している。
Data writing to the EEPROM is performed at the time of initial adjustment of the control device, after startup, or at the time of termination processing.
Further, as taught in Patent Document 1, the control device performs an end process after the vehicle is turned off, and shuts off the power supply itself after the end process is completed.

特開2006-347441号公報JP 2006-347441 特開2007-320456号公報JP 2007-320456

しかしながら、前述のEEPROMへのデータの書き込みなどの処理の実施中に、制御装置に電源を供給する電源装置に異常があると、処理が正常に完了しない場合がある。
本発明は、斯かる実情に鑑み、供給電源の電圧監視を行い、供給電圧の異常を検出した場合にはデータの書き込み異常を回避することができる車載用電子制御装置を提供しようとするものである。
However, if there is an abnormality in the power supply device that supplies power to the control device during the execution of processing such as data writing to the EEPROM, the processing may not be completed normally.
In view of such circumstances, the present invention intends to provide an in-vehicle electronic control device capable of monitoring a voltage of a power supply and avoiding a data writing abnormality when an abnormality in the supply voltage is detected. is there.

本発明は、供給電源からの電源指令がオンからオフに切り替わっても、不揮発性メモリにデータを書き込む処理が終了するまで電源の供給を継続する車載用電子制御装置であって、供給電源の電圧を監視する電圧監視手段と、前記処理を実行する処理手段とを備え、電圧監視手段は、供給電源の電圧値を検出し、処理手段は、検出された電圧値が所定の第一の閾値よりも低い場合に、前記処理の実行をしない車載用電子制御装置に係るものである。   The present invention relates to an on-vehicle electronic control device that continues to supply power until a process of writing data to a nonvolatile memory is completed even when a power command from the power supply is switched from on to off. Voltage monitoring means for monitoring the power supply, and processing means for executing the processing, the voltage monitoring means detects the voltage value of the power supply, and the processing means detects the detected voltage value from a predetermined first threshold value. If it is lower, the vehicle-mounted electronic control device does not execute the processing.

本構成の車載用電子制御装置によれば、供給電源の電圧値が所定の第一の閾値よりも低ければ、不揮発性メモリにデータを書き込む処理の実行中に、電圧値が、不揮発性メモリにデータを書き込みできる最低電圧を下回る可能性がある。「第一の閾値」はそのような最低電圧を下回る可能性が生ずる電圧値に選定するとよい。最低電圧を下回れば、データが書き込みできなくなるか、書き込んでも間違ったデータが書き込まれるおそれがある。そこで電圧値が所定の第一の閾値よりも低い場合に、前記処理の実行を禁止することとして、データの書き込み異常の発生を未然に防止することができる。   According to the on-vehicle electronic control device of this configuration, if the voltage value of the power supply is lower than the predetermined first threshold, the voltage value is stored in the nonvolatile memory during the process of writing data to the nonvolatile memory. It may be below the minimum voltage that data can be written to. The “first threshold value” may be selected to be a voltage value that may cause a drop below such a minimum voltage. If the voltage is lower than the minimum voltage, data cannot be written, or wrong data may be written even if it is written. Therefore, when the voltage value is lower than the predetermined first threshold, the execution of the process is prohibited, so that the occurrence of data writing abnormality can be prevented in advance.

電圧監視手段は、さらに供給電源の電圧の変化速度を検出し、電圧値が所定の第二の閾値を超える速度で下降している場合には、処理手段は前記処理の実行をしないことが好ましい。電圧値が所定の第二の閾値を超える速度で下降している場合には、不揮発性メモリにデータを書き込む処理の実行中に、電圧値が、不揮発性メモリにデータを書き込みできる最低電圧を下回る可能性がある。「第二の閾値」はそのような最低電圧を下回る可能性が生ずる電圧変化速度値に選定するとよい。最低電圧を下回れば、データが書き込みできなくなるか、書き込んでも間違ったデータが書き込まれるおそれがある。そこで電圧値が所定の第二の閾値を超える速度で下降している場合には、処理手段に対して前記処理の実行を禁止することとして、データの書き込み異常の発生を未然に防止することができる。   The voltage monitoring means further detects the change rate of the voltage of the power supply, and when the voltage value is decreasing at a speed exceeding a predetermined second threshold, the processing means preferably does not execute the process. . When the voltage value is decreasing at a speed exceeding the predetermined second threshold, the voltage value falls below the minimum voltage at which data can be written to the nonvolatile memory during the process of writing data to the nonvolatile memory. there is a possibility. The “second threshold value” may be selected as a voltage change rate value that is likely to be lower than the minimum voltage. If the voltage is lower than the minimum voltage, data cannot be written, or wrong data may be written even if it is written. Therefore, when the voltage value is decreasing at a speed exceeding the predetermined second threshold, the execution of the processing is prohibited for the processing means, thereby preventing the occurrence of data writing abnormality. it can.

本発明の車載用電子制御装置は、復帰用データを保存するバックアップ領域を有し、処理手段は、不揮発性メモリに復帰用データを書き込むこととしてもよい。不揮発性メモリのデータに異常がある場合、書き込むデータとして復帰用データを書き込むので、不揮発性メモリのデータが空になったり、データに異常が生じた場合に車載用電子制御装置の制御処理が実行できないという事態を防止することができる。   The on-vehicle electronic control device of the present invention may have a backup area for storing return data, and the processing means may write the return data to the nonvolatile memory. If there is an abnormality in the data in the nonvolatile memory, the recovery data is written as the data to be written, so if the data in the nonvolatile memory becomes empty or an abnormality occurs in the data, the control processing of the on-vehicle electronic control device is executed The situation where it is impossible can be prevented.

本発明の実施形態に係る車載用電子制御装置の制御機能を示すブロック図である。It is a block diagram which shows the control function of the vehicle-mounted electronic control apparatus which concerns on embodiment of this invention. 電源電圧の時間波形図である。It is a time waveform figure of a power supply voltage. EEPROMへの書き込みを禁止する処理を説明するためのフローチャートである。It is a flowchart for demonstrating the process which prohibits writing in EEPROM. EEPROMの制御パラメータデータを保存する領域を示す模式図である。It is a schematic diagram which shows the area | region which preserve | saves the control parameter data of EEPROM. 復帰用データでEEPROMを更新する手順に示すフローチャートである。It is a flowchart shown in the procedure which updates EEPROM with the data for a return.

以下、本発明の実施の形態を、添付図面を参照して説明する。
図1は、本発明の実施形態に係る車載用電子制御装置1の制御機能を示すブロック図である。この車載用電子制御装置1は、電動パワーステアリングシステムの操舵補助モータを制御する装置である。
車載用電子制御装置1は、メイン電源端子11、補助電源端子12、接地電源端子13の3つの電源端子を有し、そのうちメイン電源端子11及び接地電源端子13において、供給電源である電池2の正極と負極とにそれぞれ接続されている。また車載用電子制御装置1は、補助電源端子12においてイグニッションスイッチIGを経由して電池2の正極に接続されている。電池2は鉛蓄電池、ニッケル水素蓄電池、リチウムイオン蓄電池など車両に使われる電池であれば良い。イグニッションスイッチIGは供給電源である電池2からの電源指令をオンするためのスイッチである。
Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings.
FIG. 1 is a block diagram showing a control function of an in-vehicle electronic control device 1 according to an embodiment of the present invention. The on-vehicle electronic control device 1 is a device that controls a steering assist motor of an electric power steering system.
The in-vehicle electronic control device 1 has three power terminals, that is, a main power terminal 11, an auxiliary power terminal 12, and a ground power terminal 13, and the main power terminal 11 and the ground power terminal 13 are connected to the battery 2 as a power supply. Each is connected to a positive electrode and a negative electrode. The on-vehicle electronic control device 1 is connected to the positive electrode of the battery 2 via the ignition switch IG at the auxiliary power terminal 12. The battery 2 may be a battery used in a vehicle such as a lead storage battery, a nickel hydride storage battery, or a lithium ion storage battery. The ignition switch IG is a switch for turning on a power supply command from the battery 2 that is a supply power supply.

車載用電子制御装置1は、メイン電源端子11から供給される電源をオンオフするためのFETなどからなるメインスイッチ素子Q1と、メインスイッチ素子Q1を経由して得られる電源電圧を安定化させる安定化回路32と、安定化回路32から得られる安定化された電圧をマイクロコンピュータ4やEEPROM5を駆動するのに適した5V,3.3Vなどの電圧に変換するための電圧変換回路31と、マイクロコンピュータ4と、不揮発性メモリとしてのEEPROM5とを有している。以下、安定化回路32と電圧変換回路31とを総称して「電源回路3」という。   The on-vehicle electronic control device 1 stabilizes the main switch element Q1 composed of an FET or the like for turning on and off the power supplied from the main power supply terminal 11, and the power supply voltage obtained via the main switch element Q1. A circuit 32, a voltage conversion circuit 31 for converting the stabilized voltage obtained from the stabilization circuit 32 into a voltage of 5V, 3.3V, etc. suitable for driving the microcomputer 4 and the EEPROM 5, and the microcomputer 4 and an EEPROM 5 as a nonvolatile memory. Hereinafter, the stabilization circuit 32 and the voltage conversion circuit 31 are collectively referred to as “power supply circuit 3”.

なお、イグニッションスイッチIGを経由して得られる電源電圧は、インターフェイス7を通してマイクロコンピュータ4に供給され、マイクロコンピュータ4において監視される。インターフェイス7は例えばA/D変換器である。
また、イグニッションスイッチIGを経由して得られる電源電圧及びマイクロコンピュータ4から供給される電圧はインターフェイス8を通してメインスイッチ素子Q1のゲートに直接供給される。インターフェイス8はイグニッションスイッチIGを経由して得られる電源電圧又はマイクロコンピュータ4から供給される電圧の何れかがハイレベルになった場合にメインスイッチ素子Q1のゲートに印加するためのトランジスタ回路である。
The power supply voltage obtained via the ignition switch IG is supplied to the microcomputer 4 through the interface 7 and monitored by the microcomputer 4. The interface 7 is an A / D converter, for example.
Further, the power supply voltage obtained via the ignition switch IG and the voltage supplied from the microcomputer 4 are directly supplied to the gate of the main switch element Q1 through the interface 8. The interface 8 is a transistor circuit for applying to the gate of the main switch element Q1 when either the power supply voltage obtained via the ignition switch IG or the voltage supplied from the microcomputer 4 becomes high level.

また安定化回路32から得られる電源電圧は、インターフェイス9を通してマイクロコンピュータ4に供給され、マイクロコンピュータ4において監視される。インターフェイス9は例えばA/D変換器である。
マイクロコンピュータ4は、電動パワーステアリングシステムの操舵補助モータを制御する装置であり、その機能はステアリングホイールの回転に基づく操舵トルクを検出するトルクセンサ及び車速センサの検出信号に応じて、インバータ駆動回路にモータ回転のための制御電圧信号を与えて、操舵状況及び車速に応じた適切な操舵補助を実現するものである。
The power supply voltage obtained from the stabilization circuit 32 is supplied to the microcomputer 4 through the interface 9 and monitored by the microcomputer 4. The interface 9 is, for example, an A / D converter.
The microcomputer 4 is a device that controls the steering assist motor of the electric power steering system, and its function is applied to the inverter drive circuit according to the detection signal of the torque sensor that detects the steering torque based on the rotation of the steering wheel and the vehicle speed sensor. A control voltage signal for rotating the motor is given to realize appropriate steering assistance according to the steering situation and the vehicle speed.

マイクロコンピュータ4は、操舵補助モータを制御する際に、操舵補助モータを制御するためのパラメータの一部、例えばトルクセンサなど車載のセンサのセンサ補正データ又は診断データ(例えばオフセット補正データ、センサの感度補正データが挙げられる)を、EEPROM5に書き込み、随時更新している。このEEPROM5に記憶させ、随時更新するデータを「制御パラメータデータ」という。   When the microcomputer 4 controls the steering assist motor, a part of parameters for controlling the steering assist motor, for example, sensor correction data or diagnostic data (for example, offset correction data, sensor sensitivity) of an in-vehicle sensor such as a torque sensor. Correction data) is written in the EEPROM 5 and updated as needed. Data stored in the EEPROM 5 and updated as needed is referred to as “control parameter data”.

制御パラメータデータの書き込み又は更新のタイミングは、電動パワーステアリングシステムの初期調整時(通常、工場内で行う)、車載用電子制御装置1の起動後に電動パワーステアリングシステムが作動している時、又は車両走行が終わりイグニッションスイッチIGがオフされて終了処理が実施されている時、などである。
イグニッションスイッチIGにより、供給電源である電池2からの電源指令がオンされて電源電圧が供給されると、メインスイッチ素子Q1を導通させるためのゲート電圧がインターフェイス8を通してメインスイッチ素子Q1のゲートに印加される。イグニッションスイッチIGを通してメインスイッチ素子Q1のゲートに流される電流は、極めて小さな電流である。
The control parameter data is written or updated at the time of initial adjustment of the electric power steering system (usually in the factory), when the electric power steering system is activated after the on-vehicle electronic control device 1 is started, or the vehicle For example, when the travel is over and the ignition switch IG is turned off and the termination process is performed.
When the power supply command from the battery 2 as the power supply is turned on by the ignition switch IG and the power supply voltage is supplied, the gate voltage for conducting the main switch element Q1 is applied to the gate of the main switch element Q1 through the interface 8. Is done. The current that flows through the ignition switch IG to the gate of the main switch element Q1 is a very small current.

メインスイッチ素子Q1が導通すると、電源供給回線6、メインスイッチ素子Q1を通して電源回路3に電源が供給され、電源回路3からマイクロコンピュータ4を駆動するのに適した5V,3.3Vなどの電圧がマイクロコンピュータ4に供給される。この結果、マイクロコンピュータ4の全体が駆動され、マイクロコンピュータ4全体の消費電流に相当する電流が電源回路3からマイクロコンピュータ4に供給される。   When the main switch element Q1 is turned on, power is supplied to the power supply circuit 3 through the power supply line 6 and the main switch element Q1, and a voltage such as 5V or 3.3V suitable for driving the microcomputer 4 from the power supply circuit 3 is obtained. It is supplied to the microcomputer 4. As a result, the entire microcomputer 4 is driven, and a current corresponding to the consumption current of the entire microcomputer 4 is supplied from the power supply circuit 3 to the microcomputer 4.

そしてマイクロコンピュータ4は、前述した書き込み又は更新のタイミングで、制御パラメータデータをEEPROM5に書き込む。この書き込みの途中で、電池2の異常が発生した場合、電源供給回線6の異常が発生した場合、あるいは電源供給回線6にブレーカが挿入されている場合はそのブレーカが遮断された場合などに、EEPROM5への書き込みが完了せず、場合によってはEEPROM5の記憶データが異常となったり喪失したりするおそれがある。   Then, the microcomputer 4 writes the control parameter data in the EEPROM 5 at the write or update timing described above. In the middle of writing, when an abnormality of the battery 2 occurs, when an abnormality of the power supply line 6 occurs, or when a breaker is inserted in the power supply line 6, the breaker is shut off. Writing to the EEPROM 5 is not completed, and in some cases, the data stored in the EEPROM 5 may become abnormal or lost.

そこでマイクロコンピュータ4は、常に車載用電子制御装置1への電源電圧Vを、インターフェイス7又はインターフェイス9を通して監視し、(1)電源電圧Vの電圧値が所定の第一の閾値よりも低い場合、又は(2)電源電圧Vの変化速度を検出し、電源電圧Vが所定の第二の閾値を超える速度で下降している場合に、EEPROM5への書き込みを禁止する処理を行う。   Therefore, the microcomputer 4 always monitors the power supply voltage V to the in-vehicle electronic control device 1 through the interface 7 or the interface 9, and (1) when the voltage value of the power supply voltage V is lower than a predetermined first threshold value, Or (2) detecting the change rate of the power supply voltage V, and performing a process of prohibiting writing to the EEPROM 5 when the power supply voltage V is decreasing at a speed exceeding a predetermined second threshold.

以下、前述の条件(1)又は(2)が満たされた場合にEEPROM5への書き込みを禁止する処理を行う場合を説明する。
図2は電源電圧Vの時間波形図であり、図3はEEPROM5への書き込みを禁止する処理を説明するためのフローチャートである。
電池2の公称電圧は12Vであるとする。マイクロコンピュータ4は、所定のサンプリング間隔Δtごとに電源電圧Vを監視している。サンプリング間隔Δtは、この時間内にEEPROM5へ制御パラメータデータを書き込める期間又はそれ以上の期間に設定することが好ましい。サンプリング間隔としてΔt=10msecを例示できる。フローチャート(図3)の処理は、サンプリング間隔ごとに繰り返されるものとする。
Hereinafter, a case where processing for prohibiting writing to the EEPROM 5 when the above-described condition (1) or (2) is satisfied will be described.
FIG. 2 is a time waveform diagram of the power supply voltage V, and FIG. 3 is a flowchart for explaining processing for prohibiting writing to the EEPROM 5.
It is assumed that the nominal voltage of the battery 2 is 12V. The microcomputer 4 monitors the power supply voltage V at every predetermined sampling interval Δt. The sampling interval Δt is preferably set to a period during which the control parameter data can be written to the EEPROM 5 within this time or a period longer than that. An example of the sampling interval is Δt = 10 msec. It is assumed that the process of the flowchart (FIG. 3) is repeated at every sampling interval.

EEPROM5への書き込み命令が発せられると、前述の条件(1),(2)が満たされているかどうか点検する(ステップS1)。
条件(1)の「第一の閾値」は、例えば次のようにして設定する。電源回路3がマイクロコンピュータ4を駆動するのに適した電圧(ここでは5Vとする)を作るには、電源回路3に約6V〜7V以上の電源電圧Vが供給されていることが必要である。そこで、電源電圧Vが正常とみなせる電源電圧の閾値を7Vとする。
When a command to write to the EEPROM 5 is issued, it is checked whether or not the above conditions (1) and (2) are satisfied (step S1).
The “first threshold” of the condition (1) is set as follows, for example. In order for the power supply circuit 3 to generate a voltage suitable for driving the microcomputer 4 (here, 5V), it is necessary that the power supply circuit 3 is supplied with a power supply voltage V of about 6V to 7V or more. . Therefore, the threshold value of the power supply voltage at which the power supply voltage V can be regarded as normal is 7V.

また前述した「電池2の異常が発生した場合、電源供給回線6の異常が発生した場合、あるいは電源供給回線6にブレーカが挿入されている場合はそのブレーカが遮断された場合など」には電源電圧Vがある速度で低下する。この低下速度は回路設計により定められるが、本発明の実施の形態ではその低下速度の上限値を−1V/10msecとする。すなわち1サンプリング間隔ごとに1V低下するとする。   In addition, the power supply is used in the case of “when the abnormality of the battery 2 occurs, when the abnormality of the power supply line 6 occurs, or when the breaker is cut off when the power supply line 6 is inserted”, etc. The voltage V decreases at a certain speed. The rate of decrease is determined by circuit design. In the embodiment of the present invention, the upper limit value of the rate of decrease is set to -1 V / 10 msec. That is, it is assumed that the voltage decreases by 1 V every sampling interval.

電源電圧Vを計測する時刻は最大1サンプリング間隔の時間のずれがあるので、この計測時刻に起因する電源電圧Vのマージンは1Vとなる。したがって、電源電圧の閾値を7V+1V、即ち8Vとする。さらに0.5Vのマージンを見て、電源電圧の閾値を8.5Vとする。これを「第一の閾値」とする。
電源電圧Vがこの第一の閾値よりも低下していれば、電源回路3がマイクロコンピュータ4を駆動するのに適した電圧を生成できない状態になっているとみなす。
Since the time at which the power supply voltage V is measured has a time lag of a maximum of one sampling interval, the margin of the power supply voltage V resulting from this measurement time is 1V. Therefore, the threshold value of the power supply voltage is set to 7V + 1V, that is, 8V. Further, the threshold of the power supply voltage is set to 8.5V with a margin of 0.5V. This is the “first threshold value”.
If the power supply voltage V is lower than the first threshold value, it is considered that the power supply circuit 3 cannot generate a voltage suitable for driving the microcomputer 4.

条件(2)の「第二の閾値」は、前述したように「電池2の異常が発生した場合、電源供給回線6の異常が発生した場合、あるいは電源供給回線6にブレーカが挿入されている場合はそのブレーカが遮断された場合など」には電源電圧Vが所定の速度で低下する。その低下速度の上限値を−1V/10msecとする。前述した第一の閾値は、この低下速度の上限値を前提として設定されたものであるので、この低下速度の上限値:−1V/10msecをそのまま「第二の閾値」とすることができる。   As described above, the “second threshold value” of the condition (2) is “when the abnormality of the battery 2 occurs, the abnormality of the power supply line 6 occurs, or the breaker is inserted in the power supply line 6”. If the breaker is cut off, the power supply voltage V drops at a predetermined speed. The upper limit value of the decrease rate is set to -1 V / 10 msec. Since the first threshold value described above is set on the premise of the upper limit value of the lowering speed, the upper limit value of the lowering speed: −1 V / 10 msec can be used as the “second threshold value” as it is.

電源電圧Vがこの第二の閾値を超える速度で下降している場合に、「電池2の異常が発生した場合、電源供給回線6の異常が発生した場合、あるいは電源供給回線6にブレーカが挿入されている場合はそのブレーカが遮断された場合など」に該当しているとみなす。
このように条件(2)を設定することにより、条件(1)の電圧値のみで保護できない異常に対応でき、信頼性が向上する。
When the power supply voltage V is decreasing at a speed exceeding the second threshold value, “when a battery 2 abnormality occurs, a power supply line 6 abnormality occurs, or a breaker is inserted into the power supply line 6. If the breaker is cut off, etc., it is considered to fall under "
By setting the condition (2) in this way, it is possible to cope with an abnormality that cannot be protected only by the voltage value of the condition (1), and the reliability is improved.

条件(1)又は(2)が満たされている場合、すなわち電源電圧Vが異常であるとみなされる場合には、EEPROM5への書き込みを禁止する処理を行う(ステップS4)。
条件(1)又は(2)が満たされていない場合、すなわち電源電圧Vが正常であるとみなされ場合には、EEPROM5への書き込みを許可する処理を行い(ステップS2)、EEPROM5への書き込みを実施する(ステップS3)。その後当該処理期間における書き込みを禁止する処理を行い(ステップS4)、スタートに戻る。
When the condition (1) or (2) is satisfied, that is, when the power supply voltage V is regarded as abnormal, a process for prohibiting writing to the EEPROM 5 is performed (step S4).
When the condition (1) or (2) is not satisfied, that is, when the power supply voltage V is considered to be normal, processing for permitting writing to the EEPROM 5 is performed (step S2), and writing to the EEPROM 5 is performed. Implement (step S3). Thereafter, processing for prohibiting writing in the processing period is performed (step S4), and the process returns to the start.

以上の処理により、条件(1)又は(2)が満たされている場合、すなわち電源電圧Vが異常であるとみなされる場合には、EEPROM5への書き込みを禁止することにより、EEPROM5に格納される通常時使用データが誤ったデータに書き換えられる可能性を排除することができる。
つぎに、EEPROM5に復帰用データを保存する領域を設け、車載用電子制御装置1の再起動時に復帰用データを利用する実施例を説明する。
By the above processing, when the condition (1) or (2) is satisfied, that is, when the power supply voltage V is regarded as abnormal, the data is stored in the EEPROM 5 by prohibiting writing to the EEPROM 5. It is possible to eliminate the possibility that normal use data is rewritten with incorrect data.
Next, an embodiment in which an area for storing return data is provided in the EEPROM 5 and the return data is used when the on-vehicle electronic control device 1 is restarted will be described.

図4はEEPROM5の制御パラメータデータを保存する領域を示す模式図である。マイクロコンピュータ4が制御パラメータデータをEEPROM5に記憶させるときに使用する領域を「通常時使用領域」、復帰用データを保存する領域を「復帰用領域」として表示している。通常時使用領域に格納されるデータを「通常時使用データ」という。通常時使用データは、直前の走行が終了し、再起動時に読み出され、電動パワーステアリング制御のために使用される。復帰用データは、車載用電子制御装置1の初期調整時にコマンド入力にて復帰用領域に記憶させているものである。いずれの領域にも、データの異常判定をするためのサムチェックデータが記憶されている。   FIG. 4 is a schematic diagram showing an area for storing control parameter data in the EEPROM 5. An area used when the microcomputer 4 stores the control parameter data in the EEPROM 5 is displayed as “normal use area”, and an area for storing the return data is displayed as “return area”. Data stored in the normal use area is referred to as “normal use data”. The normal use data is read out at the time of restart after the last run and is used for electric power steering control. The return data is stored in the return area by command input during the initial adjustment of the in-vehicle electronic control device 1. In both areas, sum check data for determining data abnormality is stored.

再起動時に読み出す通常時使用領域には直前の通常時使用データが残っているが、そのデータに異常が発生している場合がある。
そこでこのような場合に、復帰用データを利用する手順に入る。図5は復帰用データを用いてEEPROM5を更新する手順に示すフローチャートである。コンピュータは起動時、EEPROM5の通常時使用領域の通常時使用データを読み出し(ステップT1)、異常判定処理を行う(ステップT2)。この異常判定処理は、サムチェックデータを利用してデータのサム値を点検する処理である。データに異常があれば(ステップT3)、復帰用領域の復帰用データを読み出し(ステップT4)、これに対しても異常判定処理を行う(ステップT5)。復帰用データに異常がなければ、ステップT6へ進み、復帰用データを通常時使用領域にコピーする。すなわち、通常時使用領域に格納される通常時使用データを復帰用データで初期化する。ステップT5で復帰用データにも異常があれば、ステップT7に進み、フェールフラグをオンにする。これにより車載用電子制御装置1は故障モードに入る。
Although the normal use data immediately before is left in the normal use area read at the time of restart, there may be an abnormality in the data.
In such a case, a procedure for using the return data is entered. FIG. 5 is a flowchart showing a procedure for updating the EEPROM 5 using the return data. At startup, the computer reads normal use data in the normal use area of the EEPROM 5 (step T1), and performs abnormality determination processing (step T2). This abnormality determination process is a process of checking the sum value of data using sum check data. If there is an abnormality in the data (step T3), the return data in the return area is read out (step T4), and an abnormality determination process is performed for this (step T5). If there is no abnormality in the return data, the process proceeds to step T6, and the return data is copied to the normal use area. That is, normal use data stored in the normal use area is initialized with the return data. If there is an abnormality in the return data in step T5, the process proceeds to step T7, and the fail flag is turned on. Thereby, the vehicle-mounted electronic control device 1 enters the failure mode.

以上の処理により、EEPROM5に格納される通常時使用データに異常がある場合には、復帰用領域に格納されている復帰用データによって通常時使用データを置き換えて、システムがフェール状態になることを未然に防止することができる。
以上で、本発明の実施の形態を説明したが、本発明は、実施の形態に限定されるものではなく、本発明の範囲内で種々の変更を施すことが可能である。例えば、復帰用データは、EEPROM5の中の復帰用領域に保存していたが、EEPROM5とは別のメモリを設けて、そこに保存するようにしても良い。また車載用電子制御装置1は電動パワーステアリングシステムの操舵補助モータを制御する装置であったが、これに限定されず、本発明は、ステアバイワイヤシステムの反力モータや転舵モータを制御する装置など、車内で使用され、データの更新を行う電子制御装置一般に適用することができる。
As a result of the above processing, when there is an abnormality in the normal use data stored in the EEPROM 5, the normal use data is replaced with the return data stored in the return area, and the system is in a failed state. It can be prevented in advance.
Although the embodiment of the present invention has been described above, the present invention is not limited to the embodiment, and various modifications can be made within the scope of the present invention. For example, the return data is stored in the return area in the EEPROM 5, but a memory different from the EEPROM 5 may be provided and stored there. The on-vehicle electronic control device 1 is a device that controls the steering assist motor of the electric power steering system. However, the present invention is not limited to this, and the present invention is a device that controls the reaction force motor and the steering motor of the steer-by-wire system. For example, it can be applied to an electronic control device that is used in a vehicle and updates data.

1…車載用電子制御装置、2…電池、31…第一電源回路、32…第二電源回路、4…マイクロコンピュータ、5…EEPROM、6…電源供給回線 DESCRIPTION OF SYMBOLS 1 ... Vehicle-mounted electronic control apparatus, 2 ... Battery, 31 ... 1st power supply circuit, 32 ... 2nd power supply circuit, 4 ... Microcomputer, 5 ... EEPROM, 6 ... Power supply line

Claims (3)

供給電源からの電源供給指令がオンからオフに切り替わっても、不揮発性メモリにデータを書き込む処理が終了するまで電源の供給を継続する車載用電子制御装置であって、
前記供給電源の電圧を監視する電圧監視手段と、前記処理を実行する処理手段とを備え、
前記電圧監視手段は前記供給電源の電圧値を検出し、前記処理手段は、前記電圧監視手段によって検出された電圧値が所定の第一の閾値よりも低い場合に、前記処理の実行をしないことを特徴とする車載用電子制御装置。
Even if the power supply command from the power supply is switched from on to off, the vehicle-mounted electronic control device continues to supply power until the process of writing data to the nonvolatile memory is completed.
Voltage monitoring means for monitoring the voltage of the power supply, and processing means for executing the processing,
The voltage monitoring unit detects a voltage value of the power supply, and the processing unit does not execute the processing when the voltage value detected by the voltage monitoring unit is lower than a predetermined first threshold value. An on-vehicle electronic control device characterized by the above.
前記電圧監視手段は、さらに前記供給電源の電圧の変化速度を検出し、前記電圧値が所定の第二の閾値を超える速度で下降している場合には、前記処理手段は前記処理の実行をしないことを特徴とする、請求項1に記載の車載用電子制御装置。   The voltage monitoring unit further detects a change rate of the voltage of the power supply, and when the voltage value is decreasing at a rate exceeding a predetermined second threshold, the processing unit executes the processing. The in-vehicle electronic control device according to claim 1, wherein the on-vehicle electronic control device is not. 復帰用データを保存するバックアップ領域を有し、前記処理手段は、前記不揮発性メモリに書き込んだデータに異常がある場合に、前記復帰用データを前記不揮発性メモリに書き込むことを特徴とする、請求項1又は請求項2に記載の車載用電子制御装置。   A backup area for storing return data is provided, and the processing means writes the return data to the nonvolatile memory when there is an abnormality in the data written to the nonvolatile memory. The vehicle-mounted electronic control apparatus of Claim 1 or Claim 2.
JP2012030771A 2012-02-15 2012-02-15 Vehicle-mounted electronic control device Pending JP2013166453A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012030771A JP2013166453A (en) 2012-02-15 2012-02-15 Vehicle-mounted electronic control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012030771A JP2013166453A (en) 2012-02-15 2012-02-15 Vehicle-mounted electronic control device

Publications (1)

Publication Number Publication Date
JP2013166453A true JP2013166453A (en) 2013-08-29

Family

ID=49177247

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012030771A Pending JP2013166453A (en) 2012-02-15 2012-02-15 Vehicle-mounted electronic control device

Country Status (1)

Country Link
JP (1) JP2013166453A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000355257A (en) * 1999-06-11 2000-12-26 Mitsubishi Agricult Mach Co Ltd Tractor
JP2005088779A (en) * 2003-09-18 2005-04-07 Xanavi Informatics Corp On-vehicle information terminal unit
JP2006347441A (en) * 2005-06-17 2006-12-28 Denso Corp Electronic control device
JP2007245818A (en) * 2006-03-14 2007-09-27 Auto Network Gijutsu Kenkyusho:Kk Battery state control system
JP2010071731A (en) * 2008-09-17 2010-04-02 Shin Kobe Electric Mach Co Ltd Device of determining charge state of onboard lead storage battery

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000355257A (en) * 1999-06-11 2000-12-26 Mitsubishi Agricult Mach Co Ltd Tractor
JP2005088779A (en) * 2003-09-18 2005-04-07 Xanavi Informatics Corp On-vehicle information terminal unit
JP2006347441A (en) * 2005-06-17 2006-12-28 Denso Corp Electronic control device
JP2007245818A (en) * 2006-03-14 2007-09-27 Auto Network Gijutsu Kenkyusho:Kk Battery state control system
JP2010071731A (en) * 2008-09-17 2010-04-02 Shin Kobe Electric Mach Co Ltd Device of determining charge state of onboard lead storage battery

Similar Documents

Publication Publication Date Title
US11383762B2 (en) Motor controller and electric power steering using same
JPH08132992A (en) On-vehicle controller
US9110842B2 (en) Control device for vehicle and error processing method in control device for vehicle
JP4345845B2 (en) Power supply
EP3225492B1 (en) Vehicular control device and vehicle control method
JP6239895B2 (en) Motor control device and electric power steering device
JP2009184423A (en) Vehicular electronic control unit
WO2019058607A1 (en) On-vehicle electronic control device and abnormal state processing method
JP2003002132A (en) Vehicle control device
JP2013166453A (en) Vehicle-mounted electronic control device
JP2015024754A (en) Electronic control device
US11314634B2 (en) Electronic control unit and data protection method therefor
JP2007162586A (en) On-vehicle control device
JP2007253766A (en) Electric power steering system
JP6869743B2 (en) Electronic control device for automobiles
JP7452388B2 (en) Battery control device, method, program, and vehicle
JP2020050319A (en) Power supply monitoring device, power supply control system and power supply monitoring method
JP2015058885A (en) Automobile electronic control device
JP2009026183A (en) Electronic control apparatus for automobile
JP2015162102A (en) Vehicle control apparatus
JP5432315B2 (en) Electronic control device for vehicle
JP2009104299A (en) Electronic control device
JP6207991B2 (en) Vehicle control device
JP4026924B2 (en) Electronic control unit for automobile
JP2010016955A (en) Electronic control device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150121

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20151009

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20151015

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20151202

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20160609