JP2008304973A - Data recording device, data recording method and cold storage with this data storage device - Google Patents
Data recording device, data recording method and cold storage with this data storage device Download PDFInfo
- Publication number
- JP2008304973A JP2008304973A JP2007148946A JP2007148946A JP2008304973A JP 2008304973 A JP2008304973 A JP 2008304973A JP 2007148946 A JP2007148946 A JP 2007148946A JP 2007148946 A JP2007148946 A JP 2007148946A JP 2008304973 A JP2008304973 A JP 2008304973A
- Authority
- JP
- Japan
- Prior art keywords
- data
- recording
- data management
- recorded
- area
- 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
- 238000000034 method Methods 0.000 title claims description 16
- 238000013500 data storage Methods 0.000 title 1
- 238000013523 data management Methods 0.000 claims abstract description 148
- 230000015654 memory Effects 0.000 claims abstract description 61
- 230000006870 function Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 230000006866 deterioration Effects 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Images
Landscapes
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
Description
この発明は、書き換え自在にデータを記録するデータ記録装置、及び、このデータ記録装置に適用するデータ記録方法と、このデータ記録装置を搭載した保冷庫に関する。 The present invention relates to a data recording device that records data in a rewritable manner, a data recording method applied to the data recording device, and a cold storage equipped with the data recording device.
例えば、保冷庫のようにマイクロコンピュータにより種々の構成装置を制御する電気機器においては、この電気機器に故障が生じた際にこの電気機器を構成するどの構成装置に異常が生じたのか解析するために、故障に至るまでの運転状況(例えば、マイクロコンピュータからの出力信号、各構成装置の稼動状況等)を内蔵したメモリに記録する機能を備えたものがある。
このメモリとして、電源を切断した後もデータが記録保持されたままの状態を維持する不揮発性メモリ(例えば、EEPROM(電気的に一括消去・再書き込み可能な読み出し専用メモリ)等)が一般的に用いられる。
For example, in an electrical device that controls various component devices by a microcomputer such as a cold storage, in order to analyze which component device that constitutes the electrical device has an abnormality when the electrical device fails Some of them have a function of recording in a built-in memory an operation status (for example, an output signal from a microcomputer, an operation status of each component device, etc.) up to the failure.
As this memory, a non-volatile memory (for example, an EEPROM (electrically erasable and rewritable read-only memory) etc.) that maintains a state where data is recorded and retained even after the power is turned off is generally used. Used.
この電気機器の上記運転状況は、予め決められた時間間隔ごとにそのメモリ内に順次記録される。この記録されたデータがこのメモリの記録容量に達すると、既に記録されたデータに上書き記録される。 The operation status of the electric device is sequentially recorded in the memory at predetermined time intervals. When the recorded data reaches the recording capacity of this memory, the already recorded data is overwritten.
このデータの記録方式としては、限られたメモリ資源を無駄なく使用するため、前に記録されたデータの末尾に連続して、次のデータを記録するのが一般的である。
この記録方式においては、見かけ上は単なる数値データの羅列となるため、既に記録されたデータと新たに記録したデータとの区切りがはっきりしない。
As a recording method of this data, in order to use limited memory resources without waste, it is general to record the next data continuously at the end of the previously recorded data.
In this recording method, since it appears as just a list of numerical data, the separation between already recorded data and newly recorded data is not clear.
この場合、引き続いてデータを記録する際に、その次のデータをメモリ上のどのアドレスに記録すれば良いのか、又は、故障解析において、記録されたデータを読み込む際に、そのデータをどのアドレスから読み込めば良いのか分からないという問題がある。 In this case, when data is subsequently recorded, which address on the memory should be recorded next, or from which address when the recorded data is read in the failure analysis There is a problem that I do not know if it should be read.
このような問題を解決するため、例えば特許文献1に示す記録方法においては、各データをメモリに記録する際に、記録したデータの末尾に、末尾であることを示す識別子(例えば「00h」など。ここで識別子末尾の「h」は16進数であることを示す。以下同じ。)を追記して、記録したデータの末尾を明確にしている。この記録に続いて新たにデータを記録する際は、まず記録されたデータ列においてこの識別子「00h」を検索し、この識別子の属するアドレスを先頭アドレスとしてデータを記録する。
In order to solve such a problem, for example, in the recording method disclosed in
また、このデータの記録に際しては、上記故障解析のために、データ記録回数をそのデータとともに記録する必要性があることもある。このデータ記録の書式の関係上、データとデータ記録回数を同じメモリに記録すると両者の区別が不明確となる恐れがあるので、このメモリには運転状況に関するデータ(及び、そのデータに付随する識別子)のみを記録して、上記データのデータ記録回数はこのメモリとは別に設けられたメモリに記録するようにする。 When recording this data, it may be necessary to record the number of data recordings together with the data for the failure analysis. Due to the format of this data recording, if the data and the number of data recordings are recorded in the same memory, there is a risk that the distinction between the two will be unclear, so this memory contains data relating to operating conditions (and identifiers associated with the data) ) Only, and the data recording frequency of the data is recorded in a memory provided separately from this memory.
特許文献1に示す方法においてデータの末尾を示すために用いる識別子は、メモリへのデータ記録の書式上、「00h」から「FFh」のいずれかで表記される2桁の16進数とする必要がある。そのため、例えばこの識別子を「00h」とすると、運転状況に関するデータ中に「00h」が含まれていると、この「00h」がデータなのか、あるいは、識別子なのか区別できないという問題がある。そのため、識別子として使用した値はデータとして用いない、という決まりを設ける必要があり、記録するデータ内容が制約される。
The identifier used to indicate the end of data in the method disclosed in
また、上記データの記録回数のカウントのためには、その記録回数を記録するためのメモリが別途必要なので、部品数が増えて装置構成が複雑になりコストが嵩むという問題がある。 Further, in order to count the number of times of recording the data, a memory for recording the number of times of recording is separately required. Therefore, there is a problem that the number of parts increases, the apparatus configuration becomes complicated, and the cost increases.
そこで、この発明は、記録するデータ内容を制約することなく、記録したデータのアドレスを管理し得るようにするとともに、データの記録回数を簡便に記録し得るようにすることを課題とする。 SUMMARY OF THE INVENTION Accordingly, an object of the present invention is to be able to manage the address of recorded data without restricting the data content to be recorded and to easily record the number of times of data recording.
上記の課題を解決するため、この発明は、不揮発性メモリの記録領域の一部にデータ管理領域を設け、このデータ管理領域に記録回数情報やアドレス情報等のデータ管理情報を記録するようにしたのである。 In order to solve the above problems, the present invention provides a data management area in a part of the recording area of the nonvolatile memory, and records data management information such as recording count information and address information in this data management area. It is.
この発明の構成としては、不揮発性メモリに書き換え自在にデータを記録保持するデータ記録装置において、上記不揮発性メモリの記録領域の一部にデータ管理領域を設け、そのデータ管理領域に、上記不揮発性メモリにデータを記録した記録回数情報、及び、最新のデータの記録アドレスに関するアドレス情報のデータ管理情報を記録し、上記記録領域の上記データ管理領域以外に設けられたデータ記録領域には、上記データ管理領域に記録したアドレス情報に対応したアドレスにデータを記録するようにすることができる。
この不揮発性メモリは、停電等の電源遮断時においても記録されたデータが消えないので、これに記録されたアドレス情報とともに記録回数情報が確実に保持される。そのため、記録回数のカウントのためのメモリを別途備える必要がない。
As a configuration of the present invention, in a data recording apparatus that records and holds data in a rewritable manner in a nonvolatile memory, a data management area is provided in a part of the recording area of the nonvolatile memory, and the nonvolatile memory is provided in the data management area. The data management information of the address information relating to the recording address of the latest data and the recording address of the latest data is recorded in the memory, and the data recording area provided in the recording area other than the data management area includes the data Data can be recorded at an address corresponding to the address information recorded in the management area.
In this nonvolatile memory, recorded data is not erased even when the power is cut off, such as a power failure, so that the number-of-records information is securely held together with the address information recorded therein. Therefore, it is not necessary to separately provide a memory for counting the number of times of recording.
上記データ記録装置としては、異なる識別番号が付与された複数の不揮発性メモリを搭載し、それらの不揮発性メモリのうち少なくとも1つに上記データ管理領域を設け、上記データをいずれかの不揮発性メモリに記録する際に、そのデータを上記データ記録領域に記録するとともに、上記データ管理領域に、上記データ管理情報としてその記録がなされた上記不揮発性メモリの識別番号を併せて記録する構成とすることもできる。
このように各不揮発性メモリに識別番号を付与すれば、直近のデータがどの不揮発性メモリに保存されたのかについて容易に知ることができる。
As the data recording device, a plurality of nonvolatile memories assigned with different identification numbers are mounted, the data management area is provided in at least one of the nonvolatile memories, and the data is stored in any nonvolatile memory. When recording the data, the data is recorded in the data recording area, and the identification number of the nonvolatile memory recorded as the data management information is also recorded in the data management area. You can also.
Thus, by assigning an identification number to each nonvolatile memory, it is possible to easily know in which nonvolatile memory the most recent data is stored.
また、上記記録領域に複数のデータ管理領域を設け、そのうちの一のデータ管理領域に、上記データの記録の際に、上記データ管理情報をそのデータ管理領域に逐次上書き記録するとともに、上記上書き回数が上記不揮発性メモリの電気的性能の劣化によって決まる記録限度回数に達した際に、上記一のデータ管理領域に記録されていた上記データ管理情報を未使用のデータ管理領域に移し、上記一のデータ管理領域への上記上書き記録を停止するとともに、上記未使用のデータ管理領域において、継続してデータ管理情報の記録を行い得るようにすることもできる。
上記記録領域において、上記データ管理領域はデータの記録ごとにデータ管理情報の更新がなされるので、上記データ記録領域と比較して、上記記録限度回数に達するのが早い。そのため、データの記録頻度に対応して予め複数のデータ管理領域を設けておき、記録限度回数に達したデータ管理領域から未使用のデータ管理領域に記録されていたデータ管理情報をそのまま移し、新たに使用を開始したそのデータ管理領域でデータ管理情報を管理するようにする。
In addition, a plurality of data management areas are provided in the recording area, and when the data is recorded in one of the data management areas, the data management information is sequentially overwritten and recorded in the data management area, and the number of overwriting times When the recording limit number determined by the deterioration of the electrical performance of the nonvolatile memory is reached, the data management information recorded in the one data management area is transferred to an unused data management area, The overwrite recording to the data management area can be stopped, and the data management information can be continuously recorded in the unused data management area.
In the recording area, since the data management information is updated every time data is recorded in the recording area, the recording limit number of times is reached faster than the data recording area. For this reason, a plurality of data management areas are provided in advance corresponding to the data recording frequency, and the data management information recorded in the unused data management area is moved as it is from the data management area that has reached the recording limit number, and a new one is newly created. The data management information is managed in the data management area that has been used.
また、上記データ管理領域に、上記データ管理情報としてそのデータ管理領域の使用状態を示す識別子を併せて記録するようにすることもできる。
この識別子によって各データ管理領域の使用状況を明示するようにすれば、データ管理情報を読み込む際に、どのデータ管理領域から読み込めば良いのかはっきり分かるので、その読み込みが円滑になされる。
In addition, an identifier indicating the use status of the data management area can be recorded as the data management information in the data management area.
If the usage status of each data management area is clearly indicated by this identifier, when data management information is read, it can be clearly seen from which data management area the data management area should be read, so that the data can be read smoothly.
また、このデータ記録装置を保冷庫に搭載し、このデータ記録装置に用いた上記不揮発性メモリの記録容量に対応して、保冷庫の運転状況についてのデータを所定の時間間隔でこのデータ記録装置に記録するようにすることもできる。
上記運転状況についてのデータとして、マイクロコンピュータからの出力信号、コンプレッサーの出力データ等があり、このようなデータをデータ記録装置に記録して故障時にそのデータを解析すれば、その保冷庫の故障解析を容易に行い得る。
In addition, the data recording device is mounted on the cold storage, and the data about the operation status of the cold storage is stored at predetermined time intervals corresponding to the recording capacity of the nonvolatile memory used in the data recording device. Can also be recorded.
Data on the above operating conditions include output signals from microcomputers, compressor output data, etc. If such data is recorded in a data recording device and analyzed at the time of failure, failure analysis of that cold storage Can be easily performed.
また、上記保冷庫において、そのデータ記録装置に設けられたデータ管理領域の全てが書き換え回数の限度に達した際に、保冷庫に設けた表示部に、上記データ管理情報の記録ができなくなったことを表示するようにすることもできる。
この表示部に上記表示がされた際に、この保冷庫に設けられたデータ記録装置のメモリを交換するようにすれば、継続してこのデータ記録装置を使用することができる。
In addition, when all of the data management area provided in the data recording device reaches the limit of the number of rewrites in the cold storage, the data management information cannot be recorded on the display provided in the cold storage. Can also be displayed.
If the memory of the data recording device provided in the cold storage is replaced when the display is made on the display unit, the data recording device can be used continuously.
この発明によると、データの末尾を明示するための識別子を使用しないので、識別子とデータ自体との区別が付かなくなる恐れがない。そのため、識別子として使用した値はデータとして使用しない、といったデータ内容の制約を受けることなくデータを記録することができる。
また、データ管理領域内にデータの記録回数を記録する機能を設けたので、この記録のために別途メモリを必要としない。そのため、部品数を減らすことができこの装置構成を簡略なものとすることができる。
According to the present invention, since an identifier for clearly indicating the end of data is not used, there is no possibility that the identifier and the data itself cannot be distinguished from each other. Therefore, data can be recorded without being restricted by data content such that a value used as an identifier is not used as data.
In addition, since a function for recording the number of times of data recording is provided in the data management area, no separate memory is required for this recording. Therefore, the number of parts can be reduced, and this apparatus configuration can be simplified.
この発明の実施形態を図1から図4に示して説明する。
この実施形態に係るデータ記録装置は、保冷庫に搭載されてこの保冷庫の運転状況を記録するためのものであって、図1に示すように、不揮発性メモリの1種であるEEPROM1を2個備えている(EEPROM1a、1b)。
An embodiment of the present invention will be described with reference to FIGS.
The data recording device according to this embodiment is mounted on a cold storage and records the operation status of the cold storage. As shown in FIG. 1, two
各EEPROM1a、1bの記録容量はそれぞれ8キロバイトであって、EEPROM1aには、その先頭アドレスから4個のデータ管理領域2(同図中に示す太枠内の領域)が設けてあり、そのデータ管理領域2に続いてデータ記録領域3が設けてある。EEPROM1bはその全体がデータ記録領域3である。
Each EEPROM 1a, 1b has a recording capacity of 8 kilobytes, and the EEPROM 1a is provided with four data management areas 2 (areas within a thick frame shown in the figure) from its head address. A
各EEPROM1a、1bのアドレスは、左側に記載の4桁のアドレス(例えば0030h)と、上側に記載の末尾1桁のアドレス(例えばA)の組み合わせによって表現され、図1において、例えばEEPROM1aの左上隅のアドレスは0000h、右下隅のアドレスは1FFFhとなる。 The address of each EEPROM 1a, 1b is expressed by a combination of a 4-digit address (for example, 0030h) on the left side and a single-digit address (for example, A) on the upper side. In FIG. 1, for example, the upper left corner of the EEPROM 1a Address is 0000h, and the address in the lower right corner is 1FFFh.
EEPROM1aの1個目(先頭)のデータ管理領域2を図2に示して説明すると、このデータ管理領域2は8バイトのメモリ領域を占有し、このメモリ領域にデータ管理情報4が記録されている。
このデータ管理情報4として、この8バイトのうち1バイト目にこのデータ管理領域2の使用状況、2〜5バイト目に各メモリ1a、1bにデータを書き込んだ回数を記録するカウンター、6バイト目に各メモリ1a、1bのうちいずれに対してデータの書き込みを行ったのかを示す識別番号、7〜8バイト目に次に書き込むデータのアドレス情報、がそれぞれ記録されている。
The first
As the
データ管理領域2の使用状況に関するアドレス4aには、このデータ管理領域2が未使用ならば00h、使用中ならば01h、使用済みならば02hのいずれかが記録される。この保冷庫の使用開始の時点(初期化後の時点)では、4個全てのデータ管理領域2において00h(未使用)が記録されている。
The
上記カウンターに関するアドレス4bには、データ記録領域3にデータを一つ記録するごとに、このアドレス4bに記録されている数値を1hずつ増加して記録するようになっている。この数値は、使用中のデータ管理領域2が記録限度回数に達して他の新しいデータ管理領域2に更新された際にリセットされて、改めて1hから記録される。
Each time one piece of data is recorded in the
上記識別番号に関するアドレス4cには、直近のデータがEEPROM1aに記録された際には01h、EEPROM1bに記録された際には02hのいずれかが記録される。この識別番号に関するデータは、使用中のデータ管理領域2が記録限度回数に達して他の新しいデータ管理領域2に更新された際にそのまま引き継がれる。
In the
上記アドレス情報に関するアドレス4dには、データ記録領域3の先頭アドレス、つまり、EEPROM1aにあっては0020h以降のアドレス、EEPROM1bにあっては0000h以降のアドレスのいずれかのアドレスが記録される。このアドレスは、使用中のデータ管理領域2が記録限度回数に達して他の新しいデータ管理領域2に更新された際にそのまま引き継がれる。
In the
データ管理領域2へのデータの記録はデータ更新ごとに逐次行ってもよいが、このデータ記録装置においては上記データを、このデータ記録装置に付属して設けられたマイコンRAM(書き換え可能メモリ)に一旦記録し、このマイコンRAMに記録されたデータを後でまとめてデータ管理領域に記録するようにしている。このマイコンRAMへの記録はデータ管理領域への記録の準備段階に相当するので、以下においては「記録準備」と表記する。
Data recording in the
なお、図1に示したように4個のデータ管理領域2を有する場合においては、それぞれのデータ管理領域2における各アドレス4a、4b、4c及び4dの具体的なアドレスは図3に示す通りである。
In the case where four
この保冷庫の出荷段階において、上記データ記録装置の各記録内容は初期化されている。この初期化においては、図1で示したように、4個のデータ管理領域2のうちの1個目のデータ管理領域2におけるアドレス情報に関するアドレス4dに、0020hが記録(メモリ上の記録順序としては、20hと00h)されるとともに、データ管理領域のそれ以外の領域には00hが記録されている。
また、EEPROM1a、1bのデータ記録領域3には、初期化後において00hが記録されているが、新たにデータが記録されるにあたり既に記録されているデータが何であるかは特に意味がないので、図1においてはXX(不定データ)として表示している。
At the shipping stage of the cold storage, the recorded contents of the data recording device are initialized. In this initialization, as shown in FIG. 1, 0020h is recorded at the
In addition, 00h is recorded in the
このデータ記録装置にデータを記録する際の処理の流れについて図4に示して説明する。このEEPROM1a、1bの書き換え可能回数は80万回、1データのデータサイズは20バイトとする。 The flow of processing when data is recorded in this data recording apparatus will be described with reference to FIG. The EEPROM 1a and 1b can be rewritten up to 800,000 times, and the data size of one data is 20 bytes.
(1)データ管理領域の選択
4個のデータ管理領域2に領域番号i(i=1〜4)をそれぞれ付与し、まず、領域番号i=1のデータ管理領域2において、そのデータ管理領域2の使用状況に関するアドレス4aを検索する(図4のS1及びS2)。そのアドレス4aに00h(未使用)が記録されている場合には、領域番号i=1が付与されたデータ管理領域2を使用することを決定し、このアドレス4aに01h(使用中)、及び、メモリの識別番号に関するアドレス4cに01h(EEPROM1aを使用)をそれぞれ記録準備する(同図のS3)。
(1) Selection of Data Management Area Each of the four
また、そのアドレス4aに01h(使用中)が記録されている場合には、その領域番号iが付与されたデータ管理領域2を使用することを決定する。
さらに、そのアドレス4aに02h(使用済み)が記録されており、かつ、i=4の場合(同図のS5)は使用可能なデータ管理領域2はないと判断し、保冷庫に設けられた表示部に、新たにデータを記録できない旨を表示する(同図のS6)。ここで、i<4の場合は領域番号iを一つ増加し(同図のS7)、次のデータ管理領域2において同様の判断を行う(同図のS4)。
If 01h (in use) is recorded in the
Further, when 02h (used) is recorded in the
(2)データ書き込み回数のチェック
上記決定によって使用するデータ管理領域2(識別番号i)のカウンターに関するアドレス4bを検索し、そのカウント数が80万回未満の場合、そのデータ管理領域2を継続して使用する(同図のS8)。
一方、カウント数が80万回以上の場合、そのデータ管理領域2は使用限界に達してもう使用できないと判断し(同図のS8)、そのデータ管理領域2のデータ管理領域の使用状況に関するアドレス4aに02h(使用済み)を記録準備する(同図のS9)とともに、領域番号iを一つ増加し(同図のS10)、未使用のデータ管理領域2を使用するようにする。
(2) Checking the number of data writes The
On the other hand, if the count number is 800,000 times or more, it is determined that the
上記増加によってiが4を超えない場合は(同図のS11)、これまで使用していたデータ管理領域2(識別番号(i−1))のアドレス4c及び4dに記録されていたデータを、新たに使用するデータ管理領域(識別番号i)のアドレス4c及び4dにそのまま移す(同図のS12)とともに、アドレス4aに01h(使用中)を記録準備する(同図のS13)。
一方、上記増加によってiが4を超える場合(同図のS11)は使用可能なデータ管理領域2はないと判断し、保冷庫に設けられた表示部に、新たにデータを記録できない旨を表示する(同図のS6)。
If i does not exceed 4 due to the increase (S11 in the figure), the data recorded in the
On the other hand, if i exceeds 4 due to the increase (S11 in the figure), it is determined that there is no usable
(3)次のデータの記録アドレスのチェック及びデータの記録
使用することを決定したデータ管理領域2(識別番号i)のアドレス4dにおいてアドレス情報を読み込み、その読み込んだアドレスに14h(データサイズが20バイトのため)を加える(同図のS14)。
その加えた結果が2000hよりも小さい場合(そのメモリの最大アドレス(1FFFh)を超えない場合)は、その直近に記録されたデータに続いてそのデータを記録するための領域があると判断できる。
その場合はメモリの識別番号に関するアドレス4cを検索し、このアドレス4cに01hが記録されている場合はEPPROM1aの、又は、02hが記録されている場合はEPPROM1bのアドレス4dに示されているアドレスに20バイトのデータを記録する(同図のS15)。
(3) Check of recording address of next data and recording of data Address information is read at
When the added result is smaller than 2000h (when the maximum address (1FFFh) of the memory is not exceeded), it can be determined that there is an area for recording the data following the most recently recorded data.
In that case, the
一方、上記結果が2000h以上の場合は、そのデータ管理領域2のアドレス4cに記録されたメモリの識別番号の値が01h(EEPROM1aを使用)又は02h(EEPROM1bを使用)のいずれかによって記録手順が異なる。
On the other hand, when the result is 2000h or more, the recording procedure is performed depending on whether the value of the memory identification number recorded at the
このアドレス4cによってEEPROM1aが選択されている場合(同図のS16)は、EEPROM1aにおけるデータ記録領域の記録容量が8160バイト(全容量8×1024バイトから、データ管理領域4×8バイトを除いた部分)なので、20バイトのデータがちょうど408個記録できる。
そのため、上記結果が2000h以上(実際にはちょうど2000h)であっても、20バイトのデータがあと一回だけ記録できる。そこで、EEPROM1aのアドレス4dの示すアドレスからデータを記録する(同図のS17)とともに、アドレス4cに02h(EEPROM1b)、アドレス4dに0000hをそれぞれ記録準備する(同図のS18)。
When the EEPROM 1a is selected by the
Therefore, even if the result is 2000 h or more (actually just 2000 h), 20 bytes of data can be recorded only once more. Therefore, data is recorded from the address indicated by the
一方、アドレス4cによってEEPROM1bが選択されている場合(同図のS16)は、EEPROM1bにおけるデータ記録領域3の記録容量が8192バイトなので、20バイトのデータが409個記録でき、かつ、このEEPROM1bの末尾に12バイトの空き領域が残存している。
そのため、上記結果が2000h以上の場合は、EEPROM1bの末尾にデータを記録する領域が確保できない。そこで、この場合は記録先をEEPROM1aに変更して、EEPROM1aのアドレス0020h(データ記録領域3の先頭アドレス)から20バイトのデータを記録するようにする(同図のS19)。
この際、アドレス4cに01h(EEPROM1a)、アドレス4dに0020hをそれぞれ記録準備する(同図のS20)。
On the other hand, when the EEPROM 1b is selected by the
Therefore, when the result is 2000h or more, an area for recording data cannot be secured at the end of the EEPROM 1b. Therefore, in this case, the recording destination is changed to the EEPROM 1a, and 20-byte data is recorded from the
At this time, 01h (EEPROM 1a) is prepared for the
(4)データ記録後の処理
上記(3)の処理によってデータの記録が完了したら、カウンターに関するアドレス4bの値に1hを加えてカウントアップするとともに、アドレス情報に関するアドレス4dの値に14h(データサイズが20バイトのため)を加えて次に記録するデータの先頭アドレスが分かるようにしておく(同図のS21)。
最後に、上記マイコンRAMに記録された(記録準備された)データを、アドレス4aを先頭アドレスとするデータ管理領域に記録する(同図のS22)。
(4) Processing after data recording When data recording is completed by the processing in (3) above, the value is incremented by adding 1h to the value of the
Finally, the data recorded (prepared for recording) in the microcomputer RAM is recorded in the data management area having the
このデータが予め決めた時間間隔(例えば2分ごと)で出力され、その都度、このデータが記録される。 This data is output at a predetermined time interval (for example, every two minutes), and this data is recorded each time.
ここで、実際の記録作業における各EEPROM1a、1b中の数値データの変化を、実際の出力データを模擬した模擬データを用いて説明する。 Here, changes in numerical data in the respective EEPROMs 1a and 1b in an actual recording operation will be described using simulated data simulating actual output data.
上述したように、各EEPROM1a、1bの初期化後、これらは図1に示す数値データを記録している。この初期化後に1回目のデータ記録を行った後のEEPROM1a、1b内の記録状態を図5に示す。
この1回目のデータ記録では、1個目のデータ管理領域2(EEPROM1aのアドレス0000h〜0007h)を使用し、そのデータ管理領域2の使用状況に関するアドレス4a(0000h)に01h(使用中)を記録するとともに、識別番号に関するアドレス4c(0005h)に01h(EEPROM1aを使用)を記録する。
さらにアドレス情報4d(0006h〜0007h)で指定されていたアドレス(0020h)を先頭アドレスとしてデータ(図5における01h〜14hの20個のデータ)を記録する。
このデータの記録後、カウンターに関するアドレス4b(0001h〜0004h)の値を1h増加するとともに、アドレス情報に関するアドレス4d(0006h〜0007h)に記録したデータを14h(データサイズが20バイトのため)だけ増加して0034h(メモリ上の記録順序としては、34hと00h)とし、次のデータを記録する際の先頭アドレスが分かるようにしておく。
As described above, after the initialization of each of the EEPROMs 1a and 1b, they record the numerical data shown in FIG. FIG. 5 shows a recording state in the EEPROMs 1a and 1b after the first data recording is performed after the initialization.
In this first data recording, the first data management area 2 (the
Further, data (20 data from 01h to 14h in FIG. 5) is recorded with the address (0020h) designated by the
After recording this data, the value of the
このデータ記録を繰り返して、408回目のデータ記録を行った後のEEPROM1a、1b内の記録状態を図6に示す。
この408回目の記録によって、EEPROM1aの最終アドレスまでちょうど一杯データが記録された状態となる。このデータの記録とともに、識別番号に関するアドレス4c(0005h)に02h(EEPROM1bを使用)を記録する。
このデータの記録後、カウンターに関するアドレス4b(0001h〜0004h)の値を1h増加するとともに、アドレス情報に関するアドレス4d(0006h〜0007h)に0000hを記録して、次のデータをEEPROM1bの先頭アドレスから記録するようにしておく。
FIG. 6 shows a recording state in the EEPROMs 1a and 1b after the data recording is repeated and the 408th data recording is performed.
With this 408th recording, the data has been recorded completely up to the final address of the EEPROM 1a. Along with the recording of this data, 02h (using EEPROM 1b) is recorded at
After recording this data, the value of the
さらにデータ記録を繰り返して、817回目のデータ記録を行った後のEEPROM1a、1b内の記録状態を図7に示す。
この817回目の記録によって、EEPROM1bの末尾に12バイトの空き領域を残した状態となる。このデータの記録後において、識別番号に関するアドレス4cには02h(EEPROM1bを使用)が記録されるとともに、アドレス情報に関するアドレス4dには1FF4hが記録される。
Further, FIG. 7 shows a recording state in the EEPROMs 1a and 1b after the data recording is repeated and the 817th data recording is performed.
This 817th recording leaves a 12-byte free area at the end of the EEPROM 1b. After the recording of this data, 02h (using the EEPROM 1b) is recorded in the
これに引き続いて818回目のデータ記録を行う場合、アドレス4dに記録されているアドレス1FF4hに14hを加えると2000hを超え、この回のデータはEEPROM1bには記録できないことが分かる。
そこで、818回目のデータをEEPROM1aのアドレス0020h(データ記録領域3の先頭アドレス)から記録するとともに、アドレス4cに01h(EEPROM1aを使用)を、アドレス4dに0020hをそれぞれ記録準備する。
このデータの記録後、図8に示すように、カウンターに関するアドレス4b(0001h〜0004h)の値を1h増加するとともに、アドレス情報に関するアドレス4d(0006h〜0007h)に0034hを記録して、次のデータをEEPROM1aのアドレス4dから記録するようにしておく。
Subsequently, when data is recorded for the 818th time, if 14h is added to the address 1FF4h recorded at the
Therefore, the 818th data is recorded from the
After recording this data, as shown in FIG. 8, the value of the
さらにデータ記録を繰り返して、80万回目のデータ記録を行った後のEEPROM1a、1b内の記録状態を図9に示す。
この80万回目のデータが記録された際において、1個目のデータ管理領域2のアドレス4a(0000h)には01h(使用中)、アドレス4b(0001h〜0004h)には000C3500h(10進数で80万)、アドレス4c(0005h)には01h(EEPROM1a)、アドレス4d(0006h〜0007h)には0C78h(アドレス情報)がそれぞれ記録されている。
Further, FIG. 9 shows a recording state in the EEPROMs 1a and 1b after the data recording is repeated and the 800th data recording is performed.
When the 800th data is recorded, the
これに引き続いて80万1回目のデータ記録を行う場合、アドレス4bに80万回以上である旨のデータが記録されているため、この1個目のデータ管理領域2の使用を中止することを決定し、そのアドレス4aに02h(使用済み)を記録準備する。
この記録準備とともに、1個目のデータ管理領域2のアドレス4c及び4dに記録されていたデータをそのまま2個目のデータ管理領域2の同アドレスに移動すべく記録準備する。さらに2個目のデータ管理領域2のアドレス4aに01h(使用中)を記録準備する。
Subsequently, when data recording is performed for the first time of 800,000 times, since the data indicating that the number of times is 800,000 times or more is recorded in the
Along with this recording preparation, the recording preparation is made so that the data recorded at the
この2個目のデータ管理領域2へのデータの記録準備が完了したら、図10に示すように、アドレス4dの示すアドレスへ20バイトのデータを記録する。この記録後、アドレス4b(0009h〜000Ch)の値を1h増加するとともに、アドレス4d(000Eh〜000Fh)を14hだけ増加して、次のデータを記録する際の先頭アドレスが分かるようにしておく。
最後に、上記のようにして記録準備されたデータをデータ管理領域に記録する。
When the preparation for recording data in the second
Finally, the data prepared for recording as described above is recorded in the data management area.
この実施形態のように2分ごとにデータを記録する場合においては、1個のデータ管理領域2によって約3年間(=2分×80万回÷60分÷24時間÷365日)記録の管理を行うことができる。このデータ管理領域2の個数を増やすことで、このデータ管理装置の使用可能期間をさらに延長することができる。
この延長は、高性能なEEPROM1を使用して、記録限度回数を伸ばすことによっても達成し得る。
When data is recorded every 2 minutes as in this embodiment, recording management is performed for about 3 years (= 2 minutes × 800,000 times ÷ 60 minutes ÷ 24 hours ÷ 365 days) by one
This extension can also be achieved by using the high-
1(1a、1b) EEPROM(不揮発性メモリ)
2 データ管理領域
3 データ記録領域
4 データ管理情報
4a データ管理領域の使用状況に関するアドレス
4b カウンターに関するアドレス
4c 識別番号に関するアドレス
4d アドレス情報に関するアドレス
1 (1a, 1b) EEPROM (nonvolatile memory)
2
Claims (10)
上記不揮発性メモリ(1)の記録領域の一部にデータ管理領域(2)を設け、そのデータ管理領域(2)に、上記不揮発性メモリ(1)にデータを記録した記録回数情報、及び、最新のデータの記録アドレスに関するアドレス情報のデータ管理情報(4)を記録し、上記記録領域の上記データ管理領域(2)以外に設けられたデータ記録領域(3)には、上記データ管理領域(2)に記録したアドレス情報に対応したアドレスに、そのデータを記録するようにしたことを特徴とするデータ記録装置。 In a data recording apparatus for recording and holding data in a rewritable manner in a nonvolatile memory (1),
A data management area (2) is provided in a part of the recording area of the non-volatile memory (1), the number of times of recording the data recorded in the non-volatile memory (1) in the data management area (2), and Data management information (4) of address information related to the recording address of the latest data is recorded, and the data management area (3) provided in the recording area other than the data management area (2) has the data management area ( 2. A data recording apparatus, wherein the data is recorded at an address corresponding to the address information recorded in 2).
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007148946A JP4660855B2 (en) | 2007-06-05 | 2007-06-05 | Data recording apparatus, data recording method, and cold storage equipped with the data recording apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007148946A JP4660855B2 (en) | 2007-06-05 | 2007-06-05 | Data recording apparatus, data recording method, and cold storage equipped with the data recording apparatus |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2008304973A true JP2008304973A (en) | 2008-12-18 |
JP4660855B2 JP4660855B2 (en) | 2011-03-30 |
Family
ID=40233684
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007148946A Active JP4660855B2 (en) | 2007-06-05 | 2007-06-05 | Data recording apparatus, data recording method, and cold storage equipped with the data recording apparatus |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4660855B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2014179131A (en) * | 2014-06-05 | 2014-09-25 | Aisin Aw Co Ltd | Writing device, writing method, and writing program |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH04165547A (en) * | 1990-10-30 | 1992-06-11 | Oki Electric Ind Co Ltd | Memory area switching processing device |
JPH05282880A (en) * | 1992-01-10 | 1993-10-29 | Toshiba Corp | Semiconductor disk apparatus |
JPH10312693A (en) * | 1997-05-14 | 1998-11-24 | Nec Corp | Storage device |
JP2002342164A (en) * | 2001-05-22 | 2002-11-29 | Hitachi Ltd | Storage device, data processor, and method for controlling storing part |
-
2007
- 2007-06-05 JP JP2007148946A patent/JP4660855B2/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH04165547A (en) * | 1990-10-30 | 1992-06-11 | Oki Electric Ind Co Ltd | Memory area switching processing device |
JPH05282880A (en) * | 1992-01-10 | 1993-10-29 | Toshiba Corp | Semiconductor disk apparatus |
JPH10312693A (en) * | 1997-05-14 | 1998-11-24 | Nec Corp | Storage device |
JP2002342164A (en) * | 2001-05-22 | 2002-11-29 | Hitachi Ltd | Storage device, data processor, and method for controlling storing part |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2014179131A (en) * | 2014-06-05 | 2014-09-25 | Aisin Aw Co Ltd | Writing device, writing method, and writing program |
Also Published As
Publication number | Publication date |
---|---|
JP4660855B2 (en) | 2011-03-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100531192B1 (en) | Non-volatile memory control method | |
US9767035B2 (en) | Pass-through tape access in a disk storage environment | |
US8234462B2 (en) | Security erase of a delete file and of sectors not currently assigned to a file | |
US7725646B2 (en) | Method of using a flash memory for a circular buffer | |
EP2180408A1 (en) | Method for writing and reading data in an electrically erasable and programmable nonvolatile memory | |
JP4215746B2 (en) | Information processing apparatus and life monitoring method | |
WO2009153982A1 (en) | Plurally partitioned nonvolatile memory device and system | |
US20080201342A1 (en) | Data storage device management system and method | |
US20040194114A1 (en) | Method and system for managing the contents of an event log stored within a computer | |
KR101148097B1 (en) | System and method for writing data and a time value to an addressable unit of a removable storage medium | |
KR100703680B1 (en) | Flash file system | |
WO2019047901A1 (en) | Data depositing method | |
JP2000222292A (en) | Data managing method utilizing flash memory | |
US9971682B2 (en) | Wear-leveling system and method for reducing stress on memory device using erase counters | |
JP2010009296A (en) | Software operation monitoring device and method | |
JP4660855B2 (en) | Data recording apparatus, data recording method, and cold storage equipped with the data recording apparatus | |
US10620867B2 (en) | System and method for performing wear leveling at a non-volatile firmware memory | |
TWI453589B (en) | A drive indicating mechanism for removable media | |
CN112181275A (en) | Data processor and data processing method | |
JP2021515308A (en) | Devices and methods for accessing metadata when debugging devices | |
JP2003036209A (en) | Nonvolatile memory and data rewriting method thereof | |
Reddy et al. | Solid state device (SSD) forensics | |
US20160275011A1 (en) | Microcomputer with built-in flash memory, method for writing data to built-in flash memory of microcomputer, and program for writing data to flash memory | |
JPH06222985A (en) | Memory controller | |
CN106844228B (en) | Method and device for realizing partition management of lightweight SD card |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20100907 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20100914 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20101111 |
|
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: 20101130 |
|
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: 20101217 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 4660855 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140114 Year of fee payment: 3 |
|
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 |
|
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 |