JP3947643B2 - Data control device - Google Patents
Data control device Download PDFInfo
- Publication number
- JP3947643B2 JP3947643B2 JP36298999A JP36298999A JP3947643B2 JP 3947643 B2 JP3947643 B2 JP 3947643B2 JP 36298999 A JP36298999 A JP 36298999A JP 36298999 A JP36298999 A JP 36298999A JP 3947643 B2 JP3947643 B2 JP 3947643B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- storage area
- stored
- storage
- control unit
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Read Only Memory (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
Description
【0001】
【発明の属する技術分野】
この発明は、たとえば、パワーステアリング装置の電子制御装置などに適用されて、EEPROM(Electrically Erasable Programmable Read-Only Memory)またはフラッシュメモリなどからなるデータ記憶部に対するデータの書込みおよび読出しを制御するためのデータ制御装置に関する。
【0002】
【従来の技術】
たとえば、電子制御装置による制御の下、電動モータによりオイルポンプを駆動して、ステアリング機構に結合されたパワーシリンダに作動油を供給し、このパワーシリンダから操舵補助力を発生させるパワーステアリング装置が知られている。このようなパワーステアリング装置の中には、電動モータの累積作動時間を表すモータ作動時間データや過去に発生した異常の内容を表すエラーコードなどを記憶しておくためのデータ記憶部を電子制御装置内に備えているものがある。
【0003】
データ記憶部は、EEPROMやフラッシュメモリなどの不揮発性メモリからなり、このデータ記憶部に対するデータの書込みおよび読出しは、データ制御部によって制御されるようになっている。たとえば、データ記憶部がモータ作動時間データを記憶するものである場合、データ制御部は、電動モータが一定時間作動する度に、データ記憶部に記憶されているモータ作動時間データを削除し、新たなモータ作動時間データをデータ記憶部に書き込む。これにより、パワーステアリング装置の点検時などに、データ記憶部に記憶されているモータ作動時間データを読み出すことによって、パワーステアリング装置に備えられている電動モータの累積作動時間を確認することができ、たとえば、電動モータなどのメンテナンスが必要であるか否かを容易に判断することができる。
【0004】
【発明が解決しようとする課題】
ところが、データ記憶部に記憶されているデータの消去および新たな書込みが行われている途中で、車両のイグニッションスイッチがオフにされて、電子制御装置への動作電力の供給が中止されると、データ記憶部に記憶されているデータが失われたり、破壊されたりするおそれがある。
このようなデータの損失や破壊が生じるのを防止するために、イグニッションスイッチがオフされてからの一定時間だけ電子制御装置に動作電力を供給するためのバックアップ電源を設けることが考えられる。しかしながら、バックアップ電源を設けるとなると、電子制御装置(データ制御部)のコストが大幅にアップしてしまう。
【0005】
そこで、この発明の目的は、大幅なコストアップを招くことなく、データ記憶部に記憶されている全データの損失や破壊を防止できるデータ制御装置を提供することである。
【0006】
【課題を解決するための手段および発明の効果】
上記の目的を達成するための請求項1記載の発明は、書込順序が規定された複数の記憶領域(31,32,33)を有するデータ記憶装置(30)に対するデータの書込みおよび読出しを制御するためのデータ制御装置(40)であって、前記書込順序に従って、前記複数の記憶領域に異なるデータを順に書き込むデータ書込手段と、前記複数の記憶領域のうちの所定の記憶領域である最も新しくデータの書込みが行われた記憶領域に記憶されているデータを読み出すデータ読出手段と、このデータ読出手段によってデータの読出しが良好に行われなかった場合に、前記所定の記憶領域以外の記憶領域である上記所定の記憶領域へのデータ書込みの直前にデータが書き込まれた記憶領域に記憶されているデータを読み出すデータ再読出手段とを含み、上記データ書込手段による記憶領域へのデータの書込みは、その書込対象である記憶領域に記憶されているデータが消去されることにより、その記憶領域に特定データが一旦書き込まれた後、その記憶領域に記憶させておくべきデータを書き込むことにより達成され、上記データ読出手段によって読み出されたデータが上記特定データであれば、上記データ読出手段によるデータの読出しが不良であると判定されることを特徴とするデータ制御装置である。
【0007】
なお、括弧内の数字は、後述の実施形態における対応構成要素等を表す。以下、この項において同じである。
この発明によれば、データ記憶装置には、書込順序が規定された複数の記憶領域が設けられており、これら複数の記憶領域には、新たなデータが発生する度に、その新たなデータが書込順序に従って書き込まれていく。これにより、いずれかの記憶領域にデータの書込みが行われている途中で、データ記憶装置およびデータ制御装置への動作電力の供給が中止された場合に、その書込み途中であった記憶領域以外の記憶領域に記憶されているデータが失われたり、書込み途中であった記憶領域以外の記憶領域に破壊データが格納されたりすることを防止できる。
【0008】
また、複数の記憶領域のうちの所定の記憶領域から読み出されたデータが破壊データであったり、その記憶領域からデータを読み出すことができなかったりした場合には、その読出対象となった記憶領域とは異なる記憶領域に記憶されているデータが読み出される。これにより、データ記憶装置からのデータを確実に読み出すことができる。
【0009】
また、上記データ書込手段による記憶領域へのデータの書込みは、その書込対象である記憶領域に記憶されているデータが消去されることにより、その記憶領域に特定データが一旦書き込まれた後、その記憶領域に記憶させておくべきデータを書き込むことにより達成される。これにより、上記データ読出手段によって読み出されたデータが上記特定データであれば、上記データ読出手段によるデータの読出しが不良であると判定することができる。
【0010】
さらに、上記データ記憶装置に書き込まれるデータが、その性質上、時間経過とともに単調に増加する場合には、上記特定データ以外の最大データが書き込まれている記憶領域を、上記最も新しくデータの書込みが行われた記憶領域と判定してもよい。
【0013】
【発明の実施の形態】
以下では、この発明の実施の形態を、添付図面を参照して詳細に説明する。
図1は、この発明の一実施形態に係るデータ制御装置が適用されたパワーステアリング装置用の電子制御装置の構成を示すブロック図である。この電子制御装置10は、たとえば、電動モータにより駆動されるオイルポンプの発生油圧によって操舵補助力を発生するパワーステアリング装置に用いられるものであり、パワーステアリング装置の各部を制御するための主制御部20と、電動モータの累積作動時間を表すモータ作動時間データを記憶しておくためのデータ記憶部30と、このデータ記憶部30に対するモータ作動時間データの書換え(書込み)および読出しを制御するためのデータ制御部40とを備えている。
【0014】
主制御部20には、ステアリングホイールの操舵角を検出するための舵角センサや、電動モータに流れる電流を検出するためのモータ電流検出回路などからの信号が入力データとして与えられている。主制御部20は、上記各センサから与えられる入力データに基づいて、電動モータなどの各部に与えるべき制御信号を作成して出力する。
データ記憶部30は、たとえば、EEPROM(Electrically Erasable Programmable Read-Only Memory)やフラッシュメモリなどの不揮発性メモリからなる。データ記憶部30には、たとえば、それぞれ8個のセルからなる第1記憶領域31、第2記憶領域32および第3記憶領域33が設定されており、これらの記憶領域31,32,33に、それぞれ8ビットのモータ作動時間データを記憶させておくことができるようになっている。
【0015】
主制御部20は、たとえば、上記モータ電流検出回路から入力される信号に基づいて電動モータの作動時間を計測し、電動モータが一定時間作動する度に、データ記憶部30に記憶されているモータ作動時間データを書き換える旨のコマンドをデータ制御部40に与える。このコマンドを受けたデータ制御部40は、予め定められたプログラムに従って、データ記憶部30に記憶されているモータ作動時間データの書換えを行う。また、データ制御部40は、主制御部20からモータ作動時間データを読み出す旨のコマンドが与えられると、予め定められたプログラムに従って、データ記憶部30からモータ作動時間データを読み出し、その読み出したモータ作動時間データを主制御部20に与える。
【0016】
図2は、データ制御部40によるデータ記憶部30へのモータ作動時間データの書換え(書込み)、およびデータ記憶部30からのモータ作動時間データの読出しについて説明するための図である。
まず、図1および図2(a)を参照して、データ制御部40によるデータ記憶部30へのモータ作動時間データの書換えについて説明する。データ記憶部30の初期状態、すなわちデータ記憶部30の各記憶領域31,32,33に「11111111」が記憶されている状態で、主制御部20からデータ制御部40にモータ作動時間データを書き換える旨のコマンド(以下「書換コマンド」という。)が与えられると、第1記憶領域31にモータ作動時間データ「00000001」が書き込まれる。
【0017】
その後、電動モータが一定時間作動されて、主制御部20からデータ制御部40に書換コマンドが再び与えられると、データ制御部40によって、第1記憶領域31に記憶されているモータ作動時間データ「00000001」が読み出される。そして、その第1記憶領域31から読み出されたモータ作動時間データ「00000001」に「00000001」を足して得られるデータ「00000010」が新たなモータ作動時間データとされて、このモータ作動時間データ「00000010」が第2記憶領域32に書き込まれる。
【0018】
この後、電動モータがさらに一定時間作動されて、主制御部20からデータ制御部40に書換コマンドが与えられると、データ制御部40によって、第2記憶領域32に記憶されているモータ作動時間データ「00000010」が読み出される。そして、その第2記憶領域32から読み出されたモータ作動時間データ「00000010」に「00000001」を足して得られるデータ「00000011」が新たなモータ作動時間データとされて、このモータ作動時間データ「00000011」が第3記憶領域33に書き込まれる。
【0019】
第3記憶領域33にモータ作動時間データ「00000011」が書き込まれた後、さらに電動モータが一定時間作動されて、主制御部20からデータ制御部40に書換コマンドが与えられると、データ制御部40により、まず、第1記憶領域31に記憶されているモータ作動時間データ「00000001」が消去される。これにより、第1記憶領域31には、「11111111」が記憶されている状態となる。次に、第3記憶領域33に記憶されているモータ作動時間データ「00000011」が読み出される。そして、その第3記憶領域33から読み出されたモータ作動時間データ「00000011」に「00000001」を足して得られるデータ「00000100」が新たなモータ作動時間データとされて、このモータ作動時間データ「00000100」が第1記憶領域31に書き込まれる。
【0020】
こうして、データ制御部40は、データ記憶部30の記憶領域31,32,33に記憶されているモータ作動時間データを、この順序で循環的に書き換えていく。
ところで、上述のようなデータ制御部40によるモータ作動時間データの書換えが行われている途中で、このパワーステアリング装置が搭載された車両のイグニッションスイッチがオフにされて、電子制御装置10への動作電力の供給が中止されることが考えられる。電子制御装置10への動作電力の供給が中止されると、データ制御部40によるモータ作動時間データの書換えも中止される。
【0021】
たとえば、図2(b)に示すように、主制御部20からデータ制御部40に書換コマンドが入力された直後であって、第1記憶領域31の記憶データが消去される前に、車両のイグニッションスイッチがオフにされた場合、第1記憶領域31にはモータ作動時間データ「00000001」が残る。また、図2(c)に示すように、主制御部20からデータ制御部40に書換コマンドが入力されて、第1記憶領域31に記憶されているモータ作動時間データ「00000001」が消去された直後にイグニッションスイッチがオフにされた場合、第1記憶領域31にデータ「11111111」が記憶された状態となる。
【0022】
なお、データ記憶部30へのモータ作動時間データの書込みは最大254回しか行われず、モータ作動時間データの書込み途中でイグニッションスイッチがオフにされた場合を除き、データ記憶部30の記憶領域31,32,33にデータ「11111111」が記憶された状態のままになることはない。
イグニッションスイッチがオフにされて、第1記憶領域31にデータ「11111111」が記憶された状態になった後、イグニッションスイッチが再びオンにされ、その後に電動モータが一定時間作動したことに応答して、主制御部20からデータ制御部40に書換コマンドが入力されると、第1記憶領域31から「11111111」が読み出される。
【0023】
この第1記憶領域31から読み出されたデータ「11111111」は、第1記憶領域31の記憶データの書換えが行われている途中でイグニッションスイッチがオフにされたことにより記憶されたものであり、電動モータの累積作動時間を正確に表すデータではない。したがって、データ制御部40は、データ記憶部30の記憶領域31,32,33から読み出したデータが「11111111」である場合には、その記憶領域よりも1つ前にモータ作動時間データが書き込まれた記憶領域に記憶されているデータを読み出し、この新たに読み出したデータをモータ作動時間データとして、それ以後の処理を実行する。
【0024】
すなわち、第1記憶領域31から読み出されたデータが「11111111」であれば、第1記憶領域31よりも1つ前にモータ作動時間データが書き込まれた第3記憶領域33からデータ「00000011」が読み出される。そして、このデータ「00000011」がモータ作動時間データとされ、主制御部20からデータ制御部40に書換コマンドが入力された場合には、モータ作動時間データ「00000011」に「00000001」を足して得られるデータ「00000100」が第1記憶領域31に書き込まれる。また、主制御部20からデータ制御部40に読出コマンドが入力された場合には、第3記憶領域33から読み出されたモータ作動時間データ「00000011」が、データ制御部40から主制御部20に送信される。
【0025】
また、たとえば、パワーステアリング装置が搭載された車両の販売店などにおいてパワーステアリング装置を点検する際などに、その販売店に設置されているコンピュータと主制御部20とが接続され、この主制御部20を介して、モータ作動時間データを読み出す旨のコマンド(以下「読出コマンド」という。)がデータ制御部40に入力された場合には、このデータ制御部40によって、データ記憶部30の記憶領域31,32,33のうち、最も新しくデータが書き込まれた記憶領域からデータが読み出される。そして、その読み出されたデータが「11111111」である場合には、上述の場合と同様に、そのデータが読み出された記憶領域よりも1つ前にモータ作動時間データが書き込まれた記憶領域からデータが読み出される。
【0026】
以上のようにこの実施形態によれば、データ記憶部30には、データ書込順序が規定された3つの記憶領域31,32,33が設けられており、主制御部20からデータ制御部40に書換コマンドが入力されると、前回にモータ作動時間データが書き換えられた記憶領域の次の記憶領域に記憶されているモータ作動時間データの書換えが行われる。これにより、データ記憶部30の記憶領域31,32,33のいずれかへのモータ作動時間データの書込みが行われている途中で、電子制御装置10への動作電力の供給が中止された場合に、その書込み途中であった記憶領域に記憶されていたモータ作動時間データが失われて、その記憶領域に「11111111」が記憶された状態になるおそれはあっても、その他の記憶領域に記憶されているモータ作動時間データが失われることはない。
【0027】
したがって、データ記憶部30から読み出したデータが「11111111」であれば、その「11111111」が読み出された記憶領域とは異なる記憶領域に記憶されているモータ作動時間データを読み出すことにより、このモータ作動時間データを用いた処理を続行することができる。
なお、この実施形態では、イグニッションスイッチが一旦オフにされた後、イグニッションスイッチが再びオンにされ、その後に主制御部20からデータ制御部40に書換コマンドが入力されたときに、最も新しくデータ書換えが行われた記憶領域が判定されて、その記憶領域からデータが読み出されるとした。しかしながら、イグニッションスイッチが一旦オフにされると、データ制御部40が最も新しくデータを書き換えた記憶領域を判定できない構成である場合には、たとえば、データ「11111111」以外の最も大きいデータが記憶されている記憶領域を新しくデータを書き換えた記憶領域と判定してもよい。
【0028】
図3は、この発明の他の実施形態について説明するための図である。上述の実施形態では、主制御部20からデータ制御部40に書換コマンドが入力されると、前回にモータ作動時間データが書き換えられた記憶領域の次の記憶領域に記憶されているモータ作動時間データの書換えが行われるとしたのに対し、この実施形態では、主制御部20からデータ制御部40に書換コマンドが入力されると、データ記憶部30のすべての記憶領域31,32,33に記憶されているモータ作動時間データが順に書き換えられる。
【0029】
たとえば、データ記憶部30の各記憶領域31,32,33に、モータ作動時間データ「00000001」が記憶されている状態で、主制御部20からデータ制御部40に書換コマンドが与えられると、まず、記憶領域31,32,33に記憶されているモータ作動時間データ「00000001」が読み出される。そして、その読み出されたモータ作動時間データ「00000001」に「00000001」を足して得られるデータ「00000010」が新たなモータ作動時間データとされる。
【0030】
その後、第1記憶領域31に記憶されているモータ作動時間データ「00000001」が消去されて、この第1記憶領域31に新たなモータ作動時間データ「00000010」が書き込まれる。これにより、第1記憶領域31に記憶されているモータ作動時間データの書換えが達成される。
こうして第1記憶領域31に記憶されているモータ作動時間データの書換えが達成されると、次に、第2記憶領域32に記憶されているモータ作動時間データ「00000001」が消去されて、この第2記憶領域32に新たなモータ作動時間データ「00000010」が書き込まれる。
【0031】
そして、第2記憶領域32に記憶されているモータ作動時間データの書換えが達成された後に、第3記憶領域33に記憶されているモータ作動時間データ「00000001」が消去されて、この第3記憶領域33に新たなモータ作動時間データ「00000010」が書き込まれることにより、第3記憶領域33のモータ作動時間データの書換えが達成される。
この後、電動モータがさらに一定時間作動されて、主制御部20からデータ制御部40に新たに書換コマンドが与えられると、記憶領域31,32,33に記憶されているモータ作動時間データ「00000010」が読み出される。そして、その読み出されたモータ作動時間データ「00000010」に「00000001」を足して得られるデータ「00000011」が新たなモータ作動時間データとされて、上述の場合と同様にして、第1記憶領域31に記憶されているモータ作動時間データから順に書き換えられていく。
【0032】
すべての記憶領域31,32,33のモータ作動時間データの書換えが良好に行われた場合は、これらの記憶領域31,32,33には同一のモータ作動時間データが記憶されているので、上述のようにしてモータ作動時間データの書換えを良好に行うことができる。しかしながら、たとえば、いずれかの記憶領域へのモータ作動時間データの消去または書込みの途中で、このパワーステアリング装置が搭載された車両のイグニッションスイッチがオフにされた場合、その記憶領域には、消去または書込み途中の誤ったデータが格納されてしまう。このような場合、いずれの記憶領域31,32,33から読み出したデータを使用して、それ以後のデータ書換処理を続行すべきであるか判断する必要がある。また、主制御部20からデータ制御部40に読出コマンドが入力された場合、いずれの記憶領域31,32,33から読み出したデータを主制御部20に与えるべきであるか判断する必要がある。
【0033】
そこで、この実施形態では、データ記憶部30の記憶領域31,32,33から読み出されたデータに複数種類のデータが含まれる場合、その中で最も多く含まれているデータが、電動モータの累積作動時間を表す正しいデータであると判断されて、それ以後のデータ書換処理のために参照されたり、主制御部20に送信されたりするようになっている。
たとえば、図3(a)に示すように、第3記憶領域33に記憶されているモータ作動時間データが「00000010」から「00000011」に書き換えられる途中でイグニッションスイッチがオフにされると、第3記憶領域33には、消去または書込み途中の誤データ「*」が記憶される。この場合、第1記憶領域31および第2記憶領域32には同一のデータ「00000011」が記憶されているから、このデータ「00000011」が電動モータの累積作動時間を表す正しいデータであるとされる。
【0034】
また、図3(b)に示すように、第1記憶領域31に記憶されているモータ作動時間データが「00000010」から「00000011」に書き換えられる途中でイグニッションスイッチがオフにされると、第1記憶領域31には、消去または書込み途中の誤データ「*」が記憶される。この場合、第2記憶領域32および第3記憶領域33には同一のモータ作動時間データ「00000010」が記憶されているから、このデータ「00000010」が電動モータの累積作動時間を表す正しいデータであるとされる。
【0035】
図3(c)に示すように、第2記憶領域32に記憶されているモータ作動時間データが「00000010」から「00000011」に書き換えられる途中でイグニッションスイッチがオフにされると、第2記憶領域32には消去または書込み途中の誤データ「*」が記憶される。この場合、第1記憶領域31には、モータ作動時間データ「00000011」が記憶されており、第3記憶領域33には、モータ作動時間データ「00000010」が記憶されている。そのため、各記憶領域31,32,33から読み出されるデータの中に、同一のデータは含まれない。
【0036】
そこで、この図3(c)に示すような場合には、各記憶領域31,32,33から読み出されたデータの差が求められて、差が「00000001」となるデータの組み合わせが見つけ出される。そして、その見つけ出されたデータの組み合わせのうち、大きい方のデータが電動モータの累積作動時間を表す正しいデータであると判断されて、データ制御部40から主制御部20に送信される。すなわち、この場合には、第1記憶領域31から読み出されるデータ「00000011」と第3記憶領域33から読み出されるデータ「00000010」との差が「00000001」となるから、これらのデータ「00000011」および「00000010」のうちの大きい方のデータ「00000011」が、電動モータの累積作動時間を表す正しいデータであると判断される。
【0037】
以上のようにこの実施形態によれば、データ記憶部30には、データ書込順序が規定された3つの記憶領域31,32,33が設けられており、主制御部20からデータ制御部40に書換コマンドが入力されると、データ記憶部30のすべての記憶領域31,32,33に記憶されているモータ作動時間データが順に書き換えられる。これにより、データ記憶部30の記憶領域31,32,33のいずれかへのモータ作動時間データの書込みが行われている途中で、電子制御装置10への動作電力の供給が中止された場合に、その書込み途中であった記憶領域に記憶されていたモータ作動時間データが失われたり、その記憶領域に誤データ(破壊データ)が格納されるおそれはあっても、その他の記憶領域に記憶されているモータ作動時間データが失われることはない。
【0038】
また、この実施形態では、主制御部20からデータ制御部40に書換コマンドまたは読出コマンドが入力された場合には、データ記憶部30のすべての記憶領域31,32,33に記憶されているデータが読み出されて、その中で最も多く含まれているデータが電動モータの累積作動時間を表すデータであると判断される。これにより、モータ作動時間データの書込み途中で動作電力の供給が中止されたことによって格納された誤データが、それ以後のデータ書換処理などに用いられることを防止できる。
【0039】
この発明の実施の形態の説明は以上の通りであるが、この発明は、上述の実施の形態に限定されるものではない。たとえば、上述の実施形態では、この発明に係るデータ制御装置がパワーステアリング装置に備えられた場合を例にとったが、パワーステアリング装置以外の装置に備えられても構わない。
また、上述のいずれの実施形態においても、データ記憶部30には3つの記憶領域31,32,33が設けられているとしたが、データ記憶部30に設けられる記憶領域の数は3つに限定されない。たとえば、第1の実施形態では、データ記憶部30に設けられる記憶領域の数が2つであってもよい。また、第1および第2の実施形態において、データ記憶部30に4つ以上の記憶領域が設けられていてもよい。
【0040】
その他、特許請求の範囲に記載された事項の範囲で種々の設計変更を施すことが可能である。
【図面の簡単な説明】
【図1】この発明の一実施形態に係るデータ制御装置が適用されたパワーステアリング装置用の電子制御装置の構成を示すブロック図である。
【図2】モータ作動時間データ記憶部へのモータ作動時間データの書換え、およびモータ作動時間データ記憶部からのモータ作動時間データの読出しについて説明するための図である。
【図3】この発明の他の実施形態について説明するための図である。
【符号の説明】
30 データ記憶部(データ記憶装置)
31 第1記憶領域
32 第2記憶領域
33 第3記憶領域
40 データ制御部(データ制御装置)[0001]
BACKGROUND OF THE INVENTION
The present invention is applied to, for example, an electronic control unit of a power steering apparatus, and controls data writing and reading with respect to a data storage unit such as an EEPROM (Electrically Erasable Programmable Read-Only Memory) or a flash memory. The present invention relates to a control device.
[0002]
[Prior art]
For example, a power steering device that drives an oil pump by an electric motor under the control of an electronic control device, supplies hydraulic oil to a power cylinder coupled to a steering mechanism, and generates a steering assist force from the power cylinder is known. It has been. In such a power steering device, an electronic control device has a data storage unit for storing motor operation time data indicating the cumulative operation time of the electric motor, an error code indicating the content of an abnormality that has occurred in the past, and the like. There is something in the inside.
[0003]
The data storage unit includes a nonvolatile memory such as an EEPROM or a flash memory, and writing and reading of data to and from the data storage unit is controlled by the data control unit. For example, when the data storage unit stores the motor operation time data, the data control unit deletes the motor operation time data stored in the data storage unit every time the electric motor operates for a certain period of time. To write the motor operation time data to the data storage unit. Thereby, at the time of inspection of the power steering device, by reading the motor operating time data stored in the data storage unit, it is possible to confirm the cumulative operating time of the electric motor provided in the power steering device, For example, it can be easily determined whether maintenance of an electric motor or the like is necessary.
[0004]
[Problems to be solved by the invention]
However, when the data stored in the data storage unit is being erased and newly written, the ignition switch of the vehicle is turned off and the supply of operating power to the electronic control unit is stopped. Data stored in the data storage unit may be lost or destroyed.
In order to prevent such data loss or destruction, it is conceivable to provide a backup power source for supplying operating power to the electronic control unit for a certain time after the ignition switch is turned off. However, if a backup power supply is provided, the cost of the electronic control device (data control unit) is significantly increased.
[0005]
SUMMARY OF THE INVENTION An object of the present invention is to provide a data control apparatus that can prevent loss or destruction of all data stored in a data storage unit without causing a significant cost increase.
[0006]
[Means for Solving the Problems and Effects of the Invention]
To achieve the above object, the invention according to claim 1 controls writing and reading of data to and from a data storage device (30) having a plurality of storage areas (31, 32, 33) in which a writing order is defined. A data controller for sequentially writing different data in the plurality of storage areas in accordance with the writing order; and a predetermined storage area of the plurality of storage areas Data reading means for reading data stored in the storage area where data has been most recently written, and storage other than the predetermined storage area when the data reading means does not read data well. Data rereading means for reading data stored in a storage area in which data is written immediately before data is written to the predetermined storage area, which is an area; IncludingThus, data writing to the storage area by the data writing means is performed after specific data is once written to the storage area by erasing the data stored in the storage area to be written. If the data to be stored in the storage area is written and the data read by the data reading means is the specific data, it is determined that the data reading by the data reading means is defective. Be doneThis is a data control device.
[0007]
The numbers in parentheses indicate corresponding components in the embodiments described later. Hereinafter, this is the same in this section.
According to the present invention, the data storage device is provided with a plurality of storage areas in which the order of writing is defined, and each time new data is generated in the plurality of storage areas, the new data Are written according to the writing order. As a result, when the supply of operating power to the data storage device and the data control device is interrupted while data is being written to one of the storage regions, the storage region other than the storage region that was being written It is possible to prevent the data stored in the storage area from being lost or the destruction data from being stored in a storage area other than the storage area that was being written.
[0008]
In addition, when the data read from a predetermined storage area among the plurality of storage areas is destructive data or when data cannot be read from the storage area, the memory to be read is stored. Data stored in a storage area different from the area is read. This ensures that the data from the data storage device can be read out.The
[0009]
In addition, data writing to the storage area by the data writing means is performed after specific data is once written in the storage area by erasing the data stored in the storage area to be written. Achieved by writing data that should be stored in that storage areaThe ThisIf the data read by the data reading means is the specific data, it can be determined that the data reading by the data reading means is defective.
[0010]
Furthermore, when the data to be written to the data storage device increases monotonically with the passage of time, the storage area where the maximum data other than the specific data is written is changed to the newest data write. It may be determined that the storage area was performedYes.
[0013]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
FIG. 1 is a block diagram showing a configuration of an electronic control device for a power steering device to which a data control device according to an embodiment of the present invention is applied. The
[0014]
Signals from a steering angle sensor for detecting the steering angle of the steering wheel, a motor current detection circuit for detecting a current flowing through the electric motor, and the like are given to the
The
[0015]
For example, the
[0016]
FIG. 2 is a diagram for explaining rewriting (writing) of the motor operation time data to the
First, with reference to FIG. 1 and FIG. 2A, rewriting of motor operation time data to the
[0017]
Thereafter, when the electric motor is operated for a certain time and a rewrite command is given again from the
[0018]
Thereafter, when the electric motor is further operated for a certain time and a rewrite command is given from the
[0019]
After the motor operation time data “00000011” is written in the
[0020]
Thus, the
By the way, during the rewriting of the motor operation time data by the
[0021]
For example, as shown in FIG. 2B, immediately after the rewrite command is input from the
[0022]
Note that the motor operation time data is written to the
After the ignition switch is turned off and the data “11111111” is stored in the
[0023]
The data “11111111” read from the
[0024]
That is, if the data read from the
[0025]
Further, for example, when the power steering device is inspected at a dealer of a vehicle equipped with the power steering device, the computer installed in the dealer and the
[0026]
As described above, according to this embodiment, the
[0027]
Therefore, if the data read out from the
In this embodiment, after the ignition switch is once turned off, when the ignition switch is turned on again and then a rewrite command is input from the
[0028]
FIG. 3 is a diagram for explaining another embodiment of the present invention. In the above-described embodiment, when a rewrite command is input from the
[0029]
For example, when a rewrite command is given from the
[0030]
Thereafter, the motor operation time data “00000001” stored in the
When the rewriting of the motor operation time data stored in the
[0031]
After the rewriting of the motor operation time data stored in the
Thereafter, when the electric motor is further operated for a predetermined time and a new rewrite command is given from the
[0032]
When the rewriting of the motor operation time data in all the
[0033]
Therefore, in this embodiment, when a plurality of types of data are included in the data read from the
For example, as shown in FIG. 3A, if the ignition switch is turned off while the motor operating time data stored in the
[0034]
Further, as shown in FIG. 3B, when the ignition switch is turned off while the motor operation time data stored in the
[0035]
As shown in FIG. 3C, when the ignition switch is turned off while the motor operation time data stored in the
[0036]
Therefore, in the case shown in FIG. 3C, the difference between the data read from the
[0037]
As described above, according to this embodiment, the
[0038]
In this embodiment, when a rewrite command or a read command is input from the
[0039]
The embodiment of the present invention has been described above, but the present invention is not limited to the above-described embodiment. For example, in the above-described embodiment, the case where the data control device according to the present invention is provided in the power steering device is taken as an example, but the data control device may be provided in a device other than the power steering device.
In any of the above-described embodiments, the
[0040]
In addition, various design changes can be made within the scope of matters described in the claims.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration of an electronic control device for a power steering device to which a data control device according to an embodiment of the present invention is applied.
FIG. 2 is a diagram for describing rewriting of motor operating time data to a motor operating time data storage unit and reading of motor operating time data from a motor operating time data storage unit.
FIG. 3 is a diagram for explaining another embodiment of the present invention.
[Explanation of symbols]
30 Data storage unit (data storage device)
31 First storage area
32 Second storage area
33 Third storage area
40 Data control unit (data control device)
Claims (1)
前記書込順序に従って、前記複数の記憶領域に異なるデータを順に書き込むデータ書込手段と、
前記複数の記憶領域のうちの所定の記憶領域である最も新しくデータの書込みが行われた記憶領域に記憶されているデータを読み出すデータ読出手段と、
このデータ読出手段によってデータの読出しが良好に行われなかった場合に、前記所定の記憶領域以外の記憶領域である上記所定の記憶領域へのデータ書込みの直前にデータが書き込まれた記憶領域に記憶されているデータを読み出すデータ再読出手段とを含み、
上記データ書込手段による記憶領域へのデータの書込みは、その書込対象である記憶領域に記憶されているデータが消去されることにより、その記憶領域に特定データが一旦書き込まれた後、その記憶領域に記憶させておくべきデータを書き込むことにより達成され、
上記データ読出手段によって読み出されたデータが上記特定データであれば、上記データ読出手段によるデータの読出しが不良であると判定されることを特徴とするデータ制御装置。A data control device for controlling writing and reading of data to and from a data storage device having a plurality of storage areas in which a write order is defined,
Data writing means for sequentially writing different data in the plurality of storage areas according to the writing order;
Data reading means for reading data stored in a storage area in which data is most recently written, which is a predetermined storage area among the plurality of storage areas;
When the data reading means does not read the data well, the data is stored in the storage area where the data is written immediately before the data is written to the predetermined storage area other than the predetermined storage area. only contains the data re-read out means reads out the data that has been,
The data writing to the storage area by the data writing means is performed after the specific data is once written in the storage area by erasing the data stored in the storage area to be written. Achieved by writing data to be stored in the storage area,
If the data read by the data reading means is the specific data, it is determined that the data reading by the data reading means is defective .
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP36298999A JP3947643B2 (en) | 1999-12-21 | 1999-12-21 | Data control device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP36298999A JP3947643B2 (en) | 1999-12-21 | 1999-12-21 | Data control device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2001175543A JP2001175543A (en) | 2001-06-29 |
| JP3947643B2 true JP3947643B2 (en) | 2007-07-25 |
Family
ID=18478245
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP36298999A Expired - Fee Related JP3947643B2 (en) | 1999-12-21 | 1999-12-21 | Data control device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3947643B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP3998565B2 (en) | 2002-11-15 | 2007-10-31 | 任天堂株式会社 | Game machine, game data backup control program, and backup control method |
| JP5200688B2 (en) * | 2008-06-19 | 2013-06-05 | コニカミノルタビジネステクノロジーズ株式会社 | COUNT DATA RECORDING DEVICE AND COUNT DATA RECORDING METHOD |
-
1999
- 1999-12-21 JP JP36298999A patent/JP3947643B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2001175543A (en) | 2001-06-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN1097225C (en) | Method of updating program code for an optical disc drive microcontroller and an optical disc drive | |
| RU2142168C1 (en) | Method for complete rewriting of cleared non- volatile memory | |
| US8140216B2 (en) | Method of detecting manipulation of a programmable memory device of a digital controller | |
| JP4480815B2 (en) | Memory rewriting method and computer system | |
| KR920022093A (en) | How to operate a computer system with recoverable basic firmware | |
| JP3886539B2 (en) | How to load the operating system | |
| JP3947643B2 (en) | Data control device | |
| JP4302113B2 (en) | In-vehicle control device | |
| KR100299119B1 (en) | PC possessing apparatus for controlling flash ROM | |
| US20100083073A1 (en) | Data processing apparatus, memory controlling circuit, and memory controlling method | |
| US7979736B2 (en) | Method for updating nonvolatile memory | |
| JP2005338955A (en) | Electronic control unit | |
| US20050034034A1 (en) | Control device with rewriteable control data | |
| KR100836384B1 (en) | Self-diagnosis / repair vehicle electronic control device and its operation method | |
| JP2003271420A (en) | Electronic control unit | |
| JPH1011277A (en) | Computer device having electrically rewritable nonvolatile memory and nonvolatile semiconductor memory | |
| JP4734582B2 (en) | Non-volatile memory data update method, control device, and data update program | |
| JP4000932B2 (en) | Data control device | |
| JP2005128613A (en) | Image forming device | |
| JP2010134822A (en) | Semiconductor memory device | |
| JP2007041798A (en) | Information processing apparatus and memory rewriting method for information processing apparatus | |
| JP2001051910A (en) | Non-volatile memory device | |
| JP4812278B2 (en) | Data rewriting method for electronic control unit | |
| JPH04276838A (en) | Cpu with built-in memory | |
| JP3912447B2 (en) | Memory system and method of using external nonvolatile memory |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20060413 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20060627 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20060824 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20061226 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20070223 |
|
| 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: 20070327 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20070416 |
|
| R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| LAPS | Cancellation because of no payment of annual fees |