JP2010122947A - Information recording device - Google Patents
Information recording device Download PDFInfo
- Publication number
- JP2010122947A JP2010122947A JP2008296588A JP2008296588A JP2010122947A JP 2010122947 A JP2010122947 A JP 2010122947A JP 2008296588 A JP2008296588 A JP 2008296588A JP 2008296588 A JP2008296588 A JP 2008296588A JP 2010122947 A JP2010122947 A JP 2010122947A
- Authority
- JP
- Japan
- Prior art keywords
- writing
- nonvolatile memory
- movement
- related information
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
Description
この発明は移動体の移動に関連する移動関連情報を記録する情報記録装置に関する。 The present invention relates to an information recording apparatus for recording movement related information related to movement of a moving object.
移動体に関連する情報を記録する情報記録装置としては、例えば、ドライブレコーダは、車両による事故発生の前後の、カメラで撮影した動画像等の運転情報を不揮発性のメモリに記録する装置である。 As an information recording device that records information related to a moving object, for example, a drive recorder is a device that records driving information such as moving images taken by a camera in a nonvolatile memory before and after the occurrence of an accident by a vehicle. .
特許文献1には、カメラで撮影した動画像を一時的に揮発性メモリに記憶しておき、センサによって衝突を検出した場合に、揮発性メモリに記憶しておいた動画像を不揮発性メモリに記録するドライブレコーダが開示されている。
ドライブレコーダのように移動体に関連する情報を記録する情報記録装置の運転情報のような移動関連情報を記録する記憶装置は、事故の衝撃で壊れて読み出せなくなることがないように、NAND型フラッシュメモリやMRAMのような、不揮発性の半導体メモリを用いることが望ましい。 A storage device that records movement-related information such as driving information of an information recording device that records information related to a moving object such as a drive recorder is NAND-type so that it cannot be broken and cannot be read due to the impact of an accident. It is desirable to use a non-volatile semiconductor memory such as a flash memory or an MRAM.
また、事故の衝撃で、電源供給が停止したり、回路基板が損傷を受けることで、ドライブレコーダが突然動作不能になった場合にも、その直前まで記録していた運転情報は不揮発性の記憶装置に記録されていて、事故後に読み出せることが望ましい。 In addition, even if the drive recorder suddenly becomes inoperable due to the power supply being stopped or the circuit board being damaged due to the impact of an accident, the operation information recorded until immediately before is not stored in the nonvolatile memory. It should be recorded on the device and read after the accident.
そのため、このような要求を満たすドライブレコーダのように移動体に関連する情報を記録する情報記録装置の運転情報の記録装置としてNAND型フラッシュメモリを使用する場合、NAND型フラッシュメモリ特有の書き込み方式に配慮する必要がある。 Therefore, when a NAND flash memory is used as an operation information recording device of an information recording device that records information related to a moving body, such as a drive recorder that satisfies such requirements, a writing method unique to the NAND flash memory is used. It is necessary to consider.
NAND型フラッシュメモリは、ページと呼ぶ単位でデータの読み書きを行い、また、複数のページ(例えば64ページや128ページ)をまとめたブロックと呼ぶ単位でデータの消去を行う。ページのサイズは例えば2Kバイトや4Kバイトであり、ブロックのサイズは例えば128Kバイトや256Kバイトである。NAND型フラッシュメモリに対してページの書き込みを行う場合、書き込みコマンドと書き込みたいアドレス、それに書き込みたいページサイズのデータを送って書き込みを指示する。その後、ステータスリードコマンドを送ってステータスを読み出すことで、書き込みが正常に終了したかどうかを確認する。このとき、書き込みが正常に終了しなかった場合は、そのページが属するブロック全体を無効にし、別のブロックに再度データを書き込む必要がある。すなわち、ブロック全体が正常に書き込み終了したことを確認するまでは、ブロック全体の書き込みが再度必要になる可能性がある。 The NAND flash memory reads and writes data in units called pages, and erases data in units called blocks in which a plurality of pages (for example, 64 pages and 128 pages) are combined. The page size is, for example, 2 Kbytes or 4 Kbytes, and the block size is, for example, 128 Kbytes or 256 Kbytes. When writing a page to the NAND flash memory, a write command, an address to be written, and data of a page size to be written are sent to instruct the write. Thereafter, a status read command is sent and the status is read to check whether the writing has been completed normally. At this time, if the writing is not completed normally, it is necessary to invalidate the entire block to which the page belongs and write the data again in another block. In other words, there is a possibility that writing of the entire block is required again until it is confirmed that the writing of the entire block has been normally completed.
そのため、ブロックの最後のページまで正常に書き込みが完了する前に事故等でドライブレコーダのように移動体に関連する情報を記録する情報記録装置が動作を停止した場合、停止時に書き込み途中であったページの書き込みが正常に終了せず、ブロック全体を無効にしなくてはいけない可能性が発生しうる。例としてドライブレコーダが動画像を2Mbpsのビットレートで記録する場合を考えると、1秒間に256KバイトのデータをNAND型フラッシュメモリに記録することになる。このとき、ブロックサイズが256Kバイトであるとすると、1秒分のデータが1ブロックに相当する。よって、事故直前の最大1秒分の動画像が正しく読み出せなくなる可能性がある。このように、NAND型フラッシュメモリなどでは、最終的に移動体の移動に関連する情報を保存するメモリへの書き込みに時間が掛かり、書き込み中に急な電源供給の停止が起こった場合でも情報の欠損が生じるという課題が生じる。なお、これらの問題は、NAND型フラッシュメモリのみに限るものではない。 Therefore, when an information recording device that records information related to a moving object, such as a drive recorder, stops operating due to an accident or the like before writing is completed normally up to the last page of the block, writing was in progress at the time of stopping. There is a possibility that the page writing does not end normally and the entire block must be invalidated. As an example, when the drive recorder records a moving image at a bit rate of 2 Mbps, 256 Kbytes of data are recorded in the NAND flash memory per second. At this time, if the block size is 256 Kbytes, one second of data corresponds to one block. Therefore, there is a possibility that a moving image for a maximum of 1 second immediately before the accident cannot be read correctly. As described above, in a NAND flash memory or the like, finally, it takes time to write information to the memory that stores information related to the movement of the moving object, and even if the power supply suddenly stops during writing, There arises a problem that defects occur. These problems are not limited to the NAND flash memory.
上記目的を達成するために、本発明の実施形態に係る情報記録装置は、 移動体に取り付けられた情報記録装置であって、移動体の移動に関連する移動関連情報を受け付ける受付手段と、移動関連情報を一時的に記録する第1の不揮発性メモリと、書き込みが完了する最小の単位である書き込み完了ブロックサイズのブロックへの書き込みが完了する時間が、第1の不揮発性メモリよりも長い第2の不揮発性メモリと、受け付けた移動関連情報を第1の不揮発性メモリに書き込み、移動関連情報を保持する保持状態にする第1の書き込み手段と、第2の不揮発性メモリの書き込みブロックサイズと同じ大きさの移動関連情報を第1の不揮発性メモリから読み出す読み出し手段と、読み出し手段により読み出した移動関連情報を第2の不揮発性メモリへ書き込む第2の書き込み手段と、第2の不揮発性メモリの書き込み完了ブロックサイズのブロックへの書き込みが正常に完了したことを確認後、移動関連情報のうち書き込みが正常に完了した移動関連情報の保持状態を開放にする保持状態開放手段とを備えることを特徴とする。 In order to achieve the above object, an information recording apparatus according to an embodiment of the present invention is an information recording apparatus attached to a moving body, and includes a receiving means for receiving movement related information related to movement of the moving body, A first nonvolatile memory that temporarily records related information and a time for completing writing to a block having a write completion block size that is a minimum unit for completing writing is longer than that of the first nonvolatile memory. Two nonvolatile memories, first writing means for writing the received movement-related information to the first nonvolatile memory and holding the movement-related information, and a writing block size of the second nonvolatile memory; Reading means for reading movement-related information of the same size from the first nonvolatile memory, and movement-related information read by the reading means is second nonvolatile The movement-related information in which the writing has been normally completed among the movement-related information after confirming that the writing to the block having the writing completion block size of the second nonvolatile memory and the second writing means to be written to the memory has been normally completed. And holding state releasing means for releasing the holding state.
本発明によれば、最終的に移動体の移動に関連する情報を保存するメモリへの書き込みに時間が掛かり、書き込み中に急な電源供給の停止が起こった場合でも情報の欠損を軽減することができる。 According to the present invention, it takes a long time to write to the memory that stores information related to the movement of the mobile object, and the loss of information is reduced even when a sudden power supply stop occurs during the writing. Can do.
図1は、本発明の情報記録装置100のシステム構成例を示す図である。
FIG. 1 is a diagram showing a system configuration example of an
CPU103は情報記録装置100全体を制御し、バス108を介してCPU103とつながっているROM104にはCPU103が実行するプログラムが記録され、RAM105はCPU103がプログラムの実行時に必要になるデータを記憶する。第1の不揮発性メモリとしてMRAM105がバス108に接続され、第2の不揮発性メモリとしてNAND型フラッシュメモリがバス108に接続されている。なお、ROM104とRAM105の役割をMRAMに担当させるように実施することも可能である。また、移動関連情報検知手段101はインタフェース102を介してバス108に接続されている。
The
図2は、本発明の情報記録装置100の機能ブロック図である。
FIG. 2 is a functional block diagram of the
情報記録装置100は、移動関連情報検知手段101、受付手段202、第1の不揮発性メモリ106、第2の不揮発性メモリ107、第1の書き込み手段203、読み出し手段204、第2の書き込み手段205、保持状態開放手段208を有する。
The
情報記録装置100は、図示しない移動体に取り付けられている。ここで、移動体とは移動する機械をいい、例えば車両、航空機、船舶などがあるがこれらに限らない。
The information recording
移動関連情報検知手段101は、移動体の移動に関連する移動関連情報を検知する。ここで、移動関連情報とは、移動体の移動に関連する情報であり、また、移動に関連する情報とは、移動体が移動する際の移動体の周辺状況を表す情報や、移動体が移動する際の移動体自体の移動状況を表す情報をいう。移動体の周辺状況を表す情報は、例えば、移動体の周辺を撮影した動画像、超音波ソナー等によって検出する前後を移動する移動体との距離情報などがある。移動体自体の移動状況を表す情報は、例えば、加速度センサによる速度情報、ブレーキやハンドルの操作状況を表す情報などがある。
The movement related
受付手段202は、移動関連情報検知手段101にて検知した移動関連情報を受け付ける。
The accepting
第1の不揮発性メモリ106は、移動関連情報を一時的に記録するメモリである。
The first
第2の不揮発性メモリ107は、書き込みが完了する最小の単位である書き込み完了ブロックサイズのブロックへの書き込みが完了する時間が、第1の不揮発性メモリよりも長い不揮発性メモリである。ここで、書き込みが完了しないと途中まで書き込みした情報は正常に書き込まれたとはされないため、実質的には情報が失われることになる。よって、書き込み完了ブロックサイズのブロックへの書き込み時間が、第2の不揮発性メモリ107は第1の不揮発性メモリよりも長いため、第2の不揮発性メモリ107は書き込み途中で移動体が事故などで電源供給が停止して、途中まで書き込まれた情報が失われる可能性が第1の不揮発性メモリよりも高いと言える。
The second
例えば、第1の不揮発性メモリは磁気ランダムアクセスメモリ(MRAM:Magnetoresistive Random Access Memory)であり、第2の不揮発性メモリはNAND型フラッシュメモリである。 For example, the first nonvolatile memory is a magnetic random access memory (MRAM), and the second nonvolatile memory is a NAND flash memory.
第1の書き込み手段203は、受付手段202にて受け付けた移動関連情報を第1の不揮発性メモリに書き込み、移動関連情報を保持する状態にする。ここで、保持する状態にするとは、移動関連情報と移動関連情報の保持可否を判断するための保持要否判断情報とを対応付けて記憶し、保持要否判断情報が必要とされる移動関連情報は削除または第1の書き込み手段203が上書きできない状態をいう。
The
読み出し手段204は、第2の不揮発性メモリの書き込みブロックサイズと同じ大きさの移動関連情報を第1の不揮発性メモリから読み出す。具体的には、第1の不揮発性メモリに記憶された移動関連情報の中で、まだ第2の不揮発性メモリに書き込んでいないデータであって、第1の不揮発性メモリの書き込み順の先頭から第2の不揮発性メモリの書き込みブロックサイズのデータを読み出す。ここで、第2の不揮発性メモリの書き込みブロックサイズとは、第2の不揮発性メモリへ書き込みする際の最小の単位(サイズ)である。そのため、上述の書き込み完了ブロックサイズは、書き込みブロックサイズよりも大きなサイズであり、書き込み完了ブロックサイズは、書き込みブロックサイズが複数集まったサイズとなる。
The
第2の書き込み手段205は、読み出し手段204が読み出した移動関連情報を、第2の不揮発性メモリに書き込む。
The
保持状態開放手段208は、第2の不揮発性メモリ107への書き込みが正常に完了したことを確認後、移動関連情報のうち書き込みが正常に完了した移動関連情報の保持状態を開放する。ここで、第2の不揮発性メモリ107への書き込みが正常に完了したとは、書き込みが完了する最小の単位である書き込み完了ブロックサイズのブロックへの書き込みが正常に完了することをいう。
After confirming that the writing to the second
また、第2の不揮発性メモリ107への書き込みが正常に完了したことは、削除可能化手段208が第2の不揮発性メモリ107にステータスの確認依頼要求を送り、返送されたステータスなどに基づいて確認する。また、保持状態を開放するとは、開放の対象となる移動関連情報が削除または上書きされても良い状態にすることをいう。例えば、開放の対象となる移動関連情報が記憶されていた記憶領域に他の情報を書き込むことができる状態にする。
In addition, the successful completion of the writing to the second
次に、本実施形態の動作について説明する。 Next, the operation of this embodiment will be described.
移動関連情報検知手段101は、動画像などの移動情報を検知する。検知した移動情報は受付手段202で受け付けられ、第1の書き込み手段203が第1の不揮発性メモリ106に書き込むと同時に、書き込んだ移動関連情報を保持状態にする。
The movement related
そして、読み出し手段204は、第2の不揮発性メモリの書き込みブロックサイズと同じ大きさの移動関連情報が第1の不揮発性メモリに蓄積されると第1の不揮発性メモリから読み出して、第2の書き込み手段205は、第2の不揮発性メモリに書き込む。
Then, when the movement related information having the same size as the writing block size of the second non-volatile memory is accumulated in the first non-volatile memory, the
保持状態開放手段208は、第2の不揮発性メモリ107への書き込みが正常に完了したことを確認すると、書き込みが正常に完了した移動関連情報の保持状態を開放する。
When the holding
次に、本実施形態の実現例を以下に実施例として説明する。 Next, an implementation example of this embodiment will be described below as an example.
図3に本発明の情報記憶装置の実施例であるドライブレコーダのシステム構成例を示す。CPU103はドライブレコーダ300全体を制御し、バス108を介してCPU103とつながっているROM104にはCPU103が実行するプログラムが記録され、RAM105はCPU103がプログラムの実行時に必要になるデータを記憶する。第1の不揮発性メモリとしてMRAM306がバス108に接続され、第2の不揮発性メモリとしてNAND型フラッシュメモリ307がバス108に接続されている。なお、ROM104とRAM105の役割をMRAM306に担当させるように実施することも可能である。
FIG. 3 shows a system configuration example of a drive recorder which is an embodiment of the information storage device of the present invention. The
カメラ301−1で撮影した動画像は、バス108に接続されたカメラインタフェース302−1を介して読み込み、MRAM306に記録する。ここで、移動関連情報検知手段101の実施例がカメラ301−1であり、受付手段202と第1の書き込み手段203の実施例がカメラインタフェース302−1に対応し、第1の不揮発性メモリ106の実施例がMRAM306に対応する。図3はカメラ301−1とカメラインタフェース302−1をそれぞれ2つ持つ構成を示しているが、それぞれ1つでも良いし、3つ以上でも構わない。カメラインタフェース302−1はDMA(Direct Memory Access)によって動画像データをMRAM306に直接書き込むように構成しても良いし、CPU103がカメラインタフェース302−1を介して動画像データを読み込んでMRAM306に書き込むように構成しても良いし、カメラインタフェース302−1とMRAM306の間に専用にデータ転送路を設けて動画像を書き込むように構成しても良い。
A moving image captured by the camera 301-1 is read through the camera interface 302-1 connected to the bus 108 and recorded in the
ドライブレコーダ300には、運転状況に関する車両内の各種データをセンサ301−2を介して取り込むためのセンサインタフェース302−2を持っても良い。これらのデータをカメラ301−1で撮影した動画像と併せて記録することにより、事故発生時の原因究明に役立てることができる。センサ301−2で取り込むデータには、加速度センサによる速度情報、ブレーキ等の操作状況を示すデータ、超音波ソナー等によって検出する前後を走行する車両との距離情報などがある。特に、事故発生を検出するためには、速度情報や距離情報は重要である。ここで、カメラインタフェース302−1はDMA(Direct Memory Access)によって動画像データをMRAM306に直接書き込む場合は、センサ301−2は移動関連情報検知手段101の実施例に該当し、センサインタフェース302−2は、受付手段202と第1の書き込み手段203の実施例に該当する。CPU103がカメラインタフェース302−1を介して動画像データを読み込んでMRAM306に書き込む場合は、センサ301−2は移動関連情報検知手段101の実施例に該当し、センサインタフェース302−2は受付手段202に該当し、CPU103(所定のプログラムに基づいて実行されるCPUという意味)は第1の書き込み手段203に該当する。
The
図4は本発明のドライブレコーダ400の別の構成例を示している。図3の構成ではNAND型フラッシュメモリ307をCPU103のバス108に接続し、CPU103が直接制御する。それに対して図4の構成では、NAND型フラッシュメモリ307を搭載したカード(例えばコンパクトフラッシュ(登録商標)、SDカードなど)を、フラッシュメモリコントローラを介してCPU103と接続する。この構成では、第2の不揮発性メモリであるNAND型フラッシュメモリ307を自由に抜き挿しできる。なお、図3の構成も図4の構成も、その動作は同じである。
FIG. 4 shows another configuration example of the
図3および図4の構成における動作の手順を説明する。カメラ301−1で撮影した動画像は、カメラインタフェース302−1を介して入力し、順次MRAM306に書き込む(第1の書き込み手段に対応)。MRAM306は図5に示すように管理する。MRAM306上には、運転情報を記録するための運転情報記録領域を設ける。この運転情報記録領域はリングバッファになっており、その先頭と最後を指すポインタをMRAM306上に設ける。さらに、MRAM306からNAND型フラッシュメモリ307にデータを書き込む際に、書き込み先のブロックのアドレスをMRAM306上に記録している。
An operation procedure in the configuration of FIGS. 3 and 4 will be described. A moving image captured by the camera 301-1 is input via the camera interface 302-1 and sequentially written in the MRAM 306 (corresponding to the first writing unit). The
運転情報は、ドライブレコーダ400に接続されたカメラ301−1で撮影した動画像や、各種センサ301−2によって取り込んだデータからなる、時系列のデータである(移動関連情報に対応)。図5は、ドライブレコーダ(300または400)にカメラ301−1が1台だけ接続されている場合の運転情報を記録している例を示しており、動画像を構成する各フレームの画像をリングバッファに順次記録している。例えば30フレーム/秒のカメラ301−1で撮影した動画像であれば、1秒間に30枚の画像が取り込まれてくるので、それをリングバッファに順次記録する。
The driving information is time-series data composed of a moving image captured by the camera 301-1 connected to the
なお、取り込んだ画像は、圧縮せずにそのまま運転情報として記録するように実施しても良いし、CPU103によってJPEG等で画像1枚ごとに圧縮してから運転情報として記録するように実施しても良いし、圧縮ハードウェアを備えたカメラ301−1あるいはカメラインタフェース302−1を用いて圧縮済みの画像を取り込んで運転情報として記録するように実施しても良い。また、MPEG等の動画像の圧縮技術を用いて、複数のフレーム群をまとめて圧縮したデータを、運転情報として記録するように実施しても良い。
The captured image may be recorded as driving information without being compressed, or may be recorded as driving information after being compressed by the
カメラ301−1が複数台接続されている場合や、動画像以外のセンサデータも同時に記録する場合は、それらを交互にリングバッファに記録する。このとき、適切なヘッダ情報を合わせて記録する等、読み出したときに何のデータであるか分かるようにしておくのが望ましい。例えば、センサ301−2やカメラ301−1などの移動関連情報検知手段101の識別IDとデータとを対応付けることにより何のデータであるかようにしておく。
When a plurality of cameras 301-1 are connected, or when sensor data other than moving images are recorded simultaneously, they are alternately recorded in the ring buffer. At this time, it is desirable to know what data is read when it is read out, for example, by recording together appropriate header information. For example, the identification information of the movement-related
MRAM306上の運転情報記録領域はリングバッファとして使用するので、リングバッファ内に記録したデータの開始位置を示す「バッファの先頭」と、最後に書き込んだデータの位置を示す「バッファの最後」のポインタを管理する。これらのポインタは、MRAM306上に記憶することで、事故の発生等で電源供給が停止した場合でも失われないように管理するのが望ましい。「バッファの最後」のポインタは、リングバッファに新しい運転情報が記録されるたびに、それにあわせて更新する。
Since the operation information recording area on the
MRAM306上の運転情報記録領域に記録した運転情報は、順次NAND型フラッシュメモリ307にコピーする(読み出し手段、第2の書き込み手段に対応)。これは、一般にNAND型フラッシュメモリ307はMRAM306に比べて低コストで大容量であるため、最終的な運転情報の記録には適しているためである。図6に、MARMからNAND型フラッシュメモリ307へのデータのコピーの手順を示す。
The operation information recorded in the operation information recording area on the
基本は、NAND型フラッシュメモリ307のブロックサイズを単位にコピーを行い、コピーが正常に完了したことを確認するまでは、コピー元のデータをMRAM306上に保持し続けることで、コピー中に事故が発生してドライブレコーダ(300または400)が停止した場合でも、事故直前までのデータはMRAM306あるいはNAND型フラッシュメモリ307のいずれかには必ず残るように制御することである。
Basically, copying is performed in units of the block size of the
ここで、MRAM306からNAND型フラッシュメモリ307へのデータの転送は、CPU103の制御によって図6の手順で行う。まず、NAND型フラッシュメモリ307上に、次のデータを記録するブロックを確保し、そのアドレスをMRAM306上に「NANDのブロックアドレス」情報として記録する(S1)。このブロックの確保は、あらかじめ未使用ブロックのリストを作成しておき、そのなかから順次取り出すようにして実現できる。もしすべてのブロックを使用してしまって空きブロックがない場合は、最も古い運転情報を記録しているブロックのデータを消去し、そのブロックを使うようにする。
Here, the data transfer from the
次に、MRAM306上の運転情報記録領域から、まだNAND型フラッシュメモリ307に書き込んでいないデータの先頭から、NAND型フラッシュメモリ307のページサイズと同じサイズのデータを取り出す(読み出し手段に対応)(S2)。
Next, data having the same size as the page size of the
そのデータを、NAND型フラッシュメモリ307上に割り当てた書き込み用ブロック中で、まだ書き込んでいない最初のページに書き込む(第2の書き込み手段に対応)(S3)。この書き込みは、NAND型フラッシュメモリ307に対して、データの書き込みコマンドと、書き込み先のページのアドレスと、書き込みデータを送ることで実現できる。図4のようにNAND型フラッシュメモリ307を搭載したカードに書き込む場合には、書き込み先のアドレスは論理的なアドレスになる場合もある。
The data is written in the first page not yet written in the writing block allocated on the NAND flash memory 307 (corresponding to the second writing means) (S3). This writing can be realized by sending a data write command, a write destination page address, and write data to the
書き込みが終われば、NAND型フラッシュメモリ307に対してステータスリードのコマンドを送り、ステータスを読み出す(S4)。
When the writing is completed, a status read command is sent to the
読み出したステータスが、書き込みが正常に完了したことを示している場合には(S5)、そのときに書き込んだページがブロックの最後のページであるかどうかを調べ(S6)最後のページでない場合は、S2へ飛んで次のページの書き込みを続ける。最後のページであれば、ブロックサイズ分のデータのNAND型フラッシュメモリ307への書き込みが正常に終了したことを示しているので、MARM上の運転情報記録領域の先頭からブロックサイズ分のデータを解放可能な状態にする(保持状態開放手段208に対応)。この操作は、「バッファの先頭」ポインタを、ブロックサイズ分だけ進めることで実現できる。
When the read status indicates that the writing has been completed normally (S5), it is checked whether or not the page written at that time is the last page of the block (S6). , Jump to S2 and continue writing the next page. If it is the last page, it indicates that the writing of data for the block size to the
S5でNAND型フラッシュメモリ307に正常に書き込めなかった場合は、NAND型フラッシュメモリ307の仕様上、新しいブロックを割り当てて、書き込めなかったページを含むブロック全体を再度書き込み直す必要がある。そのため、現在のブロック内のページへの書き込みをすべてキャンセルし(S8)、S1で新しいブロックを割り当てるところからやり直す。
If the writing to the
図5の実施例では、運転情報記録領域のリングバッファの先頭と最後をポインタで記憶しているが、運転情報記録領域に記録するデータを解析することで、例えば画像データ内に含まれるタイムスタンプ等の情報からリングバッファ内のデータの先頭と最後が判断できる場合には、リングバッファの先頭と最後のポインタをMRAM306ではなく揮発性のRAM上に記憶するように実施しても良い。
In the embodiment of FIG. 5, the beginning and end of the ring buffer in the driving information recording area are stored as pointers. However, by analyzing the data recorded in the driving information recording area, for example, a time stamp included in the image data When the head and end of the data in the ring buffer can be determined from such information, the pointers at the head and end of the ring buffer may be stored in the volatile RAM instead of the
さて、このように実施することで、事故の発生によってドライブレコーダ(300または400)への電源供給が停止したり、ドライブレコーダ(300または400)の基板が破壊されて機能が停止した場合でも、その直前までの運転情報は、NAND型フラッシュメモリ307の中か、MRAM306上の運転情報記録領域に残っているようになる。望ましくは、事故後にドライブレコーダ(300または400)の電源をはじめて入れたときは、MRAM306内の運転情報記録領域の「バッファの先頭」ポインタが指す位置から始まる情報と、NAND型フラッシュメモリ307中で「NANDのブロックアドレス」に記録されたブロックアドレスで指定されるブロックに記録されたデータを比較し、1ブロック分のデータが正しく書き込まれているかどうかを判断し、もし正しく書き込まれていない場合は、同ブロックに継続して書き込める場合は継続して書き込み、そうでない場合は新しいブロックを割り当てて再書き込みを行うようにする。
By carrying out in this way, even when the power supply to the drive recorder (300 or 400) is stopped due to the occurrence of an accident or the board of the drive recorder (300 or 400) is destroyed and the function is stopped, The operation information up to immediately before is left in the
図5に示したMRAM306の管理方式に置いて、運転情報記録領域のリングバッファのサイズは、少なくともNAND型フラッシュメモリ307のブロックのサイズと同じか、大きいことが必要である。
In the management method of the
運転情報記録領域のサイズを大きくし、事故の発生前後のデータのみをNAND型フラッシュメモリ307に記録するように実施することもできる。例えば20秒程度の間の運転情報を記録できるサイズの運転情報記録領域を用意し、通常は運転情報を運転情報記録領域のリングバッファに記録し続ける。このとき、リングバッファがいっぱいになった場合は、古い運転情報に上書きする。加速度センサ等の情報により事故を検出した場合には、現在の運転情報記録領域の最も古い情報から順にNAND型フラッシュメモリ307に書き込む。以降、事故発生を検出してから一定の時間が経過するまでは、運転情報をNAND型フラッシュメモリ307に書き込み続ける。このようにすると、NAND型フラッシュメモリ307への書き込み回数を大幅に削減できる。
It is also possible to increase the size of the operation information recording area and record only the data before and after the occurrence of the accident in the
図7は、別の実施例のMRAM306上のデータ管理方法を示した図である。この実施例は、図5の実施例と同様に、カメラ301−1で撮影した動画像を順次取り込んで運転情報記録領域に記録する。次に、運転情報記録領域に記録したデータを、CPU103 あるいは専用のハードウェアによって圧縮して圧縮済み画像データを作成し、それを圧縮済み運転情報記録領域に記録する。この圧縮済み運転情報記録領域もリングバッファとして管理し、「圧縮バッファの先頭」と「圧縮バッファの最後」の2つのポインタで有効なデータの先頭と最後をさす。NAND型フラッシュメモリ307には、圧縮済み運転情報記録領域に記録した圧縮済み画像データを、ブロックサイズ単位で書き込む。
FIG. 7 is a diagram showing a data management method on the
このとき、書き込む先のNAND型フラッシュメモリ307のブロックのアドレスは、図5の例と同様に、MRAM306上の「NANDのブロックアドレス」領域に記録する。このように実施することにより、NAND型フラッシュメモリ307に記録するデータ量を削減し、同じ容量でもより長時間のデータを記録できる。
At this time, the address of the block of the
圧縮には、MPEG等の動画圧縮技術を使っても良いし、その他のファイル圧縮技術を用いても構わない。図7では、圧縮済み運転情報記録領域には圧縮済み画像データを記録する実施例を示しているが、運転情報記録領域に記録する運転情報が動画像以外にセンサデータ等も含む場合は、それも含めて圧縮したデータを圧縮済み運転情報記録領域に記録するように実施しても良いし、あるいは、運転情報の中の動画像の部分だけを圧縮し、他のセンサデータ等は圧縮せずにそのまま記録するように実施しても良い。 For compression, a moving image compression technique such as MPEG may be used, or other file compression techniques may be used. FIG. 7 shows an embodiment in which compressed image data is recorded in the compressed driving information recording area. However, when the driving information recorded in the driving information recording area includes sensor data in addition to the moving image, The compressed data may be recorded in the compressed driving information recording area, or only the moving image portion in the driving information is compressed, and other sensor data is not compressed. It is also possible to carry out recording as it is.
なお、図7では運転情報記録領域も、圧縮済み運転情報記録領域も、いずれもMRAM307上に確保する実施方法を示している。他の実施方法としては、圧縮済み運転情報記録領域は揮発性のRAM上に設けても構わない。運転情報記録領域のデータが不揮発性のメモリにあれば、圧縮済み運転情報記録領域にデータは再現できるからである。
FIG. 7 shows an implementation method in which both the operation information recording area and the compressed operation information recording area are secured on the
また別の実施方法としては、図7と同様に運転情報記録領域も、圧縮済み運転情報記録領域も、いずれもMRAM307上に確保し、圧縮して圧縮済み運転情報記録領域に記録した運転情報は、運転情報記録領域から開放可能な状態にする。こうすることで、運転情報記録領域に必要なメモリ量を削減することができる。
As another implementation method, similarly to FIG. 7, both the operation information recording area and the compressed operation information recording area are secured on the
さらに別の実施方法としては、図7のようにMRAM307を管理し、加速度センサ等によって事故の発生を検出する手段を持たせ、事故が発生していない場合は、圧縮済み運転情報記録領域のデータをNAND型フラッシュメモリ307に書き込み続け、事故が発生した前後は運転情報記録領域のデータをNAND型フラッシュメモリ307に書き込む。こうすると、平常時は圧縮率の高いデータを書き込み続け、事故の前後は非圧縮あるいは圧縮率が低い鮮明な画像を記録することができる。
As another implementation method, as shown in FIG. 7, the
第1の不揮発性メモリとしてMRAM307を使った実施例を示したが、それ以外にも、FeRAMやバッテリーバックアップしたSRAM、ReRAM、PRAM、NOR型フラッシュメモリ等の不揮発性メモリを用いても同様に実施できる。このとき、第1の不揮発性メモリの書き込みブロックサイズは、第2の不揮発性メモリの書き込みブロックサイズよりも小さいときに、本発明をより効果的に実施できる。例えばMRAM307はランダムに書き込みできるので、書き込みブロックサイズはメモリのデータ幅、例えば1ワード(32ビット)である。
Although the embodiment using the
第2の不揮発性メモリとしてNAND型フラッシュメモリ307を使って実施例を示したが、それ以外にも、ReRAM、NOR型フラッシュメモリ等の不揮発性メモリやHDDや光ディスクや光磁気ディスク等を用いても同様に実施できる。
Although the embodiment has been described using the
100・・・情報記録装置
101・・・移動関連情報検知手段
106・・・第1の不揮発性メモリ
107・・・第2の不揮発性メモリ
202・・・受付手段
203・・・第1の書き込み手段
204・・・読み出し手段
205・・・第2の書き込み手段
208・・・保持状態開放手段
DESCRIPTION OF
Claims (7)
移動体の移動に関連する移動関連情報を受け付ける受付手段と、
前記移動関連情報を一時的に記録する第1の不揮発性メモリと、
書き込みが完了する最小の単位である書き込み完了ブロックサイズのブロックへの書き込みが完了する時間が、前記第1の不揮発性メモリよりも長い第2の不揮発性メモリと、
受け付けた移動関連情報を前記第1の不揮発性メモリに書き込み、前記移動関連情報を保持する保持状態にする第1の書き込み手段と、
前記第2の不揮発性メモリの書き込みブロックサイズと同じ大きさの移動関連情報を前記第1の不揮発性メモリから読み出す読み出し手段と、
前記読み出し手段により読み出した移動関連情報を前記第2の不揮発性メモリへ書き込む第2の書き込み手段と、
前記第2の不揮発性メモリの書き込み完了ブロックサイズのブロックへの書き込みが正常に完了したことを確認後、前記移動関連情報のうち書き込みが正常に完了した移動関連情報の保持状態を開放にする保持状態開放手段と
を有することを特徴とする情報記録装置。 An information recording device attached to a moving body,
Receiving means for receiving movement-related information related to movement of the moving body;
A first nonvolatile memory for temporarily recording the movement related information;
A second nonvolatile memory in which a time for completing writing to a block having a write completion block size, which is a minimum unit for completing writing, is longer than that of the first nonvolatile memory;
A first writing means for writing the received movement-related information to the first nonvolatile memory and setting the holding state to hold the movement-related information;
Reading means for reading movement-related information having the same size as the writing block size of the second nonvolatile memory from the first nonvolatile memory;
Second writing means for writing movement-related information read by the reading means to the second nonvolatile memory;
After confirming that writing to the block having the write completion block size of the second nonvolatile memory has been normally completed, the holding of the movement related information that has been normally written among the movement related information is released. An information recording apparatus comprising: a state opening unit.
前記第2の書き込み手段は、圧縮された動画像も第2の不揮発性メモリに書き込むことを特徴とする請求項2の情報記録装置。 A compression unit for compressing the moving image read by the reading unit;
3. The information recording apparatus according to claim 2, wherein the second writing unit writes the compressed moving image in the second nonvolatile memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008296588A JP2010122947A (en) | 2008-11-20 | 2008-11-20 | Information recording device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008296588A JP2010122947A (en) | 2008-11-20 | 2008-11-20 | Information recording device |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2010122947A true JP2010122947A (en) | 2010-06-03 |
Family
ID=42324225
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008296588A Pending JP2010122947A (en) | 2008-11-20 | 2008-11-20 | Information recording device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2010122947A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012203706A (en) * | 2011-03-25 | 2012-10-22 | Kayaba Ind Co Ltd | Drive recorder and drive recorder system |
JP2013130974A (en) * | 2011-12-20 | 2013-07-04 | Kayaba Ind Co Ltd | Data recording device and drive recorder |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000306048A (en) * | 1999-04-26 | 2000-11-02 | Japanese Inst Of Certified Public Accountants | Portable information reader provided with function for preservation onto removable media |
JP2003111071A (en) * | 2001-09-28 | 2003-04-11 | Denso Corp | On-vehicle monitoring camera apparatus |
JP2004139204A (en) * | 2002-10-16 | 2004-05-13 | Toshiba Corp | On-vehicle electronic equipment and drive data recording method |
JP2006237974A (en) * | 2005-02-24 | 2006-09-07 | Sanyo Electric Co Ltd | Recording device for movable bodies |
-
2008
- 2008-11-20 JP JP2008296588A patent/JP2010122947A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000306048A (en) * | 1999-04-26 | 2000-11-02 | Japanese Inst Of Certified Public Accountants | Portable information reader provided with function for preservation onto removable media |
JP2003111071A (en) * | 2001-09-28 | 2003-04-11 | Denso Corp | On-vehicle monitoring camera apparatus |
JP2004139204A (en) * | 2002-10-16 | 2004-05-13 | Toshiba Corp | On-vehicle electronic equipment and drive data recording method |
JP2006237974A (en) * | 2005-02-24 | 2006-09-07 | Sanyo Electric Co Ltd | Recording device for movable bodies |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012203706A (en) * | 2011-03-25 | 2012-10-22 | Kayaba Ind Co Ltd | Drive recorder and drive recorder system |
JP2013130974A (en) * | 2011-12-20 | 2013-07-04 | Kayaba Ind Co Ltd | Data recording device and drive recorder |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10496535B2 (en) | Power-safe data management system | |
TWI447646B (en) | Data transmission device and method for merging multiple instruction | |
JP5531753B2 (en) | Data recording apparatus and digital camera | |
US20090058995A1 (en) | Data recording system, program, semiconductor device, and drive recorder | |
US8996794B2 (en) | Flash memory controller | |
JP2009146500A (en) | Disk storage device and data writing method | |
JP2007059014A (en) | Information recorder, information recording method and computer program | |
US20150149741A1 (en) | Storage System and Control Method Thereof | |
JP5378197B2 (en) | Memory controller, memory card, nonvolatile memory system | |
JP5756658B2 (en) | Vehicle information recording device | |
JP2010086009A (en) | Storage device and memory control method | |
JP2010122947A (en) | Information recording device | |
JP5528182B2 (en) | Drive recorder and drive recorder recording method | |
JP5856849B2 (en) | In-vehicle information recording apparatus and data writing management method | |
JP2003076604A (en) | Log information collecting system and method for flash memory | |
TW201017403A (en) | Access methods for memory devices and memory devices and machine readable medium thereof | |
KR101559241B1 (en) | Method and system for storing representative images of video event data recorder | |
JP2007295283A5 (en) | ||
JP2012203707A (en) | Drive recorder and drive recorder system | |
JP2011192137A (en) | Memory card control system, memory card control device and memory card control method | |
JP4399814B2 (en) | Video recording device | |
JP4658796B2 (en) | Image forming apparatus | |
JP2005173707A (en) | Cache memory control method | |
JP5543697B2 (en) | Recording target information storage device | |
KR100693434B1 (en) | Recording method of real time data in optical disc player, and the device thereused to, and optical disc player equiped with said device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20110318 |
|
RD02 | Notification of acceptance of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7422 Effective date: 20111125 |
|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20111205 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20130214 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20130222 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20130628 |