JP5036781B2 - Data processing apparatus, data processing method, and program - Google Patents
Data processing apparatus, data processing method, and program Download PDFInfo
- Publication number
- JP5036781B2 JP5036781B2 JP2009235146A JP2009235146A JP5036781B2 JP 5036781 B2 JP5036781 B2 JP 5036781B2 JP 2009235146 A JP2009235146 A JP 2009235146A JP 2009235146 A JP2009235146 A JP 2009235146A JP 5036781 B2 JP5036781 B2 JP 5036781B2
- Authority
- JP
- Japan
- Prior art keywords
- time
- data
- recording
- unit
- setting
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Description
この発明は、記録データの上書き処理を行うためのデータ処理装置、データ処理方法及びプログラムに関し、特にドライブレコーダ装置に適用して好適なものである。 The present invention relates to a data processing apparatus, a data processing method, and a program for performing overwriting processing of recorded data, and is particularly suitable for application to a drive recorder apparatus.
ドライブレコーダ装置(以下、ドライブレコーダともいう)は、自動車等の車両に設置され、事故が発生した場合に、その走行中の画像、音声、時刻、加速度などのデータを記録することで事故の発生原因を明確にするための装置であり、近年は一般向けにも普及が進んでいる(例えば、特許文献1参照)。 A drive recorder device (hereinafter also referred to as a drive recorder) is installed in a vehicle such as an automobile. When an accident occurs, an accident occurs by recording data such as images, sound, time, and acceleration during the operation. It is an apparatus for clarifying the cause, and in recent years, it has been widely used for general users (see, for example, Patent Document 1).
上述のドライブレコーダは、映像を記録するカメラ(CCD:Charge Coupled Deviceカメラなど)、音声を取得するマイク、事故や急ブレーキ・急ハンドルなどの衝撃を検知する加速度センサ、時刻を更新するリアルタイムクロック(以下、RTCという。RTC:Real Time Clock)、取得したデータを保存する不揮発メモリ(SDカード等)等から構成される。 The above-mentioned drive recorder includes a camera for recording video (CCD: Charge Coupled Device camera, etc.), a microphone for acquiring sound, an acceleration sensor for detecting shocks such as accidents, sudden brakes and sudden handles, and a real-time clock for updating time ( Hereinafter, it is referred to as RTC (RTC: Real Time Clock), a non-volatile memory (such as an SD card) for storing acquired data, and the like.
ドライブレコーダでは、事故や急ブレーキ・急ハンドルなどの衝撃を検知すると、衝撃前及び衝撃後の所定時間のデータを不揮発メモリに保存する(イベント記録)。ただし、不揮発メモリの容量は有限のため、所定の件数分のデータが不揮発メモリに保存されると、以降は最古のデータを上書きして最新のデータを保存する(例えば、特許文献2参照)。 When the drive recorder detects an accident or an impact such as a sudden brake or a sudden handle, data for a predetermined time before and after the impact is stored in a nonvolatile memory (event recording). However, since the capacity of the nonvolatile memory is limited, when a predetermined number of pieces of data are stored in the nonvolatile memory, the oldest data is overwritten and the latest data is stored thereafter (see, for example, Patent Document 2). .
また、ドライブレコーダでは、時計(RTC等)を備えており、データの生成時刻等がわかるようになっている。電源OFF時は2次電源(リチウム電池など)を駆動して、RTCの処理(時刻の更新等)を常時行っている(例えば、参考文献3参照)。 In addition, the drive recorder is provided with a clock (RTC or the like) so that the generation time of data can be known. When the power is turned off, a secondary power source (lithium battery or the like) is driven to perform RTC processing (time update or the like) at all times (for example, see Reference 3).
しかしながら、例えば2次電源の故障や、電池の枯渇などで、電源OFF時にRTCの処理ができなくなると、設定した時刻情報は消えてしまう。その場合は、例えばデフォルトとして設定されている時刻を設定することになる。しかし、デフォルトの時刻は現時点よりも過去の時刻であるため、設定された時刻は正しくなくなる。さらに、この状態で事故や急ブレーキ・急ハンドルなどの衝撃を検知し、衝撃前及び衝撃後の所定時間のデータが不揮発メモリに上書き保存されると、最古でないデータが最古のデータとして判定され、上書きされてしまうという課題がある。さらに、不正な時刻を持ったデータが生成されると、ユーザがそのデータを見た時に、不快感や違和感を与えてしまうといった問題がある。 However, if the RTC processing cannot be performed when the power is turned off, for example, due to a failure of the secondary power supply or battery exhaustion, the set time information is lost. In that case, for example, a time set as a default is set. However, since the default time is a time before the current time, the set time becomes incorrect. Furthermore, when an accident such as an accident, sudden braking, or sudden handle is detected in this state, and data for a predetermined time before and after the impact is overwritten and saved in the nonvolatile memory, the oldest data is determined as the oldest data. There is a problem of being overwritten. Furthermore, if data having an incorrect time is generated, there is a problem that when the user views the data, the user feels uncomfortable or uncomfortable.
この発明は、上記のような課題を解決するためになされたもので、時刻が正しく設定されない場合でも、最古のデータを上書きして保存する処理を実現することができるデータ処理装置、データ処理方法及びプログラムを得ることを主な目的とする。 The present invention has been made to solve the above-described problem, and even when the time is not set correctly, a data processing apparatus and data processing capable of realizing processing for overwriting and storing the oldest data The main purpose is to obtain methods and programs.
この発明は、記録データの書き込み要求発生時に、時刻情報を含む記録データをデータ記憶部に記録するデータ処理装置及び方法並びにコンピュータを次の各構成として機能させるためのプログラムであって、時刻の設定状態を保持する時刻状態保持部(ステップまたは手段)と、前記時刻状態保持部(ステップまたは手段)に時刻が設定済みか否かを検出する時刻状態検出部(ステップまたは手段)と、前記時刻状態検出部(ステップまたは手段)の検出情報と前記データ記憶部の保存データとに基づいて時刻を設定する時刻設定部(ステップまたは手段)と、前記時刻設定部(ステップまたは手段)により設定した時刻を更新する時刻更新部(ステップまたは手段)と、記録データの書き込み要求発生時に、前記時刻更新部(ステップまたは手段)により更新された時刻情報を含む記録データを前記データ記憶部に記録するデータ記録部(ステップまたは手段)とを備え、前記時刻設定部は、前記時刻状態検出部により時刻未設定が検出された場合に、前記データ記憶部に保存された時刻情報を読み出し、読み出した時刻の中で最新時刻に所定時間を追加した時刻を設定時刻として設定することを特徴とする。 The present invention, when the write request generation of the recording data, the computer records data including the time information to a data processing apparatus and method list recorded in the data storage unit a program for causing to function as each configuration of the next, time A time state holding unit (step or means) for holding a set state, a time state detecting unit (step or means) for detecting whether or not the time has been set in the time state holding unit (step or means), and the time A time setting unit (step or means) for setting time based on detection information of the state detection unit (step or means) and data stored in the data storage unit, and a time set by the time setting unit (step or means) A time updating unit (step or means) for updating the recording data and the time updating unit (step or means) when a recording data write request is generated. E Bei a data recording unit for recording the recording data including time information updated by means) in the data storage unit (step or means), the time setting unit, the time not set by the time state detector When it is detected, the time information stored in the data storage unit is read, and the time obtained by adding a predetermined time to the latest time among the read times is set as the set time .
また、データ記録部は、記録データの書き込み要求発生時に、前記時刻状態検出部により時刻未設定が検出された場合に、前記データ記憶部に記録される記録データに含まれる時刻情報が暫定時刻であることがわかる文字を書込むことを特徴とする。 In addition, the data recording unit, when the time status detection unit detects that the time is not set when the recording data write request occurs, the time information included in the recording data recorded in the data storage unit is a provisional time. It is characterized by writing characters that can be found.
この発明によれば、データ処理する例えばドライブレコーダに正しい時刻が設定できない場合でも、データ記憶部に格納されたデータの時刻情報を読み取って、読み取った時刻の中で最新時刻に所定時間を追加した時刻をドライブレコーダに設定させるため、上書き記録時に最古でないデータを上書きしてしまうことを防止することができる。 According to the present invention, even when the correct time cannot be set, for example, in a drive recorder that performs data processing, the time information of the data stored in the data storage unit is read, and a predetermined time is added to the latest time among the read times Since the time is set in the drive recorder, it is possible to prevent overwriting of the oldest data during overwriting.
また、記録データに含まれる時刻情報が暫定時刻であることを示す文字を書込むことにより、日が経ってデータを確認した場合でも、容易に暫定の時刻で記録されたことを認識することが可能になる。 In addition, by writing a character indicating that the time information included in the recorded data is a provisional time, it is possible to easily recognize that the data was recorded at the provisional time even when the data was confirmed after the date. It becomes possible.
実施の形態1.
図1は、この発明の実施の形態1に係るドライブレコーダ本体100の機能ブロックの一例を示す構成図である。図1に示すドライブレコーダは、記録データの書き込み要求発生時に、時刻情報を含む記録データをデータ記憶部としての外部メモリ107に記録するデータ記録部108を備えたデータ処理装置であって、ドライブレコーダ電源のON/OFFを検出する起動検出部101と、時刻が設定済みか否かを検出する時刻状態検出部102と、時刻の設定状態を保持する時刻状態保持部103と、時刻状態保持部103に時刻状態検出部102の検出情報と外部メモリ107内の記録データとに基づいて新たに時刻を設定する時刻設定部104と、RTCに同期して時刻設定部104で設定した時刻を更新する時刻更新部105と、ドライブレコーダ本体100と外部メモリ107を接続するインタフェース装置である外部メモリI/F部106とを備え、データ記録部108により、記録データの書き込み要求発生時に、時刻更新部105により更新された時刻情報を含む記録データを外部メモリに107に記録するようになされている。ここで、外部メモリ107は、設定ファイルおよび記録データを記憶する不揮発メモリであり、一例として、SDカード等がある。また、外部メモリI/F部106は、一例としてSDカードコネクタ等がある。なお、データとしては映像や音声、時刻なども考えられるが、ここでは時刻以外は図示しない。
Embodiment 1 FIG.
1 is a block diagram showing an example of functional blocks of a drive recorder main body 100 according to Embodiment 1 of the present invention. The drive recorder shown in FIG. 1 is a data processing apparatus including a
なお、本実施の形態1及び実施の形態2以降の説明において、「〜部」として説明するものは、「〜手段」、「〜回路」、「〜機器」であってもよく、また、「〜ステップ」、「〜手順」、「〜処理」であってもよい。すなわち、「〜部」として説明するものは、ファームウェアで実現されていても構わない。或いは、ソフトウェアのみ、或いは、素子・デバイス・基板・配線などのハードウェアのみ、或いは、ソフトウェアとハードウェアとの組み合わせ、さらには、ファームウェアとの組み合わせで実施されても構わない。 In the following description of the first embodiment and the second embodiment, what is described as “to part” may be “to means”, “to circuit”, and “to device”. -Step "," -procedure "," -process "may be used. That is, what is described as “˜unit” may be realized by firmware. Alternatively, it may be implemented only by software, or only by hardware such as elements, devices, substrates, and wirings, by a combination of software and hardware, or by a combination of firmware.
図2は、外部メモリ107内部のイベント記録用フォルダ構成の一例を示す図である。イベント記録用フォルダはイベント発生ごとに1フォルダが作成され、フォルダ内に取得したデータが記録される。外部メモリ107のサイズは有限のため、データ保持上限数が予め設定されている(図2では保持上限数は20)。フォルダ名には、データ記録時の時刻情報が含まれている。例えば、2009年8月28日10時20分30秒に外部メモリ部107へのデータ記録処理が始まった場合、フォルダ名には「090828102030」の時刻情報が含まれることとなる。
FIG. 2 is a diagram showing an example of the configuration of an event recording folder in the
前述のように、ドライブレコーダ装置(以下、ドライブレコーダともいう)は自動車等の車両に設置され、事故が発生した場合に、その走行中の画像、音声などのデータを記録することで事故の発生原因を明確にするための装置であり、近年は一般向けにも普及が進んでいる。ドライブレコーダは、映像を記録するカメラ(CCDカメラなど)、音声を取得するマイク、事故や急ブレーキ・急ハンドルなどの衝撃を検知する加速度センサ、衝撃前及び衝撃後の所定時間のデータを保存するSDカード等から構成される。 As described above, a drive recorder device (hereinafter also referred to as a drive recorder) is installed in a vehicle such as an automobile, and when an accident occurs, an accident occurs by recording data such as images and sound during the operation. This is a device for clarifying the cause, and in recent years, it is also spreading to the general public. The drive recorder stores a camera (such as a CCD camera) that records video, a microphone that captures audio, an acceleration sensor that detects accidents and impacts such as sudden braking and sudden steering, and data for a predetermined time before and after the impact. It consists of an SD card.
図1に示す構成を用いて、データの保存処理を説明する。データ記録部108は、事故や急ブレーキ・急ハンドルなどの衝撃を検知すると、検知時の時刻を時刻更新部105より取得し、外部メモリ107としてのSDカードに取得した時刻情報を名前に含んだフォルダを作成する。その後、映像や音声等のデータを作成したフォルダ内に保存する。さらに、図3に示すように、SDカードに、イベント記録フォルダがデータ保持上限数まで保存されると、データ記録部108は、以降、SDカードに保存された最古のデータに新たなデータを上書きして記録する。
Data storage processing will be described using the configuration shown in FIG. When the
ここで、ドライブレコーダの時刻が正しく設定されていなかった場合を考えると、図4のように、最古のデータでなく、常に最新のデータを上書きして記録してしまうことになり、仕様通りの記録処理とならない。このため、時刻が正しく設定できなかった場合でも、最古のデータを上書きして記録できるような処理が必要となる。 Here, considering the case where the time of the drive recorder is not set correctly, the latest data is always overwritten and recorded, as shown in FIG. 4, as shown in FIG. It will not be a recording process. For this reason, even when the time cannot be set correctly, it is necessary to perform processing so that the oldest data can be overwritten and recorded.
図5は、この発明の実施の形態1におけるドライブレコーダの時刻設定処理の一例を示すフローチャートである。実施の形態1では、時刻をSDカード内に記録されているデータの時刻よりも後の時刻に設定し直すことにより、最新のデータの上書きを防いでいる。 FIG. 5 is a flowchart showing an example of the time setting process of the drive recorder in the first embodiment of the present invention. In the first embodiment, overwriting of the latest data is prevented by resetting the time to a time later than the time of the data recorded in the SD card.
起動検出部101がドライブレコーダのACC電源のONを検出する(S100)と、時刻状態検出部102が、時刻状態保持部103に格納されている時刻設定状態(時刻設定済み/時刻未設定)をチェックする(S101)。時刻設定済みの場合(S102 YES)、すでに時刻設定がなされているため、時刻設定処理を終了する。時刻未設定の場合(S102 NO)、時刻設定部104は、時刻状態検出部102から時刻未設定の信号を受け取り、外部メモリI/F部106を介して、外部メモリ107に記録フォルダが存在するかチェックする(S103)。外部メモリ107に記録フォルダが存在する場合(S104 YES)、時刻設定部104が、外部メモリI/F部106を介して、外部メモリ107内の記録フォルダ名に記載された時刻情報を読み取る(S105)。その後、読み取った時刻情報から、最も現在の時刻に近い時刻情報を選択し、選択した時刻に+α(例えば1秒)の時刻を追加した時刻をドライブレコーダ本体100に設定する(S106)。外部メモリ107に記録フォルダが存在しない場合(S104 NO)、時刻設定部104は、予め埋め込まれている時刻をドライブレコーダ本体100に設定する(S107)。
When the
以上のように、本実施の形態1によれば、ドライブレコーダ本体100に設定された時刻が正しくない場合でも、SDカード内の時刻情報から時刻を設定し直すことにより、上書き記録時は、常に最古のデータを上書きして記録することが可能になる。また、SDカード内の時刻情報から時刻を設定し直すことにより、時刻を設定し直す前と比較して、ユーザが外部メモリの中を見た時の違和感を軽減することができる。 As described above, according to the first embodiment, even when the time set in the drive recorder main body 100 is not correct, by resetting the time from the time information in the SD card, the overwriting is always performed. It becomes possible to overwrite and record the oldest data. In addition, by resetting the time from the time information in the SD card, it is possible to reduce a sense of incongruity when the user looks in the external memory as compared to before the time is reset.
なお、本実施の形態1では、SDカード内のフォルダ名に時刻情報を含ませていたが、他の場所に時刻情報を含ませることを妨げるものではない。例えば、ファイル名に時刻情報を含ませる、時刻情報をファイルのタイムスタンプとする、などが考えられる。 In the first embodiment, the time information is included in the folder name in the SD card, but this does not prevent the time information from being included in other places. For example, time information may be included in the file name, or time information may be used as a file time stamp.
また、本実施の形態1では、時刻状態検出部(102)により時刻未設定が検出された場合に、出力手段としてLEDやブザーなどのHMI(Human Machine Interface)を使用してユーザへの通知を行っていなかったが、これらの処理を妨げるものではない。ユーザへの通知を行うことで、設定される時刻情報が暫定の時刻であることをユーザへ迅速に通知することができる。 Further, in the first embodiment, when the time state detection unit (102) detects that the time is not set, an HMI (Human Machine Interface) such as an LED or a buzzer is used as an output unit to notify the user. Although not done, it does not interfere with these processes. By notifying the user, it is possible to quickly notify the user that the set time information is a provisional time.
また、本実施の形態1では、イベント発生時にSDカードにデータを記録する場合について述べたが、イベント発生に関係なく、常時SDカードにデータを記録する場合についても実行可能である。例えば1分間のデータを1ファイルとして常時SDカードに記録し、データがいっぱいになると、最古のファイルから上書きして記録する場合でも本実施の形態を実行可能である。 In the first embodiment, the case where data is recorded on the SD card when an event occurs has been described. However, the present invention can also be executed when data is always recorded on the SD card regardless of the occurrence of an event. For example, the present embodiment can be executed even when data for one minute is always recorded as one file on the SD card, and when the data is full, the oldest file is overwritten and recorded.
実施の形態2.
実施の形態1では、時刻をSDカード内の時刻情報から設定することで、常に最古のデータを上書き記録できるようにした。しかし、設定した時刻はあくまで「暫定」の時間である。そのため、記録した直後にデータを確認した場合は、暫定の時刻であることに気付く可能性が高いが、日が経ってからデータを確認した場合は、暫定の時刻であることに気付かない可能性が高くなる。本実施の形態2では、ユーザに暫定の時刻で記録されたデータであることを容易に認識できるようにした処理について説明する。
Embodiment 2. FIG.
In the first embodiment, the oldest data can always be overwritten and recorded by setting the time from the time information in the SD card. However, the set time is only a “provisional” time. Therefore, if you check the data immediately after recording, you are likely to notice that it is a tentative time, but if you check the data after the day has passed, you may not notice that it is a tentative time Becomes higher. In the second embodiment, a process will be described in which the user can easily recognize that the data is recorded at a provisional time.
本実施の形態2の構成は図1と同様であるため、説明を省略する。 The configuration of the second embodiment is the same as that shown in FIG.
図6と図7は、この発明の実施の形態2におけるドライブレコーダの暫定時刻の設定及び記録処理の一例を示すフローチャートである。 6 and 7 are flow charts showing an example of provisional time setting and recording processing of the drive recorder according to Embodiment 2 of the present invention.
図6において、起動検出部101がドライブレコーダの電源(ACC)ONを検出する(S200)と、時刻状態検出部102が、時刻状態保持部103に格納されている時刻設定状態(時刻設定済み/時刻未設定)をチェックする(S201)。時刻設定済みの場合(S202 YES)、すでに時刻設定がなされているため、時刻設定処理を終了する。時刻未設定の場合(S202 NO)、時刻設定部104は、時刻状態検出部102から時刻未設定の信号を受け取り、外部メモリI/F部106を介して、外部メモリ107に記録フォルダが存在するかチェックする。
In FIG. 6, when the
外部メモリ107に記録フォルダが存在する場合(S204 YES)、時刻設定部104が、外部メモリI/F部106を介して、外部メモリ107内の記録フォルダ名に記載された時刻情報を読み取る(S205)。その後、読み取った時刻情報から、最も現在の時刻に近い時刻情報を選択し、選択した時刻に+α(例えば1秒)の時刻を追加した時刻をドライブレコーダ本体100に設定する(S206)。外部メモリ107に記録フォルダが存在しない場合(S204 NO)、時刻設定部104は、予め埋め込まれている時刻をドライブレコーダ本体100に設定する(S207)。S206またはS207の実施後、時刻設定部104は、暫定時刻を設定したことの情報を保持しておく(S208)。
When the recording folder exists in the external memory 107 (S204 YES), the
その後、図7に移行し、衝撃等で外部メモリ107へのデータ記録が開始されると(S209 YES)、データ記録部108は、暫定時刻が設定されているかを時刻設定部104がS208で保持した情報から判定し、外部メモリ107へ記録データを格納するためのフォルダを生成する。判定の結果、暫定時刻である場合(S210 YES)は、フォルダ名は、暫定時刻であることを示す「_Z」という文字を末尾に加える(S211)。例えば、データ記録開始時間が「2009年8月25日10時10分30秒」の場合、フォルダ名は「090825101030_Z」となる。暫定時刻でない場合(S210 NO)、フォルダ名には、暫定の時刻であることを示す「_Z」という文字は加えない(S212)。その後、データ記録部108が、作成したフォルダ内にデータを記録する(S213)。データ記録終了後、ACC OFFでない場合(S214 NO)はS209へ戻り、次のデータの記録開始を待つ。ACC OFF(S214 YES)で処理終了する。
Thereafter, the process proceeds to FIG. 7, and when data recording to the
以上のように、本実施の形態2によれば、ドライブレコーダ本体100に設定された時刻が正しくない場合でも、SDカード内の時刻情報から時刻を設定し直すことにより、上書き記録時は、常に最古のデータを上書きして記録することが可能になる。 As described above, according to the second embodiment, even when the time set in the drive recorder main body 100 is not correct, by resetting the time from the time information in the SD card, the overwriting is always performed. It becomes possible to overwrite and record the oldest data.
また、SDカード内の時刻情報から時刻を設定し直すことにより、時刻を設定し直す前と比較して、ユーザが外部メモリの中を見た時の違和感を軽減することができる。さらに、暫定時刻であることを示す文字(本実施の形態2では「_Z」)をフォルダ名に加えたことにより、日が経ってデータを確認した場合でも、容易に暫定の時刻で記録されたことを認識することが可能になる。 In addition, by resetting the time from the time information in the SD card, it is possible to reduce a sense of incongruity when the user looks in the external memory as compared to before the time is reset. Further, by adding a character indicating the provisional time ("_Z" in the second embodiment) to the folder name, even when the data is confirmed after the date, it is easily recorded at the provisional time. It becomes possible to recognize that.
なお、本実施の形態2では、SDカード内のフォルダ名に暫定時刻であることを示す文字を含ませていたが、他の場所に暫定時刻であることを示す文字を含ませることを妨げるものではない。例えば、ファイル名に暫定時刻であることを示す文字を含ませる等が考えられる。 In the second embodiment, the folder name in the SD card includes characters indicating the provisional time, but prevents other places from including characters indicating the provisional time. is not. For example, it may be possible to include a character indicating the provisional time in the file name.
また、本実施の形態2では、時刻状態検出部(102)により時刻未設定が検出された場合に、出力手段としてLEDやブザーなどのHMI(Human Machine Interface)を使用してユーザへの通知を行っていなかったが、これらの処理を妨げるものではない。ユーザへの通知を行うことで、設定される時刻情報が暫定の時刻であることを迅速に通知することができる。 In the second embodiment, when the time state detection unit (102) detects that the time has not been set, an HMI (Human Machine Interface) such as an LED or a buzzer is used as an output unit to notify the user. Although not done, it does not interfere with these processes. By notifying the user, it is possible to quickly notify that the set time information is a provisional time.
また、本実施の形態2では、イベント発生時にSDカードにデータを記録する場合について述べたが、イベント発生に関係なく、常時SDカードにデータを記録する場合についても実行可能である。例えば1分間のデータを1ファイルとして、全てのファイルに暫定の時刻であることを示す文字を含ませて記録する等が考えられる。 In the second embodiment, the case where data is recorded on the SD card when an event occurs has been described. However, the present invention can also be executed when data is always recorded on the SD card regardless of the occurrence of an event. For example, it is conceivable to record one minute of data as one file, including characters indicating the provisional time in all files.
実施の形態3.
実施の形態1、2では、時刻をSDカード内の時刻情報から設定することで、常に最古のデータを上書き記録できるようにした。本実施の形態3では、時刻設定以外の方法で常に最古のデータを上書き記録できるようにした処理について説明する。
Embodiment 3 FIG.
In the first and second embodiments, the oldest data can always be overwritten and recorded by setting the time from the time information in the SD card. In the third embodiment, a process is described in which the oldest data can always be overwritten by a method other than the time setting.
図8は、この発明の実施の形態3に係るドライブレコーダ本体200の機能ブロックの一例を示す構成図である。図8において、図1に示す構成と同一部分は同一符号を付してその説明は省略する。図8に示すドライブレコーダ本体200は、記録データの書き込み要求発生時に、シーケンス番号を含む記録データをデータ記憶部としての外部メモリ107に記録するデータ処理装置を示すものである。
FIG. 8 is a block diagram showing an example of functional blocks of the drive recorder main body 200 according to Embodiment 3 of the present invention. In FIG. 8, the same parts as those shown in FIG. A drive recorder main body 200 shown in FIG. 8 is a data processing device that records recording data including a sequence number in an
図8に示すドライブレコーダは、シーケンス番号としてデータ記録で生成したフォルダ数を保持する連番保持部201と、連番保持部201が保持するデータ記録で生成したフォルダ数を1インクリメント(更新)する連番更新部202とを備え、データ記録部108により、記録データの書き込み要求発生時に、連番更新部202により更新したシーケンス番号を含むデータをデータ記憶部107に記録するようになされている。
The drive recorder shown in FIG. 8 increments (updates) the sequential
図9は、この発明の実施の形態3におけるドライブレコーダの処理の一例を示すフローチャートである。なお、製品出荷時、連番保持部201には初期値「0000」がACC OFF後も保持可能なようにフラッシュROM(Read Only Memory)に記録されているものとする。 FIG. 9 is a flowchart showing an example of processing of the drive recorder according to Embodiment 3 of the present invention. It is assumed that the initial value “0000” is recorded in a flash ROM (Read Only Memory) so that the initial value “0000” can be held after the ACC is turned off at the time of product shipment.
起動検出部101がドライブレコーダの電源(ACC)ONを検出する(S300)と、連番更新部202が、連番保持部201の保持する情報(データ記録で生成したフォルダ数=シーケンス番号)を取得する(S301)。その後、衝撃等で外部メモリ107へのデータ記録が開始されるまでは何もしない(S302 NO)。衝撃等で外部メモリ107へのデータ記録が開始されると(S302 YES)、連番更新部202が連番保持部201から取得した情報(シーケンス番号)を1インクリメントする(S303)。その後、連番更新部202は、インクリメントした数をデータ記録部108と連番保持部201に送る(S304)。その後、連番保持部201は、連番更新部202から送られたデータを格納する(S305)。データ記録部108は、外部メモリ107内へフォルダを生成する際、連番更新部202から送られた数をフォルダ名に含ませて生成し(S306)、データをフォルダ内に格納する(S307)。データ記録終了後、ACC OFFでない場合(S308 NO)はS202へ戻り、次のデータの記録開始を待つ。ACC OFF(S308 YES)で処理終了する。
When the
以上のように、本実施の形態3によれば、ドライブレコーダ本体200に設定された時刻が正しくない場合でも、データ記録時のフォルダ生成回数(シーケンス番号)をドライブレコーダ本体に保持し、フォルダ生成時にフォルダ生成回数をフォルダ名に含めることによって、上書き記録時は、常に最古のデータを上書きして記録することが可能になる。
また、記録されたデータをPCのアプリ(ビューワアプリ)で再生する際、シーケンス番号で再生順が迅速に判定できるなど、処理が用意となり、PCの負荷も軽減する。
As described above, according to the third embodiment, even when the time set in the drive recorder main body 200 is incorrect, the folder generation count (sequence number) at the time of data recording is held in the drive recorder main body, By sometimes including the folder generation count in the folder name, it is possible to always overwrite and record the oldest data during overwriting.
Also, when the recorded data is played back by a PC application (viewer application), processing is prepared such that the playback order can be quickly determined by the sequence number, and the load on the PC is reduced.
なお、本実施の形態3では、SDカード内のフォルダ名にデータ記録時のフォルダ生成回数を含ませていたが、他の場所に時刻情報を含ませることを妨げるものではない。例えばデータ記録時のフォルダ生成回数のファイルを別途生成して、そのファイルにフォルダ名とデータ記録時のフォルダ生成回数を記載することもできる。 In the third embodiment, the folder name in the SD card includes the number of times the folder is generated at the time of data recording. However, this does not prevent the time information from being included elsewhere. For example, it is also possible to separately generate a file with the number of times of folder generation at the time of data recording and describe the folder name and the number of times of folder generation at the time of data recording in the file.
なお、本実施の形態3では、連番保持部201の値はACC OFF後も保持が可能なようにフラッシュROMに記録されていたが、外部メモリ107から連番情報を読み出して、読み出した値よりも大きな値を連番保持部201に保存することを妨げるものではない。この場合はフラッシュROMでなく、RAMに格納しても構わない。
In the third embodiment, the value of the serial
また、本実施の形態3では、イベント発生時にSDカードにデータを記録する場合について述べたが、イベント発生に関係なく、常時SDカードにデータを記録する場合についても実行可能である。例えば1分間のデータを1ファイルとして常時SDカードに記録し、ファイル名にファイル生成回数を含ませることで、常に最古のデータから上書きして記録できる。 In the third embodiment, the case where data is recorded on the SD card when an event occurs has been described. However, the present invention can also be executed when data is always recorded on the SD card regardless of the occurrence of an event. For example, data for one minute is always recorded as one file on an SD card, and the file name is included in the file name, so that the oldest data can always be overwritten and recorded.
なお、上記各実施の形態1ないし3は、ドライブレコーダを例にして説明したものであるが、ドライブレコーダの各構成を、データ処理装置及び方法、並びに、コンピュータを機能させるためのプログラムの構成として用いることができ、発明の適用範囲を広げることができる。 Each of the first to third embodiments has been described by taking a drive recorder as an example. However, each configuration of the drive recorder is defined as a data processing apparatus and method, and a program configuration for causing a computer to function. It can be used and the scope of application of the invention can be expanded.
100 ドライブレコーダ本体、101 起動検出部、102 時刻状態検出部、103 時刻状態保持部、104 時刻設定部、105 時刻更新部、106 外部メモリI/F部、107 外部メモリ、108 データ記録部、200 ドライブレコーダ本体、201 連番保持部、202 連番更新部。 DESCRIPTION OF SYMBOLS 100 Drive recorder main body, 101 Start detection part, 102 Time state detection part, 103 Time state holding part, 104 Time setting part, 105 Time update part, 106 External memory I / F part, 107 External memory, 108 Data recording part, 200 Drive recorder body, 201 sequence number holding unit, 202 sequence number updating unit.
Claims (11)
時刻の設定状態を保持する時刻状態保持部と、
前記時刻状態保持部に時刻が設定済みか否かを検出する時刻状態検出部と、
前記時刻状態検出部の検出情報と前記データ記憶部の保存データとに基づいて時刻を設定する時刻設定部と、
前記時刻設定部により設定した時刻を更新する時刻更新部と、
記録データの書き込み要求発生時に、前記時刻更新部により更新された時刻情報を含む記録データを前記データ記憶部に記録するデータ記録部と
を備え、
前記時刻設定部は、前記時刻状態検出部により時刻未設定が検出された場合に、前記データ記憶部に保存された時刻情報を読み出し、読み出した時刻の中で最新時刻に所定時間を追加した時刻を設定時刻として設定する
ことを特徴とするデータ処理装置。 A data processing device that records recording data including time information in a data storage unit when a recording data write request occurs,
A time state holding unit for holding a time setting state;
A time state detection unit for detecting whether or not a time has been set in the time state holding unit;
A time setting unit for setting a time based on detection information of the time state detection unit and stored data of the data storage unit;
A time updating unit for updating the time set by the time setting unit;
During the write request generation of recording data, Bei example a data recording unit for recording the recording data including time information updated by the time updating unit in the data storage unit,
The time setting unit reads time information stored in the data storage unit when a time non-setting is detected by the time state detection unit, and adds a predetermined time to the latest time among the read times Is set as a set time .
前記データ記憶部は、記録データを格納するフォルダ名またはファイル名の中に前記時刻情報を保存してなる
ことを特徴とするデータ処理装置。 The data processing apparatus according to claim 1 ,
The data storage device is characterized in that the time information is stored in a folder name or a file name for storing recording data.
前記データ記憶部は、前記時刻情報を、記録データを格納するファイルのタイムスタンプとして保存してなる
ことを特徴とするデータ処理装置。 The data processing apparatus according to claim 1 ,
The data storage device stores the time information as a time stamp of a file storing recording data.
前記データ記憶部は、記録データを格納するフォルダ名またはファイル名の中に前記時刻情報を保存してなり、かつ前記時刻情報をファイルのタイムスタンプとして保存してなる
ことを特徴とするデータ処理装置。 The data processing apparatus according to claim 1 ,
The data storage unit stores the time information in a folder name or file name for storing recorded data, and stores the time information as a time stamp of the file. .
前記時刻状態検出部により時刻未設定が検出された場合に、その結果を出力する出力部をさらに備える
ことを特徴とするデータ処理装置。 In the data processing device according to any one of claims 1 to 4 ,
A data processing apparatus, further comprising: an output unit that outputs a result when a time non-set is detected by the time state detection unit.
前記データ記録部は、記録データの書き込み要求発生時に、前記時刻状態検出部により時刻未設定が検出された場合に、前記データ記憶部に記録される記録データに含まれる時刻情報が暫定時刻であることがわかる文字を書込む
ことを特徴とするデータ処理装置。 In the data processing device according to any one of claims 1 to 5 ,
In the data recording unit, the time information included in the recording data recorded in the data storage unit is a provisional time when a time non-setting is detected by the time state detection unit when a recording data write request is generated A data processing device characterized by writing characters that can be understood.
前記データ処理装置は、車両にとりつけられるドライブレコーダ装置の少なくとも一部である
ことを特徴とするデータ処理装置。 The data processing device according to any one of claims 1 to 6 , wherein the data processing device is at least a part of a drive recorder device attached to a vehicle.
時刻の設定状態を保持する時刻状態保持ステップと、
前記時刻状態保持ステップにより時刻が設定済みか否かを検出する時刻状態検出ステップと、
前記時刻状態検出ステップによる検出情報と前記データ記憶部の保存データとに基づいて時刻を設定する時刻設定ステップと、
前記時刻設定ステップにより設定した時刻を更新する時刻更新ステップと、
記録データの書き込み要求発生時に、前記時刻更新ステップにより更新された時刻情報を含む記録データを前記データ記憶部に記録するデータ記録ステップと
を備え、
前記時刻設定ステップは、前記時刻状態検出ステップにより時刻未設定が検出された場合に、前記データ記憶部に保存された時刻情報を読み出し、読み出した時刻の中で最新時刻に所定時間を追加した時刻を設定時刻として設定する
ことを特徴とするデータ処理方法。 A data processing method for recording recording data including time information in a data storage unit when a recording data write request occurs,
A time state holding step for holding a time setting state;
A time state detecting step for detecting whether or not the time has been set by the time state holding step;
A time setting step for setting a time based on detection information obtained by the time state detection step and data stored in the data storage unit;
A time update step for updating the time set in the time setting step;
During the write request generation of recording data, Bei example a data recording step of recording the recording data including time information updated by the time updating step in the data storage unit,
The time setting step reads time information stored in the data storage unit when a time non-setting is detected by the time state detection step, and adds a predetermined time to the latest time among the read times Is set as the set time .
前記時刻状態検出ステップにより時刻未設定が検出された場合に、その結果を出力する出力ステップをさらに備える
ことを特徴とするデータ処理方法。 The data processing method according to claim 8 , wherein
A data processing method, further comprising: an output step of outputting a result when a time non-set is detected by the time state detection step.
前記データ記録ステップは、記録データの書き込み要求発生時に、前記時刻状態検出ステップにより時刻未設定が検出された場合に、前記データ記憶部に記録される記録データに含まれる時刻情報が暫定時刻であることがわかる文字を書込む
ことを特徴とするデータ処理方法。 The data processing method according to claim 8 or 9 ,
In the data recording step, the time information included in the recording data recorded in the data storage unit is a provisional time when a time non-setting is detected by the time state detection step when a recording data write request is generated A data processing method characterized by writing characters that can be understood.
時刻の設定状態を保持する時刻状態保持手段、
前記時刻状態保持手段に時刻が設定済みか否かを検出する時刻状態検出手段、
前記時刻状態検出手段の検出情報と前記データ記憶部の保存データとに基づいて時刻を設定する時刻設定手段、
前記時刻設定手段により設定した時刻を更新する時刻更新手段、
記録データの書き込み要求発生時に、前記時刻更新手段により更新された時刻情報を含む記録データを前記データ記憶部に記録するデータ記録手段
として機能させるためのプログラムであって、
前記時刻設定手段は、前記時刻状態検出手段により時刻未設定が検出された場合に、前記データ記憶部に保存された時刻情報を読み出し、読み出した時刻の中で最新時刻に所定時間を追加した時刻を設定時刻として設定する
ことを特徴とするプログラム。 A computer that records recording data including time information in a data storage unit when a recording data write request occurs;
Time state holding means for holding the time setting state;
Time state detection means for detecting whether or not time has been set in the time state holding means;
Time setting means for setting time based on detection information of the time state detection means and data stored in the data storage unit;
Time update means for updating the time set by the time setting means;
A program for functioning as data recording means for recording recording data including time information updated by the time updating means in the data storage section when a recording data write request occurs ,
The time setting unit reads time information stored in the data storage unit when a time non-setting is detected by the time state detection unit, and adds a predetermined time to the latest time among the read times Set as the set time
A program characterized by that .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009235146A JP5036781B2 (en) | 2009-10-09 | 2009-10-09 | Data processing apparatus, data processing method, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009235146A JP5036781B2 (en) | 2009-10-09 | 2009-10-09 | Data processing apparatus, data processing method, and program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2011081703A JP2011081703A (en) | 2011-04-21 |
JP5036781B2 true JP5036781B2 (en) | 2012-09-26 |
Family
ID=44075677
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2009235146A Expired - Fee Related JP5036781B2 (en) | 2009-10-09 | 2009-10-09 | Data processing apparatus, data processing method, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5036781B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105575118A (en) * | 2015-12-25 | 2016-05-11 | 银江股份有限公司 | Screening method of personnel without driving qualification |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105981326B (en) | 2014-02-26 | 2019-05-14 | 三菱电机株式会社 | Certificate management device and certificate management method |
JP6143038B1 (en) * | 2016-09-30 | 2017-06-07 | 株式会社ネクスティエレクトロニクス | OS program and method for accessing file without depending on application |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH06237463A (en) * | 1993-02-12 | 1994-08-23 | Matsushita Electron Corp | Picture storage system |
JPH0916449A (en) * | 1995-06-28 | 1997-01-17 | Olympus Optical Co Ltd | Data file management device |
JPH11125534A (en) * | 1997-10-22 | 1999-05-11 | Yazaki Corp | Drive state recording device and drive state analyzing device |
JP2001216327A (en) * | 2000-02-04 | 2001-08-10 | Canon Inc | Device and method for image management and storage medium |
JP4093993B2 (en) * | 2003-07-08 | 2008-06-04 | 京セラミタ株式会社 | Image reading apparatus, image forming apparatus including the same, and scanner system |
JP4437915B2 (en) * | 2003-12-04 | 2010-03-24 | 株式会社日本交通事故鑑識研究所 | Operation status recording device |
JP4576941B2 (en) * | 2004-09-08 | 2010-11-10 | ソニー株式会社 | Information processing apparatus and method, program, and image processing apparatus |
JP2008020970A (en) * | 2006-07-11 | 2008-01-31 | Meidensha Corp | Time data management system and method for cpu module |
JP5076815B2 (en) * | 2007-11-06 | 2012-11-21 | 株式会社Jvcケンウッド | Recording apparatus, program, and recording method |
-
2009
- 2009-10-09 JP JP2009235146A patent/JP5036781B2/en not_active Expired - Fee Related
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105575118A (en) * | 2015-12-25 | 2016-05-11 | 银江股份有限公司 | Screening method of personnel without driving qualification |
CN105575118B (en) * | 2015-12-25 | 2017-12-19 | 银江股份有限公司 | One kind is lost and drives personnel's screening technique |
Also Published As
Publication number | Publication date |
---|---|
JP2011081703A (en) | 2011-04-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6035032B2 (en) | Drive recorder, data recording method, and program | |
US20100134623A1 (en) | Method of processing continuously recorded image, computer-readable medium for processing continuously recorded image, drive recorder and reproduction device | |
JP5036781B2 (en) | Data processing apparatus, data processing method, and program | |
US20110077819A1 (en) | Data management device, data reading method and computer-readable medium | |
EP2178052A2 (en) | Traffic incident recording system installed in road vehicles | |
JP5424861B2 (en) | Drive recorder, recording method and program | |
JP2010182209A (en) | Drive recorder | |
JP2008140376A (en) | Information recording device for vehicle, program, and recording medium | |
JP7370446B2 (en) | In-vehicle video recording device and its control method | |
JP2010146477A (en) | Drive recorder | |
JP2006253847A (en) | Status recording apparatus | |
JP2010074338A (en) | Image storage device | |
KR102324278B1 (en) | Car black box and the control method thereof | |
JP4218147B2 (en) | Electronic camera | |
JP2020071774A (en) | Data recording device | |
JP2019164403A (en) | Recording control device, recording control method, and recording control program | |
JP7002765B2 (en) | Electronic devices and programs | |
JP2009200698A (en) | Portable terminal device | |
JP2019159651A (en) | Data storage device and program | |
JP6152012B2 (en) | Operation recording device | |
JP6643640B2 (en) | Electronic devices and programs | |
TW202213985A (en) | Video recording device and video recording method | |
JP4797575B2 (en) | File recovery method and file recovery program | |
JP7438528B2 (en) | System and program | |
JP7279512B2 (en) | Recording device, recording method, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20120307 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20120313 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20120511 |
|
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: 20120605 |
|
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: 20120703 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150713 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
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 |