JP2006039876A - Data storage device - Google Patents
Data storage device Download PDFInfo
- Publication number
- JP2006039876A JP2006039876A JP2004217853A JP2004217853A JP2006039876A JP 2006039876 A JP2006039876 A JP 2006039876A JP 2004217853 A JP2004217853 A JP 2004217853A JP 2004217853 A JP2004217853 A JP 2004217853A JP 2006039876 A JP2006039876 A JP 2006039876A
- Authority
- JP
- Japan
- Prior art keywords
- data
- numerical data
- numerical
- latest
- stored
- 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.)
- Granted
Links
- 238000013500 data storage Methods 0.000 title claims description 22
- 230000002159 abnormal effect Effects 0.000 claims description 15
- 230000004044 response Effects 0.000 abstract description 2
- 238000000034 method Methods 0.000 description 22
- 230000008569 process Effects 0.000 description 22
- 230000008859 change Effects 0.000 description 11
- 230000005856 abnormality Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 238000007664 blowing Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 230000005855 radiation Effects 0.000 description 3
- 239000004065 semiconductor Substances 0.000 description 2
- 238000004378 air conditioning Methods 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Landscapes
- Techniques For Improving Reliability Of Storages (AREA)
- Read Only Memory (AREA)
- Air-Conditioning For Vehicles (AREA)
- Air Conditioning Control Device (AREA)
Abstract
Description
本発明は、データ記憶装置に関する。 The present invention relates to a data storage device.
従来、データの書き込み中に電源が遮断された場合にも、記憶すべきデータを有効に保持しえる半導体記憶装置が提案されている(例えば、特許文献1参照。)。この特許文献1に開示されている半導体記憶装置では、記憶すべきデータが、バックアップデータ及びそのミラーデータの組であり、この1組のバックアップデータ及びそのミラーデータを、不揮発性メモリであるEEPROMの少なくとも2つの記憶領域に順次書き込む。
Conventionally, there has been proposed a semiconductor memory device capable of effectively holding data to be stored even when the power is cut off during data writing (see, for example, Patent Document 1). In the semiconductor memory device disclosed in
例えば、1組のバックアップデータ及びそのミラーデータは、EEPROMにおいて30番地毎に3箇所に記憶される。一例として、バックアップデータは、0番地、30番地、60番地に、ミラーデータは1番地、31番地、61番地に記憶される。
For example, a set of backup data and its mirror data are stored in three locations every 30 addresses in the EEPROM. As an example, backup data is stored at
そして、EEPROMへのデータ書き込み処理は、それら6個のアドレスに対して、それぞれ個別に書き込み命令がなされることによって実行される。このため、上述した1組のバックアップデータ及びミラーデータの書き込み処理中に、EEPROMへの電源の供給が遮断されても、その遮断時に書き込まれていたアドレスのデータのみが無効となり、他のアドレスには、更新後のデータもしくは更新前のデータが保持される。
しかしながら、従来装置では、書き込み処理中の電源の遮断にかかわらず、記憶すべきデータを保持するため、バックアップデータを少なくとも2箇所、好ましくは3箇所の番地に記憶する。さらに、このバックアップデータの信頼性を確保するために、バックアップデータのミラーデータも、同数記憶する。 However, in the conventional apparatus, the backup data is stored in at least two, preferably three, addresses in order to retain the data to be stored regardless of the interruption of the power supply during the writing process. Further, in order to ensure the reliability of the backup data, the same number of mirror data of the backup data is stored.
このため、1つのバックアップデータを記憶するために多数の記憶領域が必要となる。従って、記憶すべきデータ数が増えれば、不揮発性メモリにおいて必要な記憶容量も膨大なものとなってしまう。 Therefore, a large number of storage areas are required to store one backup data. Therefore, if the number of data to be stored increases, the storage capacity required in the nonvolatile memory will become enormous.
本発明は、上述した点に鑑みてなされたもので、不揮発性メモリへの書き込み中に電源の遮断が生じた場合であっても、記憶データの信頼性を確保しながら、必要な記憶領域を削減することが可能なデータ記憶装置を提供することを目的とする。 The present invention has been made in view of the above points, and even when a power interruption occurs during writing to a nonvolatile memory, a necessary storage area is secured while ensuring the reliability of stored data. It is an object to provide a data storage device that can be reduced.
上記目的を達成するために、請求項1に記載のデータ記憶装置は、
記憶内容を電気的に書き換え可能な不揮発性メモリと、
所定の記憶データを、不揮発性メモリに書き込むデータ書き込み手段とを備えて、
電源がオフされたときにも、記憶データを保持可能に構成されたデータ記憶装置であって、
データ書き込み手段は、所定の数値範囲において、記憶データの書き込みごとに所定の規則に従って変化する数値データを生成する数値データ生成手段を有し、数値データと記憶データとを組として、不揮発性メモリに書き込むものであり、
不揮発性メモリは、少なくとも3組の数値データ及び記憶データを記憶する領域を有し、さらに、
不揮発性メモリに記憶された少なくとも3組の数値データ及び記憶データを読み出して、その中の数値データを相互比較して、数値データが所定の規則に従って変化しているか否かを判定する判定手段を備え、
判定手段によって、数値データが所定の規則に従って変化していると判定された場合に、数値データにおける最新数値データを特定し、その最新数値データに対応する記憶データを最新の記憶データとすることを特徴とする。
In order to achieve the above object, a data storage device according to
Non-volatile memory that can electrically rewrite the memory contents,
A data writing means for writing predetermined storage data into the nonvolatile memory;
A data storage device configured to retain stored data even when the power is turned off,
The data writing means has numerical data generating means for generating numerical data that changes according to a predetermined rule every time the stored data is written within a predetermined numerical range, and sets the numerical data and the stored data as a set in the nonvolatile memory. Write,
The nonvolatile memory has an area for storing at least three sets of numerical data and storage data, and
Determining means for reading at least three sets of numerical data and stored data stored in a non-volatile memory and comparing the numerical data in the data to determine whether the numerical data is changing according to a predetermined rule; Prepared,
When it is determined by the determination means that the numerical data is changing according to a predetermined rule, the latest numerical data in the numerical data is specified, and the storage data corresponding to the latest numerical data is set as the latest stored data. Features.
上述したように、請求項1に記載のデータ記憶装置では、記憶データが正しく書き込まれているか否かを判別するために、記憶データの書き込みごとに所定の規則で変化する数値データを用いる。ここで、不揮発性メモリに記憶されている数値データを相互比較した結果、所定の規則に従って変化していると判定された場合、その数値データは、不揮発性メモリに正しく書き込まれたと考えられる。記憶データは数値データと組をなして、略同時期に不揮発性メモリに書き込まれるので、数値データの書き込みが正常に行なわれた場合には、記憶データも正常に書き込まれた可能性が非常に高い。このような理由から、数値データを用いて、記憶データが正しく書き込まれたか否かを判別できるのである。従って、不揮発性メモリへの書き込み中に電源の遮断が生じた場合であっても、記憶データの信頼性を確保することができる。 As described above, in the data storage device according to the first aspect, in order to determine whether or not the stored data is correctly written, numerical data that changes according to a predetermined rule every time the stored data is written is used. Here, when it is determined that the numerical data stored in the nonvolatile memory is changed according to a predetermined rule as a result of mutual comparison, it is considered that the numerical data is correctly written in the nonvolatile memory. The stored data is paired with the numerical data and written to the non-volatile memory at approximately the same time. Therefore, if the numerical data is normally written, the stored data may have been written normally. high. For this reason, it is possible to determine whether or not the stored data is correctly written using numerical data. Therefore, the reliability of stored data can be ensured even when the power supply is interrupted during writing to the nonvolatile memory.
そして、数値データを用いることにより、従来のように、1つの記憶データを記憶するために、不揮発性メモリにおいて複数箇所へ書き込みを行なう必要がなくなる。この結果、従来に比較して、保存すべきデータを記憶するための記憶領域を削減することが可能になる。 By using numerical data, there is no need to write in a plurality of locations in the nonvolatile memory in order to store one piece of stored data as in the prior art. As a result, it is possible to reduce a storage area for storing data to be saved, as compared with the conventional case.
請求項2に記載したように、車両に搭載された車載機器を制御する制御部を備え、記憶データは、制御部が車載機器の制御に使用する制御データであることが好ましい。通常、車両に搭載された車載機器やその制御部は、イグニッションスイッチがオフされたときに電源の供給が停止される。車両の運転者によっていつイグニッションスイッチがオフされるかは予測できないので、車載機器を制御するために制御部が使用する制御データを記憶するために、上述した構成を採用することが好ましい。 According to a second aspect of the present invention, it is preferable that a control unit for controlling the in-vehicle device mounted on the vehicle is provided, and the stored data is control data used by the control unit for controlling the in-vehicle device. Normally, the on-vehicle equipment mounted on the vehicle and its control unit stop supplying power when the ignition switch is turned off. Since it cannot be predicted when the ignition switch is turned off by the driver of the vehicle, it is preferable to employ the above-described configuration in order to store control data used by the control unit to control the in-vehicle device.
請求項3に記載したように、数値データのデータサイズは、記憶データのデータサイズより小さいことが好ましい。これにより、不揮発性メモリにおける必要な記憶容量をより削減することができる。 As described in claim 3, the data size of the numerical data is preferably smaller than the data size of the stored data. Thereby, the required storage capacity in the nonvolatile memory can be further reduced.
請求項4に記載したように、データ書き込み手段は、不揮発性メモリが最新の少なくとも3組の数値データ及び記憶データを記憶できるように、最も古い1組の数値データ及び記憶データを記憶している領域に、最新の1組の数値データ及び記憶データを上書き書き込みすることが好ましい。このように、最も古い1組の数値データ及び記憶データに対して最新の1組の数値データ及び記憶データを上書きすることにより、必要な記憶領域のサイズを小さく保ちながら、常に、最新の少なくとも3組の数値データ及び記憶データを記憶することができる。 The data writing means stores the oldest set of numerical data and stored data so that the nonvolatile memory can store at least the latest three sets of numerical data and stored data. It is preferable to overwrite the latest set of numerical data and stored data in the area. In this way, by overwriting the latest set of numerical data and storage data with respect to the oldest set of numerical data and storage data, the size of the necessary storage area is always kept small, and the latest at least 3 A set of numerical data and stored data can be stored.
請求項5に記載したように、データ書き込み手段は、記憶データ、数値データの順に不揮発性メモリに書き込むことが好ましい。数値データ、記憶データの順に不揮発性メモリに書き込む場合、数値データの書き込み後、記憶データの書き込み中に電源が遮断されると、数値データの書き込みは正常であるが、記憶データは異常な書き込みがなされる場合がありえる。この場合、数値データは所定の規則に従って変化しているにも係らず、記憶データに異常が生じてしまう。このような問題の発生は、記憶データ、数値データの順に不揮発性メモリに書き込むことにより、防止することができる。 According to a fifth aspect of the present invention, the data writing means preferably writes the storage data and numerical data in the nonvolatile memory in this order. When writing numerical data in the order of stored data to the nonvolatile memory, if the power is turned off while the stored data is being written after the numerical data is written, the numerical data is written normally, but the stored data is written abnormally. It can be done. In this case, although the numerical data changes in accordance with a predetermined rule, an abnormality occurs in the stored data. Such a problem can be prevented by writing the stored data and the numerical data in the nonvolatile memory in this order.
請求項6に記載したように、不揮発性メモリは、データ書き込み手段によって最初の1組の数値データ及び記憶データが書き込まれる前に、数値データを記憶する全ての領域に、数値範囲における初期値が書き込まれていることが好ましい。これにより、少なくとも3組の数値データ及び記憶データが不揮発性メモリに書き込まれる以前においても、判定手段は、この初期値を数値データとして読み出し、数値データが所定の規則に従って変化しているか否かを判定することができる。 According to the sixth aspect of the present invention, the initial value in the numerical range is stored in all the areas storing the numerical data before the first set of numerical data and stored data is written by the data writing means. It is preferably written. Thereby, even before at least three sets of numerical data and stored data are written in the non-volatile memory, the determination means reads the initial value as numerical data, and determines whether the numerical data changes according to a predetermined rule. Can be determined.
請求項7に記載したように、データ書き込み手段は、次に書き込むべき数値データが所定の数値範囲における限界値を超える場合、初期値を不揮発性メモリに書き込むことが好ましい。これにより、所定の数値範囲において、数値データは、記憶データの書き込みごとに所定の規則に従う変化を繰り返すことができる。 The data writing means preferably writes the initial value in the nonvolatile memory when the numerical data to be written next exceeds a limit value in a predetermined numerical range. Thereby, in the predetermined numerical range, the numerical data can repeat the change according to the predetermined rule every time the stored data is written.
請求項8に記載したように、判定手段は、数値データが限界値と初期値とを含む場合、数値データは所定の規則に従って変化していると判定することが好ましい。これにより、判定手段は、限界値と初期値とを相互比較したときに、所定の規則に従って変化していないと誤って判定することを防止することができる。 Preferably, the determination means determines that the numerical data changes according to a predetermined rule when the numerical data includes a limit value and an initial value. Thereby, the determination means can prevent erroneously determining that it has not changed according to a predetermined rule when the limit value and the initial value are compared with each other.
請求項9に記載したように、判定手段は、3つの数値データの中から、2つの数値データを順次選んで比較することにより、計3回の数値データの相互比較を行なうものであり、この計3回の相互比較において、数値データが所定の規則に従って変化しているとの判定が2回なされたとき、3組の数値データ及び記憶データの書き込みが正常であるとみなし、3組の数値データ及び記憶データの中から、最新数値データを特定するとともに、その最新数値データに対応する記憶データを最新の記憶データとすることが好ましい。 As described in claim 9, the determination means performs a mutual comparison of the numerical data three times in total by sequentially selecting and comparing the two numerical data from the three numerical data. In a total of three inter-comparisons, when it is determined twice that the numerical data has changed according to a predetermined rule, it is considered that the writing of three sets of numerical data and stored data is normal, and three sets of numerical values It is preferable that the latest numerical data is specified from the data and the stored data, and the storage data corresponding to the latest numerical data is the latest stored data.
3つの数値データがすべて正しく書き込まれている場合、3つの数値データの中から2つの数値データを順次選んで計3回の数値データの相互比較を行なうと、最新の数値データと前回の数値データ、及び前回の数値データと前々回の数値データとの比較においては、所定の規則に従う変化を示すことになる。それに対して、最新の数値データと前々回の数値データとの比較においては、所定の規則とは異なる変化を示す。このように、計3回の数値データの相互比較において、数値データが所定の規則に従って変化しているとの判定が2回なされた場合には、3つの数値データのすべてが正しく書き込まれているとみなすことができる。 If all three numerical data are written correctly, the two numerical data are selected from the three numerical data in sequence and the numerical data is compared three times in total. In the comparison between the previous numerical data and the previous numerical data, changes according to a predetermined rule are shown. On the other hand, in the comparison between the latest numerical data and the previous numerical data, changes different from the predetermined rule are shown. In this way, in the mutual comparison of the numerical data for a total of three times, when it is determined twice that the numerical data is changing according to a predetermined rule, all three numerical data are correctly written. Can be considered.
請求項10に記載したように、計3回の相互比較において、数値データが所定の規則に従って変化しているとの判定が1回なされたとき、1組の数値データ及び記憶データの書き込みが異常であるが、2組の数値データ及び記憶データの書き込みが正常であるとみなし、2組の数値データ及び記憶データの中から、最新数値データを特定するとともに、その最新数値データに対応する記憶データを最新の記憶データとすることが好ましい。
As described in
3つの数値データの内、1つの数値データの書き込みが異常であると、その1つの数値データは他の2つの数値データとそれぞれ比較されるので、所定の規則とは異なる変化をしているとの判定が2回なされることになる。換言すれば、3つの数値データの内、1つの数値データの書き込みが異常であると、所定の規則に従って変化しているとの判定は1回のみしかなされない。 If the writing of one numerical data is abnormal among the three numerical data, the one numerical data is compared with the other two numerical data, respectively. This determination is made twice. In other words, if writing of one numerical data out of three numerical data is abnormal, it is determined only once that it has changed according to a predetermined rule.
ただし、この場合、3つの数値データのうち2つの数値データは正常に書き込まれていると考えられるので、その2つの数値データにおける最新数値データを特定することにより、その最新数値データに対応する記憶データを最新の記憶データとすることが可能である。この場合、実際には最新の記憶データではない可能性もあるが、少なくとも前回の記憶データが最新の記憶データとされる。 However, in this case, it is considered that two of the three numerical data are normally written. Therefore, by specifying the latest numerical data in the two numerical data, the memory corresponding to the latest numerical data is stored. The data can be the latest stored data. In this case, although there is a possibility that it is not actually the latest stored data, at least the previous stored data is the latest stored data.
このように、少なくとも3つの数値データを用いることにより、1つの数値データに異常が生じても、最新の記憶データもしくはそれに近似した記憶データを保持することが可能になる。 As described above, by using at least three numerical data, even if an abnormality occurs in one numerical data, it is possible to hold the latest stored data or stored data approximate thereto.
請求項11に記載したように、計3回の相互比較において、数値データが所定の規則に従って変化していないとの判定が3回なされたとき、3組の数値データ及び記憶データの書き込みが異常であるとみなし、予め定められたデフォルトデータを最新の記憶データとすることが好ましい。
As described in
計3回の相互比較において、数値データが所定の規則に従って変化していないとの判定が3回なされるのは、少なくとも2つの数値データに異常が生じている状況である。この場合、いずれの数値データが正常であるか特定できないので、3組の数値データ及び記憶データの書き込みが異常であったとみなす。そして、記憶されている記憶データから最新の記憶データを特定することができないので、予め定められたデフォルトデータを最新の記憶データとする。 In a total of three mutual comparisons, it is determined that the numerical data is not changed according to a predetermined rule three times because there is an abnormality in at least two numerical data. In this case, since it cannot be specified which numerical data is normal, it is considered that writing of the three sets of numerical data and stored data is abnormal. Since the latest stored data cannot be specified from the stored data, the default data set in advance is set as the latest stored data.
以下、本発明の好ましい実施形態について図面を参照して説明する。本実施形態では、データ記憶装置が車両用制御装置としてのオートエアコン制御装置100に適用された例を説明する。オートエアコン制御装置100は、乗員が車室内の温度を希望の温度に設定すると、空調システムの吹き出し温度、風量、風の吹き出しパターンなどを自動調節することにより車室外の温度や日射の強さによる影響を自動補正し、車室内温度を常に一定に保つようにコントロールするシステムである。図1は、本実施形態によるオートエアコン制御装置100の概略構成を示すブロック図である。以下、本実施形態によるオートエアコン制御装置100について詳細に説明する。
Hereinafter, preferred embodiments of the present invention will be described with reference to the drawings. In the present embodiment, an example will be described in which the data storage device is applied to an automatic air
図1に示すように、オートエアコン制御装置100のエアコンECU40には、スイッチ入力回路10、センサ入力回路20、及びパネル表示回路30が接続されている。さらに、モータ駆動回路50、リレー駆動回路60、及び風量調整用パワートランジスタ駆動回路70が接続されている。
As shown in FIG. 1, a
スイッチ入力回路10は、オートエアコンの操作パネル(図示せず)の操作に対応するスイッチ信号をエアコンECU40に入力する回路である。例えば、操作パネルには、温度設定スイッチの他、コンプレッサをオン/オフするエアコンスイッチ、風量調節スイッチ、吹き出し口切換スイッチ、外気導入、内気循環の切換スイッチ等が設けられている。これらのスイッチのいずれかが操作されると、その操作に対応するスイッチ信号がエアコンECU40に入力される。
The
センサ入力回路20は、A/D変換回路等からなり、車室内外の温度を検出する内外気温センサの検出値、日射量を検出する日射センサの検出値等をデジタル信号に変化して、エアコンECU40に入力する。
The
パネル表示回路30は、エアコンECU40から入力された表示信号に基づく表示内容を、操作パネルの表示装置(図示せず)に表示する回路である。例えば、エアコンECU40は、乗員によって設定された温度や、外気温センサによって検出された外気温度、さらには、風量、風の吹き出しパターンなどを、操作パネルの表示装置に表示させる。
The
次に、オートエアコン制御装置100のエアコンECU40の構成について、図2を用いて説明する。図2は、本実施形態によるエアコンECU40の構成を示すブロック図である。同図に示すようにエアコンECU40は、定電圧回路43、CPU44、EEPROM45、及びシリアル通信線46によって構成され、キースイッチ42を介して、車両に搭載されたバッテリ41から電力を供給されることによって動作する。
Next, the configuration of the
キースイッチ42は、バッテリ41の電力をオートエアコン制御装置100に供給し又は遮断するために設けられている。キースイッチ42をオンすることにより、オートエアコン制御装置100はバッテリ41からの電力の供給を受けて、動作をすることができる。なお、キースイッチ41としては、エンジン始動に伴って自動的にオンにされるものや、直接ユーザーが操作することによるスイッチ等がある。
The
定電圧回路43は、キースイッチ42を介して、バッテリ41から12Vの直流電圧を受けて5Vの定電圧を発生する。
The
CPU44は、所定のプログラムに従って、各種の演算処理を実行して、後述するモータ駆動回路50、リレー駆動回路60、及び風量調整用パワートランジスタ駆動回路70を制御するための制御信号を算出する。具体的には、CPU44は、オートエアコンの操作パネルからのスイッチ信号、各所に設置されたセンサからのセンサ信号に基づいて、各駆動回路50,60,70に対する制御信号を算出する。
The
EEPROM45は、記憶内容を電気的に書き換え可能な不揮発性メモリの1種である。このEEPROM45には、オートエアコンの制御において使用される制御データ(例えば、設定温度データ、エアコンスイッチオン/オフデータ等)と、制御データの更新ごとに、所定の規則に従って変化する数値データとを組として、制御データの種類ごとに、少なくとも3組の数値データ及び制御データが記憶される。このEEPROM45は、CPU44がシリアル通信線46を介して接続されており、CPU44によってデータの書き込み及び読出しがなされる。
The
上述した制御データはオートエアコン制御の実行時において更新されることがある。そして、キースイッチ42がいったんオフされ、再びオンとされた後にオートエアコン制御を実行する場合、前回までのオートエアコン制御実行時において更新された最新の制御データに従って、制御を開始する必要がある。このため、CPU44は制御データをEEPROM45に記憶させることにより、制御データのバックアップを行なう。そして、キースイッチ42がオンされた直後に、CPU44はEEPROM45に記憶された制御データを読み込んで、その制御データに基づいてオートエアコン制御を開始するのである。
The above-described control data may be updated when the automatic air conditioner control is executed. When the auto air conditioner control is executed after the
モータ駆動回路50は、オートエアコンにおいて使用される各サーボモータに関して、モータ正転/逆転の切替え、目標位置での停止、モータロック時の過電流保護(モータ印加電圧の遮断)を行なう回路である。具体的には、モータ駆動回路50は、エアコンECU40からの制御信号に基づいて、吹き出し温度を調節するエアミックス開度調節用サーボモータ、吹出し口切替え用サーボモータ、及び吸込み口切替え用サーボモータを制御する。
The
リレー駆動回路60は、エアコンECU40からの制御信号に基づいて、コンプレッサとエンジンとの連結/遮断を切り換える電磁クラッチへの通電を制御するものである。具体的には、エアコンスイッチがオンされたとき、エアコンECU40からコンプレッサとエンジンとを連結するための制御信号が出力され、これを受けてリレー駆動回路は、電磁クラッチの通電回路におけるリレースイッチをオンする。これにより、電磁クラッチが作動して、コンプレッサはエンジンの回転によって駆動される状態となる。
The
風量調整用パワートランジスタ駆動回路70は、エアコンECU40からデジタル信号で出力された風量信号をアナログ信号に変換して、送風機の速度調節用パワートランジスタを制御する回路である。これにより、吹き出し口から車室内に送出される風量が制御される。
The air volume adjusting power
次に、本実施形態におけるEEPROM45への数値データ及び制御データの書き込みに関して説明する。
Next, the writing of numerical data and control data to the
本実施形態では、EEPROM45の記憶領域に書き込まれた1つの制御データが異常であった場合であっても、EEPROM45による制御データのバックアップ機能が維持されるように、制御データの種類ごとに、最新の1組の数値データ及び制御データの他に、少なくとも2組の前回及び前々回の数値データ及び制御データを記憶させる。すなわち、EEPROM45では、各制御データに関して、少なくとも最新及び過去の3組の数値データ及び制御データを記憶するための領域が確保されている。
In the present embodiment, the latest data for each type of control data is maintained so that the control data backup function by the
CPU44は、制御データの書き込みごとに所定の規則で変化する数値データを生成し、制御データとともに、EEPROM45に書き込む。この際、CPU44は、EEPROM45に既に書き込まれている数値データを読み出して、この数値データに基づいて、所定の規則に従って変化する、次に書き込むべき数値データを生成する。さらに、読み出した数値データから、最も古い数値データと制御データの組を特定し、それに上書きするように、最新の1組の数値データと制御データとを書き込む。これにより、EEPROM45は、必要な記憶領域のサイズを小さく保ちながら、常に、最新のものから順に古くなる少なくとも3組の数値データ及び記憶データを記憶することができる。
The
なお、本実施形態における、制御データのデータサイズは4バイトであり、数値データのデータサイズは1バイトである。この数値データは、制御データの正常/異常を判別するためにも利用される。本実施形態では、このように、制御データよりもデータサイズの小さい数値データを用いて、制御データの正常/異常を判別するようにしている。このため、制御データの信頼性を確保しながら、EEPROM45における制御データの記憶に必要な記憶容量をより低減させることができる。
In this embodiment, the data size of the control data is 4 bytes, and the data size of the numerical data is 1 byte. This numerical data is also used to determine whether the control data is normal or abnormal. In the present embodiment, normal / abnormal control data is determined using numerical data having a data size smaller than that of the control data. For this reason, the storage capacity required for storing the control data in the
ここで、数値データを利用した、制御データの正常/異常の判別原理について説明する。上述したように、数値データとして、制御データの書き込みごとに所定の規則で変化する数値データが生成され、制御データとともにEEPROM45に記憶される。一方、EEPROM45には、最新のものから順に古くなる少なくとも3組の数値データ及び記憶データが記憶されている。このEEPROM45に記憶されている少なくとも3つの数値データを読み出して相互比較した結果、所定の規則に従って変化していると判定された場合、それらの数値データは、EEPROM45に正しく書き込まれたと考えられる。
Here, the principle of control data normality / abnormality using numerical data will be described. As described above, numerical data that changes according to a predetermined rule every time the control data is written is generated as numerical data, and is stored in the
制御データは数値データと組をなして、略同時期にEEPROM45に書き込まれるので、数値データの書き込みが正常に行なわれた場合には、制御データもEEPROM45に正常に書き込まれた可能性が非常に高い。このような理由から、数値データの規則性を用いて、制御データが正しく書き込まれたか否かを判別できるのである。
Since the control data forms a pair with the numerical data and is written into the
また、本実施形態では、CPU44は、制御データ、数値データの順にEEPROM45に書き込むようにしている。これは、数値データは正常であるが、制御データが異常となる状況を確実に回避するためである。詳しく説明すると、数値データ、制御データの順に不揮発性メモリに書き込む場合において、数値データの書き込み後、制御データの書き込み中に電源が遮断されると、数値データの書き込みは正常であるが、制御データは異常な書き込みがなされる場合がありえる。この場合、数値データは所定の規則に従って変化しているにも係らず、制御データに異常が生じてしまう。このため、本実施形態では、制御データ、数値のデータの順にEEPROM45に書き込むようにしているのである。
In this embodiment, the
さらに、本実施形態では、EEPROM45は、CPU44によって最初の1組の数値データ及び制御データが書き込まれる前に、数値データを記憶する全ての記憶領域に、数値データの数値範囲「00〜FF」における初期値「00」が書き込まれている。これにより、少なくとも3組の数値データ及び制御データがEEPROM45に書き込まれる以前においても、CPU44は、この初期値「00」を数値データとして読み出し、数値データが所定の規則に従って変化しているか否かを判定することができる。
Further, in the present embodiment, the
次に、本実施形態における、数値データに関する所定の規則について具体的に説明する。本実施形態における所定の規則は、制御データの更新ごとに、更新前の最新数値データに「01」を加算するというものである。具体的には、制御データの1回目の更新がされた場合、初期値「00」に「01」を加算することによって、更新された数値データは「01」になる。制御データの2回目の更新がされた場合、更新前の最新数値データ「01」に「01」を加算することによって、更新された数値データは「02」になる。 Next, specific rules regarding numerical data in the present embodiment will be specifically described. The predetermined rule in this embodiment is to add “01” to the latest numerical data before update every time the control data is updated. Specifically, when the control data is updated for the first time, the updated numerical data becomes “01” by adding “01” to the initial value “00”. When the control data is updated for the second time, the updated numerical data becomes “02” by adding “01” to the latest numerical data “01” before the update.
また、本実施形態では、CPU44は、次に書き込むべき数値データが、数値範囲「00〜FF」における限界値「FF」を超える場合、初期値「00」をEEPROM45に書き込む。これにより、「00〜FF」において、数値データは、制御データの更新ごとに所定の規則に従って変化を繰り返すことができる。
In the present embodiment, the
なお、本実施形態では、数値データが限界値「FF」を超える場合、初期値「00」をEEPROM45に書き込むので、少なくとも3つの数値データが限界値「FF」と初期値「00」とを含む場合、数値データ「00」と「FF」は所定の規則に従って変化していると判定する。これにより、CPU44は、限界値「FF」と初期値「00」とを相互比較し、初期値「00」が所定の規則に従って変化していないと誤って判定することを防止することができる。
In the present embodiment, when the numerical data exceeds the limit value “FF”, the initial value “00” is written in the
次に、数値データと制御データとを組としたデータの、EEPROM45への書き込みの一例を、図3を用いて具体的に説明する。図3は、EEPROM45のアドレスマップを示す図である。
Next, an example of writing data, which is a set of numerical data and control data, into the
図3の例に示すように、制御データの種類ごとに、1組の数値データ及び制御データを記憶する記憶領域が3つずつ割り当てられている。例えば、エアコンスイッチオン/オフデータに関しては、0番地、10番地、20番地の3つの記憶領域が割り当てられている。なお、これら3つの記憶領域において、最新の1組の数値データ及び制御データを書き込む順番は予め定められている。例えば、エアコンスイッチオフ/オンデータに関しては、制御データの更新ごとに、0番地、10番地、20番地、0番地の順に、最新の1組の数値データ及び制御データが書き込まれる。図3の例では、0番地には、数値データ「01」及び制御データ「DA1」が書き込まれており、この1組のデータは前々回のデータである。また、10番地には、数値データ「02」及び制御データ「DA2」が書き込まれており、この1組のデータは前回のデータである。さらに、20番地には、数値データ「03」及び制御データ「DA3」が書き込まれており、この1組のデータは最新のデータである。この最新の制御データ「DA3」が更新され、最新の制御データが「DA4」になった場合、CPU44は、記憶されている数値データにおける最新のデータ「03」に基づいて、所定の規則(前回の数値データに「01」を加算する)に従って変化する、次に書き込むべき数値データ「04」を生成する。CPU44は、この最新の1組の数値データ「04」及び制御データ「DA4」を、書き込み順に従って、0番地の記憶領域に上書き書き込みする。
As shown in the example of FIG. 3, for each type of control data, three storage areas for storing one set of numerical data and control data are allocated. For example, regarding the air conditioner switch on / off data, three storage areas of
次に、本実施形態における、数値データを用いたデータ整合性チェック処理について、図4及び図5のフローチャートと図6の説明図とを用いて詳細に説明する。なお、図4は、データ整合性チェック処理の前半部分を示すフローチャートであり、図5は、データ整合性チェック処理の後半部分を示すフローチャートである。また、図6は、数値データ及び制御データの相互関係を説明するための説明図である。 Next, the data consistency check process using numerical data in this embodiment will be described in detail with reference to the flowcharts of FIGS. 4 and 5 and the explanatory diagram of FIG. FIG. 4 is a flowchart showing the first half of the data consistency check process, and FIG. 5 is a flowchart showing the second half of the data consistency check process. FIG. 6 is an explanatory diagram for explaining the mutual relationship between the numerical data and the control data.
図6に示す例では、書き込み順を示す矢印「イ」、「ロ」、「ハ」の順に従って、CPU44は、「数値データN11と制御データD11」、「数値データN12と制御データD12」、「数値データN13と制御データD13」を、制御データの更新ごとにEEPROM45に書き込んでいる。なお、本実施形態では、図6に示すように、3組の数値データ及び制御データがEEPROM45に記憶されている場合の例を用いて説明する。
In the example shown in FIG. 6, the
まず、図4のステップS10では、CPU44は、記憶されているデータの読み出しを行なう。具体的には、例えば、図6に示すように、「数値データN11と制御データD11」、「数値データN12と制御データD12」、及び「数値データN13と制御データD13」がEEPROM45に書き込まれており、CPU44は、この3組の数値データ及び制御データの読み出しを行なう。
First, in step S10 of FIG. 4, the
ステップS20では、書き込み順「イ」に従って、数値データN12が所定の規則に従って、数値データN11から変化しているか否かを判定する。所定の規則に従って変化していると判定された場合、ステップS30に進む。ステップS30では、書き込み順「ロ」に従って、数値データN13が所定の規則に従って、数値データN12から変化しているか否かを判定する。所定の規則に従って変化していると判定された場合、ステップS40に進む。 In step S20, it is determined whether or not the numerical data N12 has changed from the numerical data N11 according to a predetermined rule according to the writing order “A”. If it is determined that the change has occurred according to the predetermined rule, the process proceeds to step S30. In step S30, it is determined whether or not the numerical data N13 has changed from the numerical data N12 according to a predetermined rule according to the writing order “B”. If it is determined that the change has occurred according to the predetermined rule, the process proceeds to step S40.
ステップS40では、数値データN11と数値データN12との比較、及び数値データN12と数値データN13との比較において、それぞれ所定の規則に従って変化しているとの判定がなされたので、CPU44は、3組の数値データN11〜N13及び制御データD11〜D13のすべてが正常に書き込まれているとみなす。 In step S40, in the comparison between the numerical data N11 and the numerical data N12 and in the comparison between the numerical data N12 and the numerical data N13, it is determined that the values have changed according to predetermined rules. It is assumed that all the numerical data N11 to N13 and the control data D11 to D13 are written normally.
ここで、3つの数値データの中から2つの数値データを順次選んで数値データの相互比較を行なうと、計3回の比較が行なわれ得る。そして、3つの数値データがすべて正しく書き込まれている場合、最新の数値データと前回の数値データ、及び前回の数値データと前々回の数値データとの比較においては、所定の規則に従う変化を示すことになる。このように、計3回の数値データの相互比較において、数値データが所定の規則に従って変化しているとの判定が2回なされた場合には、3つの数値データのすべてが正しく書き込まれているとみなすことができるのである。 Here, when two numerical data are sequentially selected from the three numerical data and the mutual comparison of the numerical data is performed, a total of three comparisons can be performed. And when all three numerical data are written correctly, the latest numerical data and the previous numerical data, and the comparison between the previous numerical data and the numerical data of the previous time, show changes according to a predetermined rule. Become. In this way, in the mutual comparison of the numerical data for a total of three times, when it is determined twice that the numerical data is changing according to a predetermined rule, all three numerical data are correctly written. Can be considered.
例えば、上述のケースは、図7に示すように、書き込み順「イ」、「ロ」に従って、数値データが「01(N11)」から「02(N12)」、さらに「03(N13)」へと変化している場合が該当する。この場合、3個の数値データは所定の規則に従って変化しているので、その3つの数値データの中から最新の数値データを特定することができる。具体的には、数値データN11と数値データN12との比較、及び数値データN12と数値データN13との比較において、それぞれ所定の規則に従って変化しているとの判定がなされたので、この場合、図7に示すように、数値データ「03(N13)」が、最新数値データとして特定される。 For example, in the above case, as shown in FIG. 7, the numerical data is changed from “01 (N11)” to “02 (N12)” and further to “03 (N13)” according to the writing order “A” and “B”. It corresponds to the case where it has changed. In this case, since the three numerical data changes according to a predetermined rule, the latest numerical data can be specified from the three numerical data. Specifically, in the comparison between the numerical data N11 and the numerical data N12 and in the comparison between the numerical data N12 and the numerical data N13, it is determined that the values change according to predetermined rules. As shown in FIG. 7, numerical data “03 (N13)” is specified as the latest numerical data.
そして、この最新数値データ「03(N13)」に対応する制御データ「D13」が最新の制御データとなり、エアコンECU40は、この最新制御データ「D13」を用いてオートエアコンを制御する。これにより、エアコンECU40は、最も新しく更新された制御データに基づいて制御を行なうことができる。
The control data “D13” corresponding to the latest numerical data “03 (N13)” becomes the latest control data, and the
一方、ステップS30において、数値データは所定の規則に従って変化していないと判定された場合、ステップS50に進む。ステップS50では、書き込み順「ハ」に従って、数値データN11が所定の規則に従って、数値データN13から変化しているか否かを判定する。所定の規則に従って変化していると判定された場合、ステップS60に進む。 On the other hand, if it is determined in step S30 that the numerical data has not changed according to a predetermined rule, the process proceeds to step S50. In step S50, it is determined whether or not the numerical data N11 has changed from the numerical data N13 according to a predetermined rule in accordance with the writing order “c”. If it is determined that the change has occurred according to the predetermined rule, the process proceeds to step S60.
ステップS60においても、数値データが所定の規則に従って変化しているとの判定が2回なされたので、3組の数値データN11〜N13及び制御データD11〜D13はすべて正常に書き込まれているとみなされる。 Also in step S60, since it is determined twice that the numerical data is changed according to a predetermined rule, it is considered that all three sets of numerical data N11 to N13 and control data D11 to D13 are written normally. It is.
ただし、数値データN11と数値データN12との比較、及び数値データN13と数値データN11との比較において、それぞれ所定の規則に従って変化しているとの判定がなされたので、この場合、図8に示すように、数値データ「05(N12)」を最新数値データとして特定する。この結果、最新の制御データも、この最新数値データ「05(N12)」に対応する制御データ「D12」となる。 However, in the comparison between the numerical data N11 and the numerical data N12 and in the comparison between the numerical data N13 and the numerical data N11, it is determined that the values have changed according to predetermined rules. Thus, the numerical data “05 (N12)” is specified as the latest numerical data. As a result, the latest control data is also the control data “D12” corresponding to the latest numerical data “05 (N12)”.
ステップS50において、数値データN13とN11とは所定の規則に従って変化していないと判定された場合、ステップS70に進む。ステップS70では、3回の数値データの比較において、所定の規則に従って変化しているとの判定が1回のみなされたので、1組の数値データ及び制御データの書き込みが異常であるが、2組の数値データ及び制御データの書き込みは正常であるとみなす。 If it is determined in step S50 that the numerical data N13 and N11 have not changed according to a predetermined rule, the process proceeds to step S70. In step S70, in the comparison of the numerical data three times, it is determined that the change has occurred according to a predetermined rule only once, so writing of one set of numerical data and control data is abnormal, but two sets The writing of numerical data and control data is considered normal.
3つの数値データの内、1つの数値データの書き込みが異常であると、その1つの数値データは他の2つの数値データとそれぞれ比較されるので、3回の数値データの相互比較において、所定の規則とは異なる変化をしているとの判定が2回なされることになる。換言すれば、3つの数値データの内、1つの数値データの書き込みが異常であると、所定の規則に従って変化しているとの判定は1回のみしかなされない。 Of the three numerical data, if the writing of one numerical data is abnormal, the numerical data is compared with the other two numerical data, respectively. The determination that the change is different from the rule is made twice. In other words, if writing of one numerical data out of three numerical data is abnormal, it is determined only once that it has changed according to a predetermined rule.
ただし、この場合、3つの数値データのうち2つの数値データは正常に書き込まれていると考えられるので、その2つの数値データにおける最新数値データを特定することができる。例えば、図9に示すように、書き込み順「イ」における数値データN11とN12との比較においてのみ、所定の規則に従って変化しているとの判定が行なわれた場合、数値データN11とN12とは正常に書き込まれており、かつ数値データN12の方がより新しいと判断できる。このためステップS70では、数値データN12を最新数値データとして特定するとともに、その最新数値データN12に対応する制御データD12を最新制御データとする。 However, in this case, it is considered that two numerical data among the three numerical data are normally written, so that the latest numerical data in the two numerical data can be specified. For example, as shown in FIG. 9, when it is determined that the change is made according to a predetermined rule only in the comparison between the numerical data N11 and N12 in the writing order “I”, the numerical data N11 and N12 are It can be determined that the data has been written normally and the numerical data N12 is newer. Therefore, in step S70, the numerical data N12 is specified as the latest numerical data, and the control data D12 corresponding to the latest numerical data N12 is set as the latest control data.
このように、少なくとも3つの数値データを用いることにより、1つの数値データに異常が生じても、記憶された制御データの中から最新の制御データを選別することが可能になる。なお、この場合、選別される制御データは、異常が生じたデータに応じて、実際の最新の制御データ、もしくは、その最新の1つ前の制御データとなる。 As described above, by using at least three numerical data, even if an abnormality occurs in one numerical data, it is possible to select the latest control data from the stored control data. In this case, the selected control data is the actual latest control data or the latest previous control data depending on the data in which an abnormality has occurred.
一方、ステップS20において、数値データN11とN12とが所定の規則に従って変化していないと判定された場合、ステップS80に進む。ステップS80では、書き込み順「ロ」に従って、数値データN12と、数値データN13とを比較する。このとき、所定の規則に従って変化していると判定された場合、ステップS90に進む。ステップS90では、書き込み順「ハ」に従って、数値データN13と数値データN11とを比較する。この判定においても、所定の規則に従って変化していると判定された場合、ステップS100に進む。 On the other hand, if it is determined in step S20 that the numerical data N11 and N12 have not changed according to a predetermined rule, the process proceeds to step S80. In step S80, the numerical data N12 is compared with the numerical data N13 according to the writing order “B”. At this time, if it is determined that the change has occurred according to a predetermined rule, the process proceeds to step S90. In step S90, the numerical data N13 and the numerical data N11 are compared according to the writing order “c”. Also in this determination, when it is determined that the change has occurred according to a predetermined rule, the process proceeds to step S100.
ステップS100では、3組の数値データN11〜N13及び制御データD11〜D13の書き込みが正常であると認識し、最新数値データを「N11」と特定し、この最新数値データ「N11」に対応する制御データ「D11」を最新制御データとする。 In step S100, it is recognized that the writing of the three sets of numerical data N11 to N13 and the control data D11 to D13 is normal, the latest numerical data is identified as “N11”, and the control corresponding to the latest numerical data “N11” is performed. Data “D11” is the latest control data.
すなわち、上述の場合、例えば、図10に示すように、書き込み順「ロ」、「ハ」に従って、数値データが「08(N12)」、「09(N13)」、「10(N11)」と、所定の規則に従って変化しているので、最新の数値データは、数値データ「10(N11)」と特定できるのである。 That is, in the above-described case, for example, as shown in FIG. 10, the numerical data is “08 (N12)”, “09 (N13)”, “10 (N11)” according to the writing order “B” and “C”. Therefore, the latest numerical data can be specified as the numerical data “10 (N11)”.
ステップS90における、数値データN13とN11との比較において、所定の規則に従って変化していないと判定された場合には、ステップS110に進む。この場合、例えば、図11に示すように、書き込み順「ロ」に従って、数値データ「08(N12)」と数値データ「09(N13)」のみが所定の規則に従って変化している状況である。このため、ステップS110では、数値データ「09(N13)」を最新数値データとみなし、この最新数値データ「09(N13)」に対応する制御データ「D13」を最新制御データとする。 If it is determined in step S90 that the numerical data N13 and N11 are not changed according to a predetermined rule, the process proceeds to step S110. In this case, for example, as shown in FIG. 11, according to the writing order “b”, only the numerical data “08 (N12)” and the numerical data “09 (N13)” are changing according to a predetermined rule. Therefore, in step S110, the numerical data “09 (N13)” is regarded as the latest numerical data, and the control data “D13” corresponding to the latest numerical data “09 (N13)” is set as the latest control data.
また、ステップS80における、数値データN12とN13との比較において、所定の規則に従って変化していないと判定された場合には、ステップS120に進む。ステップS120では、数値データN13とN11とが比較される。この判定処理において、数値データN13とN11とが所定の規則に従って変化していると判定された場合、ステップS130に進む。 If it is determined in step S80 that the numerical data N12 and N13 are not changed according to a predetermined rule, the process proceeds to step S120. In step S120, the numerical data N13 and N11 are compared. In this determination process, when it is determined that the numerical data N13 and N11 are changing according to a predetermined rule, the process proceeds to step S130.
この場合、例えば、図12に示すように、書き込み順「ハ」に従って、数値データ「09(N13)」と数値データ「10(N11)」のみが所定の規則に従って変化している状況である。このため、ステップS130では、数値データ「10(N11)」を最新数値データとみなし、この最新数値データ「10(N11)」に対応する制御データ「D11」を最新制御データとする。 In this case, for example, as shown in FIG. 12, according to the writing order “c”, only the numerical data “09 (N13)” and the numerical data “10 (N11)” are changing according to a predetermined rule. Therefore, in step S130, the numerical data “10 (N11)” is regarded as the latest numerical data, and the control data “D11” corresponding to the latest numerical data “10 (N11)” is set as the latest control data.
ステップS120における、数値データN13とN11との比較において、所定の規則に従って変化していないと判定された場合には、ステップS140に進む。この場合、例えば、図13に示すように、計3回の数値データの相互比較において、1回も所定の規則に従って変化しているとの判定がなされない状況である。 If it is determined in step S120 that the numerical data N13 and N11 are not changed according to a predetermined rule, the process proceeds to step S140. In this case, for example, as shown in FIG. 13, it is a situation in which it is not determined that the data has changed once according to a predetermined rule in the mutual comparison of the numerical data for a total of three times.
このように、計3回の相互比較において、数値データが所定の規則に従って変化しているとの判定が1回もなされないのは、少なくとも2つの数値データに異常が生じている状況である。この場合、いずれの数値データが正常であるか特定できないので、3組の数値データ及び記憶データの書き込みが異常であったとみなす。このため、ステップS140では、エアコンECU40が、予めROM(図示せず)に記憶されている初期制御データ(デフォルトデータ)を用いてオートエアコンを制御する。
Thus, it is a situation where abnormality has occurred in at least two numerical data that the determination that the numerical data has changed in accordance with a predetermined rule is not made once in a total of three mutual comparisons. In this case, since it cannot be specified which numerical data is normal, it is considered that writing of the three sets of numerical data and stored data is abnormal. For this reason, in step S140, the
以上、説明したように本実施形態によれば、制御データの更新時に、更新された制御データと、所定の規則に従って変化した数値データとを組として、1組の数値データ及び制御データをEEPROM45の1つの記憶領域に書き込む。EEPROM45には、最新から順に古くなる少なくとも3組の数値データ及び制御データを保持しておく。これにより、制御データの信頼性を確保しながら、必要な記憶容量を削減することができる。
As described above, according to the present embodiment, when updating the control data, the updated control data and the numerical data changed according to a predetermined rule are used as a set, and one set of numerical data and control data is stored in the
なお、本発明は、上述した実施形態になんら制限されることなく、本発明の主旨を逸脱しない範囲において、種々変形して実施することができる。 It should be noted that the present invention is not limited to the above-described embodiment, and various modifications can be made without departing from the spirit of the present invention.
例えば、上述した実施形態においては、1組の数値データ及び制御データを1つの記憶領域に書き込む例を説明した。しかしながら、1つの記憶領域の記憶容量に対して、1組の数値データ及び制御データのデータサイズが大きい場合には、それぞれのデータを異なる記憶領域に書き込んでも良い。例えば、CPU44は、0番地の記憶領域に制御データを書き込み、1番地の記憶領域に数値データを書き込むようにしても良い。
For example, in the above-described embodiment, an example in which one set of numerical data and control data is written in one storage area has been described. However, when the data size of one set of numerical data and control data is larger than the storage capacity of one storage area, the respective data may be written in different storage areas. For example, the
また、上述した実施形態においては、所定の規則として、数値データが1づつ増加する例について説明したが、その数字の変化幅は1以外であっても良いし、数値データが増加ではなく減少するものであっても良い。 In the above-described embodiment, the example in which the numerical data increases by 1 has been described as the predetermined rule. However, the numerical change range may be other than 1, and the numerical data decreases instead of increasing. It may be a thing.
10…スイッチ入力回路
20…センサ入力回路
30…パネル表示回路
40…エアコンECU
41…バッテリ
42…キースイッチ
43…定電圧回路
44…CPU
45…EEPROM
46…シリアル通信線
50…モータ駆動回路
60…リレー駆動回路
70…風量調整用パワートランジスタ駆動回路
DESCRIPTION OF
41 ...
45… EEPROM
46 ...
Claims (11)
所定の記憶データを、前記不揮発性メモリに書き込むデータ書き込み手段とを備えて、
電源がオフされたときにも、前記記憶データを保持可能に構成されたデータ記憶装置であって、
前記データ書き込み手段は、所定の数値範囲において、前記記憶データの書き込みごとに所定の規則に従って変化する数値データを生成する数値データ生成手段を有し、当該数値データと前記記憶データとを組として、前記不揮発性メモリに書き込むものであり、
前記不揮発性メモリは、少なくとも3組の数値データ及び記憶データを記憶する領域を有し、さらに、
前記不揮発性メモリに記憶された少なくとも3組の数値データ及び記憶データを読み出して、その中の数値データを相互比較して、当該数値データが前記所定の規則に従って変化しているか否かを判定する判定手段を備え、
前記判定手段によって、前記数値データが所定の規則に従って変化していると判定された場合に、前記数値データにおける最新数値データを特定し、その最新数値データに対応する記憶データを最新の記憶データとすることを特徴とするデータ記憶装置。 Non-volatile memory that can electrically rewrite the memory contents,
Data storage means for writing predetermined storage data into the nonvolatile memory;
A data storage device configured to retain the stored data even when the power is turned off,
The data writing means has numerical data generating means for generating numerical data that changes in accordance with a predetermined rule every time the stored data is written in a predetermined numerical range, and the numerical data and the stored data are paired. Writing to the non-volatile memory,
The non-volatile memory has an area for storing at least three sets of numerical data and storage data, and
At least three sets of numerical data and stored data stored in the nonvolatile memory are read out, and the numerical data in them are compared with each other to determine whether or not the numerical data has changed according to the predetermined rule. A determination means,
When it is determined by the determining means that the numerical data is changing according to a predetermined rule, the latest numerical data in the numerical data is specified, and the storage data corresponding to the latest numerical data is the latest stored data. A data storage device.
前記記憶データは、前記制御部が前記車載機器の制御に使用する制御データであることを特徴とする請求項1に記載のデータ記憶装置。 It has a control unit that controls in-vehicle equipment mounted on the vehicle,
The data storage device according to claim 1, wherein the storage data is control data used by the control unit to control the in-vehicle device.
この計3回の相互比較において、数値データが所定の規則に従って変化しているとの判定が2回なされたとき、前記3組の数値データ及び記憶データの書き込みが正常であるとみなし、当該3組の数値データ及び記憶データの中から、最新数値データを特定するとともに、その最新数値データに対応する記憶データを最新の記憶データとすることを特徴とする請求項1乃至請求項8のいずれかに記載のデータ記憶装置。 The determination means performs a mutual comparison of the numerical data three times in total by sequentially selecting and comparing the two numerical data from the three numerical data.
In this total of three comparisons, when it is determined twice that the numerical data has changed according to a predetermined rule, the three sets of numerical data and stored data are regarded as normal, and the 3 9. The latest numerical data is specified from the set of numerical data and stored data, and the stored data corresponding to the latest numerical data is used as the latest stored data. The data storage device described in 1.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2004217853A JP4367275B2 (en) | 2004-07-26 | 2004-07-26 | Data storage device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2004217853A JP4367275B2 (en) | 2004-07-26 | 2004-07-26 | Data storage device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2006039876A true JP2006039876A (en) | 2006-02-09 |
| JP4367275B2 JP4367275B2 (en) | 2009-11-18 |
Family
ID=35904821
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2004217853A Expired - Fee Related JP4367275B2 (en) | 2004-07-26 | 2004-07-26 | Data storage device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4367275B2 (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2008004515A1 (en) * | 2006-07-03 | 2008-01-10 | Daikin Industries, Ltd. | Control apparatus |
| JP2009289200A (en) * | 2008-05-30 | 2009-12-10 | Denso Corp | Onboard electronic control device, and data writing method and data reading method thereof |
| JP2010025512A (en) * | 2008-07-24 | 2010-02-04 | Daikin Ind Ltd | Control device of refrigerating device |
| WO2014002132A1 (en) * | 2012-06-26 | 2014-01-03 | 三菱電機株式会社 | Air conditioner control system |
| JP2015125598A (en) * | 2013-12-26 | 2015-07-06 | キヤノン株式会社 | MEMORY CONTROL DEVICE, MEMORY CONTROL METHOD, AND PROGRAM |
-
2004
- 2004-07-26 JP JP2004217853A patent/JP4367275B2/en not_active Expired - Fee Related
Cited By (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2008004515A1 (en) * | 2006-07-03 | 2008-01-10 | Daikin Industries, Ltd. | Control apparatus |
| AU2007270490B2 (en) * | 2006-07-03 | 2010-06-10 | Daikin Industries, Ltd. | Control device |
| US8121735B2 (en) | 2006-07-03 | 2012-02-21 | Daikin Industries, Ltd. | Control device |
| JP2009289200A (en) * | 2008-05-30 | 2009-12-10 | Denso Corp | Onboard electronic control device, and data writing method and data reading method thereof |
| JP2010025512A (en) * | 2008-07-24 | 2010-02-04 | Daikin Ind Ltd | Control device of refrigerating device |
| WO2014002132A1 (en) * | 2012-06-26 | 2014-01-03 | 三菱電機株式会社 | Air conditioner control system |
| JPWO2014002132A1 (en) * | 2012-06-26 | 2016-05-26 | 三菱電機株式会社 | Air conditioner control system |
| US10001290B2 (en) | 2012-06-26 | 2018-06-19 | Mitsubishi Electric Corporation | Air-conditioning apparatus control system |
| JP2015125598A (en) * | 2013-12-26 | 2015-07-06 | キヤノン株式会社 | MEMORY CONTROL DEVICE, MEMORY CONTROL METHOD, AND PROGRAM |
Also Published As
| Publication number | Publication date |
|---|---|
| JP4367275B2 (en) | 2009-11-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9110842B2 (en) | Control device for vehicle and error processing method in control device for vehicle | |
| JPH09288573A (en) | In-vehicle control device | |
| JP3701776B2 (en) | In-vehicle electrical equipment with microcomputer | |
| US20090105927A1 (en) | Control system for automotive vehicle having diagnosis function | |
| JP4367275B2 (en) | Data storage device | |
| US11314634B2 (en) | Electronic control unit and data protection method therefor | |
| US8036786B2 (en) | On-vehicle control apparatus | |
| JP4419752B2 (en) | Data storage | |
| JP2016126699A (en) | Electronic control unit for automobile | |
| KR101199665B1 (en) | The Learning Type Control Method for Air Conditioner of Vehicle | |
| JPH08202441A (en) | Controller for vehicle with function capable of storing fault information | |
| JP2009116521A (en) | Data rewriting method for memory | |
| JP2009126461A (en) | Control circuit for setting destination point | |
| JP5247558B2 (en) | Control device for electronic equipment and air conditioner using the control device | |
| JP2002106412A (en) | Vehicular data storage device | |
| JP2007230452A (en) | Vehicular control system | |
| JP2009196395A (en) | Vehicle air conditioner | |
| JP7029366B2 (en) | Electronic control device for automobiles | |
| JP6886934B2 (en) | I/O expansion device and control system | |
| JP2000192844A (en) | Engine control device | |
| JP5417931B2 (en) | Vehicle control system | |
| CN110716725A (en) | Actuator system, vehicle system, and updating method thereof | |
| JP4257046B2 (en) | Air conditioner for vehicles | |
| JP2008213782A (en) | Electronic control unit | |
| JP5136836B2 (en) | Instrument device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20061006 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20090226 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20090303 |
|
| 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: 20090804 |
|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20090817 |
|
| R151 | Written notification of patent or utility model registration |
Ref document number: 4367275 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120904 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120904 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130904 Year of fee payment: 4 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| LAPS | Cancellation because of no payment of annual fees |