JP2014225107A - Data recording device and time correction method - Google Patents

Data recording device and time correction method Download PDF

Info

Publication number
JP2014225107A
JP2014225107A JP2013103635A JP2013103635A JP2014225107A JP 2014225107 A JP2014225107 A JP 2014225107A JP 2013103635 A JP2013103635 A JP 2013103635A JP 2013103635 A JP2013103635 A JP 2013103635A JP 2014225107 A JP2014225107 A JP 2014225107A
Authority
JP
Japan
Prior art keywords
time
data
correction
change
recording
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
Application number
JP2013103635A
Other languages
Japanese (ja)
Inventor
裕志 大岡
Hiroshi Ooka
裕志 大岡
東 雅之
Masayuki Azuma
雅之 東
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Industry and Control Solutions Co Ltd
Original Assignee
Hitachi Industry and Control Solutions Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Hitachi Industry and Control Solutions Co Ltd filed Critical Hitachi Industry and Control Solutions Co Ltd
Priority to JP2013103635A priority Critical patent/JP2014225107A/en
Priority to CN201410201256.9A priority patent/CN104166424A/en
Publication of JP2014225107A publication Critical patent/JP2014225107A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To perform a time correction in a manner capable of reproducing time-series data.SOLUTION: A data recording device 1 according to the present invention comprises: a storage part 20 in which time at a time when changing time is stored; a determination part 13 that acquires the number of pieces of record data during a time from when changing current time to when changing previous time, divides the number of pieces of record data by time taken from when changing the current time to when changing the previous time, and calculates a data rate; a determination part 13 that determines whether or not the data rate falls with a prescribed range; and a record time modification part 16 that performs a linear interpolation of a modified time portion when changing the current time during a period from when changing the previous time to when changing the current time on the basis of the determination result of the determination part 13, and thereby calculates a correction time when recording data, and executes any of a first time correction correcting the time when the data is recorded and a second time correction correcting time of past record data by a time modified when changing the current time.

Description

本発明は、データ記録装置に記録したデータの時刻を補正する技術に関する。   The present invention relates to a technique for correcting the time of data recorded in a data recording apparatus.

監視対象の状態等のデータを記録するデータ記録装置は、時計を備えており、収集したデータを時刻とともに記録している。しかし、その時計は、温度変化等によって、真の時刻(実時刻)から少しずつずれてしまうことがある。そのため、ある時点で、時計の時刻合わせが行われる。   A data recording device that records data such as the status of a monitoring target includes a clock and records the collected data together with the time. However, the timepiece may gradually shift from the true time (actual time) due to a temperature change or the like. Therefore, the clock is set at a certain time.

時刻合わせが行われた後で、データ記録装置から記録データを読み出すときまたは再生するときに、次のような問題が起きる。第1のケースでは、時刻合わせで時計を戻した場合、同じ時刻の記録データが重複して存在することになる。第2のケースでは、時刻合わせで時計を進めた場合、時系列データに空白の時間帯が存在することになる。   The following problems occur when the recorded data is read or reproduced from the data recording device after the time is set. In the first case, when the clock is returned with the time adjustment, the recorded data at the same time is duplicated. In the second case, when the clock is advanced by adjusting the time, there is a blank time zone in the time series data.

特許文献1には、従来技術として、第1のケースの場合に対応するために、時刻変更前に記録したデータを、時刻変更後に記録したデータで上書きすること、第2のケースの場合に対応するために、空白の時間帯を欠測扱いとすることが記載されている。また、特許文献1では、今回の時刻変更時で修正した時間分を、前回の時刻変更時から今回の時刻変更時までの間で線形補間することによって、記録データの時刻における補正時間を算出して、時刻補正を行う技術が開示されている。   In Patent Document 1, as a prior art, in order to deal with the case of the first case, the data recorded before the time change is overwritten with the data recorded after the time change, and the case of the second case is dealt with. In order to do this, it is described that the blank time zone is treated as missing. Further, in Patent Document 1, the correction time at the time of the recording data is calculated by linearly interpolating the time corrected at the time of the current time change from the time of the previous time change to the time of the current time change. Thus, a technique for performing time correction is disclosed.

特開2002−258942号公報JP 2002-258942 A

しかしながら、線形補間によって時刻を補正する特許文献1に記載の技術では、今回の時刻変更時に設定された時刻を、前回の時刻変更時に設定された時刻よりも戻した場合、記録データの時刻が過去に逆行するという問題がある。また、特許文献1に記載の技術では、記録データの補正時間を線形補間によって求めているために、時系列データ間の時間間隔が許容範囲より広くなる、または許容範囲より狭くなるという虞がある。ここで、許容範囲とは、データ記録装置が記録可能および再生可能の双方またはいずれかの時間間隔を意味している。例えば、記録データが監視映像の場合には、許容範囲を満足しない場合には、映像を記録したり再生したりすることができない虞もある。
そこで、本発明では、データを記録順に再生可能に時刻補正を行う技術を提供することを課題とする。
However, in the technique described in Patent Document 1 that corrects the time by linear interpolation, when the time set at the time change of the current time is returned from the time set at the time of the previous time change, the time of the recording data is the past. There is a problem of going backwards. In the technique described in Patent Document 1, since the correction time of the recording data is obtained by linear interpolation, there is a possibility that the time interval between the time series data becomes wider than the allowable range or becomes narrower than the allowable range. . Here, the allowable range means a time interval in which the data recording apparatus can record and / or reproduce. For example, when the recording data is a monitoring video, there is a possibility that the video cannot be recorded or reproduced if the allowable range is not satisfied.
Accordingly, an object of the present invention is to provide a technique for performing time correction so that data can be reproduced in the order of recording.

前記課題を解決するために、本発明のデータ記録装置は、時刻変更時の時刻が記憶される記憶部と、今回の時刻変更時から前回の時刻変更時までの記録データの個数を取得し、前記記録データの個数を前記今回の時刻変更時から前記前回の時刻変更時までの時間で除算してデータレートを算出し、前記データレートが所定の範囲内であるか否かを判定する判定部と、前記判定部の判定結果に基づいて、前記今回の時刻変更時で修正した時間分を前記前回の時刻変更時から前記今回の時刻変更時までの間で線形補間することによって、前記記録データの時刻における補正時間を算出して、当該記録データの時刻を補正する第1の時刻補正、または、前記今回の時刻変更時に修正した時間で過去の前記記録データの時刻を補正する第2の時刻補正のいずれかを実行する記録時刻修正部と、を備えることを特徴とする。   In order to solve the above-mentioned problem, the data recording apparatus of the present invention obtains the number of recorded data from the time of the current time change to the time of the previous time change, and a storage unit that stores the time of the time change. A determination unit that calculates the data rate by dividing the number of the recording data by the time from the current time change to the previous time change, and determines whether the data rate is within a predetermined range And based on the determination result of the determination unit, linearly interpolates the time corrected at the time of the current time change from the time of the previous time change to the time of the current time change. The first time correction for correcting the time of the recording data by calculating the correction time at the time of the second time, or the second time for correcting the time of the past recording data with the time corrected when the current time is changed correction Characterized in that it comprises a recording time correction unit that performs either.

本発明によれば、データを記録順に再生可能に時刻補正を行うことができる。   According to the present invention, it is possible to perform time correction so that data can be reproduced in the order of recording.

データ記録装置の機能例を示す図である。It is a figure which shows the function example of a data recording device. 時刻補正の処理フロー例を示す図である。It is a figure which shows the example of a processing flow of time correction. 時刻補正テーブルの一例を示す図である。It is a figure which shows an example of a time correction table. 第1の時刻補正方法を示す図である。It is a figure which shows the 1st time correction method. 第2の時刻補正方法を示す図である。It is a figure which shows the 2nd time correction method. 時刻補正の一例を示す図である。It is a figure which shows an example of time correction.

ここで、本発明を実施するための形態(以降、「本実施形態」と称す。)について、適宜図面を参照しながら詳細に説明する。   Here, a mode for carrying out the present invention (hereinafter referred to as “the present embodiment”) will be described in detail with reference to the drawings as appropriate.

まず、時刻補正が可能なデータ記録装置の機能例について、図1を用いて説明する。なお、データ記録装置1は、単位時間当たりに所定数のデータを記録し、再生する(読み出す)機能を備えているものとする。データ記録装置1は、例えば、監視対象が所定のフレームレートの監視映像(データ)である場合には、そのフレームレート(データレート)の許容される範囲が決められている。また、データ記録装置1が、所定の周期で測定したデータ(温度や監視対象の装置の状態等)を記録する場合には、本実施形態では、通信プロトコルや通信インタフェース等に制約されて、データレートの許容される範囲が決められている。本実施形態では、記録データが監視映像の場合を例として、データ記録装置1の機能例について、以下に説明する。   First, an example of functions of a data recording apparatus capable of time correction will be described with reference to FIG. It is assumed that the data recording apparatus 1 has a function of recording and reproducing (reading) a predetermined number of data per unit time. For example, when the monitoring target is monitoring video (data) having a predetermined frame rate, the data recording apparatus 1 determines an allowable range of the frame rate (data rate). Further, when the data recording device 1 records data measured at a predetermined cycle (temperature, state of a device to be monitored, etc.), in this embodiment, the data is restricted by a communication protocol, a communication interface, etc. An acceptable range of rates is determined. In the present embodiment, an example of functions of the data recording apparatus 1 will be described below, taking as an example the case where the recording data is a monitoring video.

図1に示すように、データ記録装置1は、処理部10、記憶部20および通信部30を備える。
通信部30は、通信インタフェースであり、監視対象装置2からネットワーク3を介して、監視映像(データ)を受信する機能を備えている。
記憶部20は、メモリやハードディスク等であり、処理部10の処理結果や記録データやアプリケーションプログラムを記憶している。また、記憶部20には、変更した時刻や時刻の補正方法に関する情報が格納される時刻補正テーブル21が記憶される。なお、時刻補正テーブル21の詳細については後記する。
As shown in FIG. 1, the data recording apparatus 1 includes a processing unit 10, a storage unit 20, and a communication unit 30.
The communication unit 30 is a communication interface and has a function of receiving monitoring video (data) from the monitoring target device 2 via the network 3.
The storage unit 20 is a memory, a hard disk, or the like, and stores processing results of the processing unit 10, recording data, and application programs. In addition, the storage unit 20 stores a time correction table 21 in which information regarding the changed time and the time correction method is stored. Details of the time correction table 21 will be described later.

処理部10は、時計補正部11、時計部12、判定部13、データ収集部14、時刻補正管理部15および記録時刻修正部16を備える。処理部10は、図示しないCPU(Central Processing Unit)およびメインメモリによって構成され、処理部10内の各部11〜16の機能は記憶部20に記憶されているアプリケーションプログラムをメインメモリに展開して具現化される。   The processing unit 10 includes a clock correction unit 11, a clock unit 12, a determination unit 13, a data collection unit 14, a time correction management unit 15, and a recording time correction unit 16. The processing unit 10 includes a CPU (Central Processing Unit) and a main memory (not shown), and the functions of the units 11 to 16 in the processing unit 10 are realized by developing an application program stored in the storage unit 20 in the main memory. It becomes.

時計補正部11は、不図示の入力装置を介して入力された時刻の変更要求を受け付けて、時計部12に時刻の変更指示を送信する機能を有する。なお、入力される時刻の変更要求は、例えば、設定する時刻、時計を進める量、時計を戻す量のいずれでも構わない。
時計部12は、時刻を出力するとともに、時計補正部11から受信した時刻の変更要求に基づいて時刻を変更する機能を有する。
The clock correction unit 11 has a function of receiving a time change request input via an input device (not shown) and transmitting a time change instruction to the clock unit 12. Note that the input time change request may be any of the set time, the amount by which the clock is advanced, and the amount by which the clock is returned.
The clock unit 12 has a function of outputting the time and changing the time based on the time change request received from the clock correction unit 11.

判定部13は、記憶部20から今回の時刻変更時および前回の時刻変更時の情報を読み出し、双方の時刻変更時の間に記録された映像フレーム数(データ数)を取得し、その映像フレーム数(データ数)を双方の時刻変更時の間の時間で除算してフレームレート(データレート)を算出し、当該フレームレート(データレート)が所定の範囲内であるか否かを判定する機能を有する。また、判定部13は、判定結果に基づいて、予め決められている2つの時刻の補正方法の中から、いずれか一方の補正方法を選択する機能を有する。   The determination unit 13 reads information on the current time change and the previous time change from the storage unit 20, acquires the number of video frames (data number) recorded during both time changes, and the number of video frames ( The frame rate (data rate) is calculated by dividing the number of data) by the time between the time changes of both times, and has a function of determining whether or not the frame rate (data rate) is within a predetermined range. The determination unit 13 has a function of selecting one of the two correction methods determined in advance based on the determination result.

データ収集部14は、監視対象装置2から映像フレーム(データ)を受信し、時刻補正管理部15によって発行される項番(具体的には、図3に示す時刻補正テーブル21の項番)と関連付けて記憶部20に記憶する機能を有する。
時刻補正管理部15は、補正方法を選択する機能を有する。また、時刻補正管理部15は、時計補正部11が受け付けた時刻の変更要求に対応する時刻(変更後時刻)、その時刻変更時の時計部12の時刻(変更前時刻)および判定部13によって選択された補正方法を関連付けて記憶部20に記憶する機能を有する。
記録時刻修正部16は、判定部13によって選択された補正方法を用いて、映像フレーム(データ)の時刻を補正する機能を有する。
The data collection unit 14 receives the video frame (data) from the monitoring target device 2 and the item number issued by the time correction management unit 15 (specifically, the item number of the time correction table 21 shown in FIG. 3). It has a function of storing in association with the storage unit 20.
The time correction management unit 15 has a function of selecting a correction method. Further, the time correction management unit 15 uses the time corresponding to the time change request received by the clock correction unit 11 (time after change), the time of the clock unit 12 at the time change (pre-change time), and the determination unit 13. A function of storing the selected correction method in association with the storage unit 20 is provided.
The recording time correction unit 16 has a function of correcting the time of the video frame (data) using the correction method selected by the determination unit 13.

次に、各部11〜16間の情報の流れについて、図1を用いて具体的に説明する。
時計補正部11は、不図示の入力装置から時刻の変更要求として、例えば、今回の時刻変更時の時刻Tnewを受け付ける。例えば、入力装置は、時刻Tnewが設定され、セットボタンが押されることによって、時刻Tnewを時刻補正部11に出力する。次に、時計補正部11は、時刻の変更要求を時計部12に送信し、変更要求時の時計部12の時刻T0を変更前時刻T0として取得する。時計部12は、時刻Tnewを変更後時刻Tnewとして時計を設定する。そして、時計補正部11は、変更後時刻Tnewおよび変更前時刻T0を判定部13に送信する。
Next, the flow of information between the units 11 to 16 will be specifically described with reference to FIG.
The clock correction unit 11 receives, for example, a time Tnew at the time of this time change as a time change request from an input device (not shown). For example, the input device outputs the time Tnew to the time correction unit 11 when the time Tnew is set and the set button is pressed. Next, the clock correction unit 11 transmits a time change request to the clock unit 12, and acquires the time T0 of the clock unit 12 at the time of the change request as the pre-change time T0. The clock unit 12 sets the clock with the time Tnew as the changed time Tnew. Then, the clock correction unit 11 transmits the post-change time Tnew and the pre-change time T0 to the determination unit 13.

判定部13は、時計補正部11から今回の時刻変更時の変更前時刻T0および変更後時刻Tnewを受信し、時刻補正管理部15を介して記憶部20から前回の時刻変更時の時刻Toldを取得する。判定部13は、記憶部20から前回の時刻変更時から今回の時刻変更時までの映像フレーム数Pnumをデータ収集部14を介して取得し、図2に示す時刻補正の処理フローによって判定処理を実行する。判定部13は、判定処理に基づいて、第1の時刻補正方法または第2の時刻補正方法のいずれかを選択し、変更前時刻T0と変更後時刻Tnewとともに選択した時刻補正処理方法を時刻補正管理部15に送信する。   The determination unit 13 receives the pre-change time T0 and the post-change time Tnew at the time of the current time change from the clock correction unit 11, and the time Told at the previous time change from the storage unit 20 via the time correction management unit 15. get. The determination unit 13 acquires the number of video frames Pnum from the storage unit 20 from the previous time change to the current time change via the data collection unit 14, and performs the determination process according to the time correction processing flow shown in FIG. Run. The determination unit 13 selects either the first time correction method or the second time correction method based on the determination processing, and corrects the time correction processing method selected together with the pre-change time T0 and the post-change time Tnew. It transmits to the management unit 15.

時刻補正管理部15は、今回の時刻変更時の変更前時刻T0と変更後時刻Tnewと時刻補正処理方法を受信し、項番を付して記憶部20の時刻補正テーブル21に記憶し、当該項番をデータ収集部14に送信する。
データ収集部14は、監視対象装置2から映像フレーム(データ)を取得し、時計部12から現在の時刻を取得し、時刻補正管理部15から項番を取得し、取得した映像フレーム(データ)に時刻および項番を関連付けて、記憶部20に記憶する。
記録時刻修正部16は、映像フレーム(データ)の再生要求(読み出し要求)を受け付けたとき、その映像フレームに関連付けられた項番を用いて、時刻補正管理部15を介して記憶部20から時刻補正処理方法を取得し、映像フレーム(データ)の時刻を補正する。
The time correction management unit 15 receives the pre-change time T0, the post-change time Tnew, and the time correction processing method at the time of the current time change, stores the item numbers in the time correction table 21 of the storage unit 20, and stores them. The item number is transmitted to the data collection unit 14.
The data collection unit 14 acquires a video frame (data) from the monitoring target device 2, acquires the current time from the clock unit 12, acquires an item number from the time correction management unit 15, and acquires the acquired video frame (data). The time and the item number are associated with each other and stored in the storage unit 20.
When the recording time correction unit 16 receives a playback request (reading request) for a video frame (data), the recording time correction unit 16 uses the item number associated with the video frame to store the time from the storage unit 20 via the time correction management unit 15. A correction processing method is acquired, and the time of the video frame (data) is corrected.

ここで、判定部13における時刻補正の処理フロー例について、図2を用いて説明する。なお、判定部13は、時刻補正部11から今回の時刻変更時の変更前時刻T0および変更後時刻Tnewを受信している状態、すなわち、時刻変更が発生している状態にあるものとする。   Here, an example of a processing flow of time correction in the determination unit 13 will be described with reference to FIG. Note that the determination unit 13 is in a state where the pre-change time T0 and the post-change time Tnew at the time of the current time change are received from the time correction unit 11, that is, a time change has occurred.

ステップS201では、判定部13は、記憶部20を参照して、過去の記録データがあるか否かを判定する。
過去の記録データがあると判定された場合(ステップS201でYes)、処理はステップS202へ進み、過去の記録データがないと判定された場合(ステップS201でNo)、処理はステップS206へ進む。
In step S <b> 201, the determination unit 13 refers to the storage unit 20 and determines whether there is past recording data.
If it is determined that there is past recording data (Yes in step S201), the process proceeds to step S202. If it is determined that there is no past recording data (No in step S201), the process proceeds to step S206.

ステップS202では、判定部13は、記憶部20の時刻補正テーブル21を参照して、過去に時刻変更されたか否かを判定する。なお、過去に時刻変更されたと判定されるケースは、時刻補正テーブル21に既に項番とともに時刻変更時の情報が記憶されている場合である。
過去に時刻変更されたと判定された場合(ステップS202でYes)、処理はステップS203へ進み、過去に時刻変更されていないと判定された場合(ステップS202でNo)、処理はステップS206へ進む。
In step S202, the determination unit 13 refers to the time correction table 21 in the storage unit 20 and determines whether the time has been changed in the past. The case where it is determined that the time has been changed in the past is a case where the time correction information is already stored in the time correction table 21 together with the item number.
If it is determined that the time has been changed in the past (Yes in step S202), the process proceeds to step S203. If it is determined that the time has not been changed in the past (No in step S202), the process proceeds to step S206.

ステップS203では、判定部13は、今回の時刻変更時の時刻Tnewと前回の時刻変更時の時刻Toldとの間の映像フレーム数(データ数)Pnumを、今回の時刻変更時の時刻Tnewと前回の時刻変更時の時刻Toldとの間の時間で除算して、フレームレート(データレート)Fを演算する。具体的には、判定部13は、今回の時刻変更時の時刻Tnewを時刻補正部11から受信し、時刻補正管理部15を介して記憶部20から前回の時刻変更時の時刻Toldを取得する。また、判定部13は、記憶部20から前回の時刻変更時から今回の時刻変更時までの映像フレーム数(データ数)Pnumをデータ収集部14を介して取得する。そして、判定部13は、Pnum/(Tnew−Told)を演算し、その結果をフレームレート(データレート)Fとする。   In step S203, the determination unit 13 sets the number of video frames (number of data) Pnum between the time Tnew when the current time is changed and the time Told when the previous time is changed to the time Tnew when the current time is changed and the previous time. The frame rate (data rate) F is calculated by dividing by the time between the time Told and the time Told when the time is changed. Specifically, the determination unit 13 receives the time Tnew at the time of the current time change from the time correction unit 11 and acquires the time Told at the time of the previous time change from the storage unit 20 via the time correction management unit 15. . In addition, the determination unit 13 acquires the number of video frames (data number) Pnum from the storage unit 20 from the previous time change to the current time change via the data collection unit 14. Then, the determination unit 13 calculates Pnum / (Tnew−Told) and sets the result as a frame rate (data rate) F.

ステップS204では、判定部13は、フレームレート(データレート)FがFmin以上かつFmax以下を満たすか否かを判定する。言い換えると、判定部13は、フレームレート(データレート)Fが所定の範囲を満たすか否かを判定する。ここで、Fminは、例えばデータ記録装置1が記録または再生可能な最小のフレームレート(データレート)を表す。また、Fmaxは、例えばデータ記録装置1が記録または再生可能な最大のフレームレート(データレート)を表している。
FがFmin以上かつFmax以下を満たすと判定した場合(ステップS204でYes)、処理はステップS205へ進み、FがFmin以上かつFmax以下を満たさないと判定した場合(ステップS204でNo)、処理はステップS206へ進む。
In step S204, the determination unit 13 determines whether or not the frame rate (data rate) F satisfies Fmin or more and Fmax or less. In other words, the determination unit 13 determines whether or not the frame rate (data rate) F satisfies a predetermined range. Here, Fmin represents the minimum frame rate (data rate) that the data recording apparatus 1 can record or reproduce, for example. Fmax represents the maximum frame rate (data rate) that can be recorded or reproduced by the data recording apparatus 1, for example.
If it is determined that F is greater than or equal to Fmin and less than or equal to Fmax (Yes in step S204), the process proceeds to step S205, and if it is determined that F is not greater than or equal to Fmin and less than or equal to Fmax (No in step S204), the process is performed. Proceed to step S206.

ステップS205では、判定部13は、第1の時刻補正方法を選択する。
ステップS206では、判定部13は、第2の時刻補正方法を選択する。
なお、第1の時刻補正方法および第2の時刻補正方法の詳細については、後記する。
In step S205, the determination unit 13 selects the first time correction method.
In step S206, the determination unit 13 selects the second time correction method.
Details of the first time correction method and the second time correction method will be described later.

次に、時刻補正テーブル21の一例について、図3を用いて説明する。
図3に示すように、時刻補正テーブル21は、項番、変更前時刻、変更後時刻および補正方法を関連付けて記憶している。
項番の欄には、時刻補正管理部15によって時刻変更時に発行される識別情報が記憶される。
変更前時刻の欄には、時刻変更時に、時計部12から取得した時刻T0が記憶される。
変更後時刻の欄には、時刻変更時に、不図示の入力装置から時刻の変更要求として受け付けた時刻Tnewが記憶される。
補正方法の欄には、判定部13によって選択された第1の時刻補正方法または第2の時刻補正方法のいずれかが記憶される。
Next, an example of the time correction table 21 will be described with reference to FIG.
As shown in FIG. 3, the time correction table 21 stores an item number, a time before change, a time after change, and a correction method in association with each other.
In the item number column, identification information issued by the time correction management unit 15 when the time is changed is stored.
The time T0 acquired from the clock unit 12 when the time is changed is stored in the “before change” column.
The time after change field stores the time Tnew received as a time change request from an input device (not shown) when the time is changed.
In the correction method column, either the first time correction method or the second time correction method selected by the determination unit 13 is stored.

図3に示す時刻補正テーブル21の項番「1」は、1回目の時刻変更を表しており、2013年1月22日の12時(変更前時刻)から12時5分(変更後時刻)に時刻を進めている。項番「2」は、2回目の時刻変更を表しており、2013年1月22日の13時5分(変更前時刻)から13時(変更後時刻)に時刻を戻している。項番「3」は、3回目の時刻変更を表しており、2013年1月22日の14時から12時30分に時刻を戻している。また、補正方法には、図2に示した処理フローによって選択された時刻補正方法が「第1」「第2」のように表されている。なお、「第1」は第1の時刻補正方法を表し、「第2」は第2の時刻補正方法を表している。   The item number “1” of the time correction table 21 shown in FIG. 3 represents the first time change, and from 12 o'clock on January 22, 2013 (pre-change time) to 12:05 (post-change time). The time is moving forward. The item number “2” represents the second time change, and the time is returned from 13:05 (pre-change time) on January 22, 2013 to 13:00 (post-change time). The item number “3” represents the third time change, and the time is returned from 14:00 on January 22, 2013 to 12:30. In the correction method, the time correction method selected by the processing flow shown in FIG. 2 is expressed as “first” and “second”. “First” represents the first time correction method, and “second” represents the second time correction method.

図4は、第1の時刻補正方法を説明する図である。横軸は実時刻を表し、縦軸はデータ記録装置1の時計部12の時刻を表す。
第1の時刻補正方法は、今回の時刻変更時によって変更前時刻T0から変更後時刻Tnewに時刻が変更された場合、前回の時刻変更時の時刻Toldから変更前時刻T0まで間に記録された記録データに付された時刻に対して、時刻変更量(Tnew−T0)(白抜き矢印の長さ)と記録期間(T0−Told)との比から算出される時刻補正量を加算することによって、補正後の時刻を算出する。つまり、今回の時刻変更時で修正した時間分(時刻変更量(Tnew−T0)(白抜き矢印の長さ))を前回の時刻変更時から今回の時刻変更時までの間で線形補間することによって、記録データの時刻における補正時間(図4中の矢印実線で示される補正値)を算出する。例として、補正後の時刻Tbは、次の式(1)によって算出される。
Tb=(Tnew−T0) (Ta−Told) /(T0−Told)+Ta ・・・・式(1)
FIG. 4 is a diagram for explaining the first time correction method. The horizontal axis represents the actual time, and the vertical axis represents the time of the clock unit 12 of the data recording device 1.
In the first time correction method, when the time is changed from the pre-change time T0 to the post-change time Tnew due to the current time change, the time was recorded between the previous time change time Tod and the pre-change time T0. By adding the time correction amount calculated from the ratio of the time change amount (Tnew-T0) (the length of the white arrow) and the recording period (T0-Told) to the time attached to the recording data. Then, the corrected time is calculated. That is, the amount of time (time change amount (Tnew−T0) (length of white arrow)) corrected at the time of the current time change is linearly interpolated between the previous time change and the current time change. Thus, the correction time (the correction value indicated by the solid line in FIG. 4) at the time of the recording data is calculated. As an example, the corrected time Tb is calculated by the following equation (1).
Tb = (Tnew-T0) (Ta-Told) / (T0-Told) + Ta (1)

図5は、第2の時刻補正方法を説明する図である。横軸は実時刻を表し、縦軸はデータ記録装置1の時計部12の時刻を表す。
第2の時刻補正方法は、今回の時刻変更時によって変更前時刻T0から変更後時刻Tnewに時刻変更された場合、変更前時刻T0以前のすべての記録データの時刻に対して、時刻変更量(Tnew−T0)(白抜き矢印の長さ)を加算することによって補正後の時刻を算出する。例として、補正後の時刻Tbは、次の式(2)によって算出される。
Tb=(Tnew−T0)+Ta ・・・・式(2)
FIG. 5 is a diagram for explaining the second time correction method. The horizontal axis represents the actual time, and the vertical axis represents the time of the clock unit 12 of the data recording device 1.
In the second time correction method, when the time is changed from the pre-change time T0 to the post-change time Tnew due to the current time change, the time change amount (with respect to the time of all recorded data before the pre-change time T0 ( The corrected time is calculated by adding (Tnew−T0) (the length of the white arrow). As an example, the corrected time Tb is calculated by the following equation (2).
Tb = (Tnew−T0) + Ta (2)

図6は、図3に示す時刻補正テーブル21に記載されている情報を、実時刻とデータ記録装置の時刻とで表される座標に書き表したものである(適宜、図3参照)。
項番「1」の時刻変更では、第2の時刻補正方法が用いられるため、2013年1月22日の12時以前の記録データすべてには、時刻変化量5分が加算される。その加算した値は、破線61で表される。
次に、項番「2」の時刻変更では、第1の時刻補正方法が用いられるため、12時5分から13時5分までの間の記録データに対して、式(1)によって補正後の時刻Tbが算出される。その算出された値は、破線62で表される。
次に、項番「3」の時刻変更では、第2の時刻補正方法が用いられるため、14時以前の記録データすべてに対して時刻変化量90分を減算される。その算出された値は、破線63で表される。
FIG. 6 shows the information described in the time correction table 21 shown in FIG. 3 written in the coordinates represented by the actual time and the time of the data recording device (see FIG. 3 as appropriate).
When the item number “1” is changed, the second time correction method is used. Therefore, a time change amount of 5 minutes is added to all the recorded data before 12:00 on January 22, 2013. The added value is represented by a broken line 61.
Next, since the first time correction method is used in the time change of the item number “2”, the recording data from 12: 5 to 13: 5 is corrected by the equation (1). Time Tb is calculated. The calculated value is represented by a broken line 62.
Next, in the time change of item number “3”, since the second time correction method is used, the time change amount of 90 minutes is subtracted from all the recorded data before 14:00. The calculated value is represented by a broken line 63.

以上説明したように、本発明のデータ記録装置1は、時刻変更時の時刻が記憶される記憶部20と、今回の時刻変更時から前回の時刻変更時までの記録データの個数を取得し、記録データの個数を今回の時刻変更時から前回の時刻変更時までの時間で除算してデータレートを算出し、データレートが所定の範囲内であるか否かを判定する判定部13と、データレートが所定の範囲内であると判定した場合、今回の時刻変更時で修正した時間分を前回の時刻変更時から今回の時刻変更時までの間で線形補間することによって、記録データの時刻における補正時間を算出して、当該記録データの時刻を補正する第1の時刻補正を実行し、データレートが所定の範囲外であると判定した場合、今回の時刻変更時に修正した時間で過去の記録データの時刻を補正する第2の時刻補正を実行する記録時刻修正部16と、を備える。したがって、データ記録装置1は、記録した時系列データを記録順に再生可能に時刻補正を行うことができる。   As described above, the data recording apparatus 1 of the present invention acquires the storage unit 20 in which the time at the time change is stored, and the number of recorded data from the time change at this time to the time at the previous time change, A determination unit 13 for calculating the data rate by dividing the number of recording data by the time from the current time change to the previous time change, and determining whether the data rate is within a predetermined range; When it is determined that the rate is within a predetermined range, the time corrected at the time change of the current time is linearly interpolated between the time of the previous time change and the time of the current time change. When the correction time is calculated and the first time correction for correcting the time of the recording data is executed and it is determined that the data rate is out of the predetermined range, the past recording is performed at the time corrected when the time is changed this time. Data Comprising a recording time correction unit 16 that executes the second time correction for correcting the time, the. Therefore, the data recording apparatus 1 can perform time correction so that the recorded time series data can be reproduced in the order of recording.

なお、本発明は上記した実施形態に限定されるものではなく、様々な変形例が含まれる。例えば、上記した実施形態は、本発明を分かりやすく説明するために詳細に説明したものであり、必ずしも、説明したすべての構成を備えるものに限定されるものではない。また、ある実施形態の構成の一部を他の実施形態の構成に置き換えることが可能であり、ある実施形態の構成に他の実施形態の構成を加えることも可能である。また、実施形態の構成の一部について、他の構成の追加・削除・置換をすることが可能である。
また、データ記録装置1の各機能等は、それらの一部または全部を、例えば、集積回路で設計する等によりハードウェアで実現してもよい。また、処理部10の各機能等は、プロセッサがそれぞれの機能を実現するプログラムを解釈し、実行することによりソフトウェアで実現してもよい。各機能を実現するプログラム、テーブル、ファイル等の情報は、メモリや、ハードディスク、SSD(Solid State Drive)等の記録装置、またはICカード、SDカード、DVD(Digital Versatile Disc)等の記録媒体に置くことができる。
また、制御線や情報線は説明上必要と考えられるものを示しており、製品上必ずしもすべての制御線や情報線を示しているとは限らない。実際には、ほとんどすべての構成が相互に接続されていると考えてもよい。
In addition, this invention is not limited to above-described embodiment, Various modifications are included. For example, the above-described embodiment has been described in detail for easy understanding of the present invention, and is not necessarily limited to one having all the configurations described. In addition, a part of the configuration of a certain embodiment can be replaced with the configuration of another embodiment, and the configuration of another embodiment can be added to the configuration of a certain embodiment. Further, it is possible to add, delete, and replace other configurations for a part of the configuration of the embodiment.
Further, each function or the like of the data recording apparatus 1 may be realized by hardware by designing a part or all of them, for example, by an integrated circuit. Each function of the processing unit 10 may be realized by software by interpreting and executing a program that realizes each function by the processor. Information such as programs, tables, and files for realizing each function is stored in a memory, a recording device such as a hard disk or SSD (Solid State Drive), or a recording medium such as an IC card, SD card, or DVD (Digital Versatile Disc). be able to.
In addition, the control lines and information lines are those that are considered necessary for the explanation, and not all the control lines and information lines on the product are necessarily shown. In practice, it may be considered that almost all configurations are connected to each other.

1 データ記録装置
2 監視対象装置
3 ネットワーク
10 処理部
11 時計補正部
12 時計部
13 判定部
14 データ収集部
15 時刻補正管理部
16 記録時刻修正部
20 記憶部
21 時刻補正テーブル
30 通信部
DESCRIPTION OF SYMBOLS 1 Data recording apparatus 2 Monitoring object apparatus 3 Network 10 Processing part 11 Clock correction part 12 Clock part 13 Judgment part 14 Data collection part 15 Time correction management part 16 Recording time correction part 20 Storage part 21 Time correction table 30 Communication part

Claims (4)

時刻変更時の時刻が記憶される記憶部と、
今回の時刻変更時から前回の時刻変更時までの記録データの個数を取得し、前記記録データの個数を前記今回の時刻変更時から前記前回の時刻変更時までの時間で除算してデータレートを算出し、前記データレートが所定の範囲内であるか否かを判定する判定部と、
前記判定部の判定結果に基づいて、前記今回の時刻変更時で修正した時間分を前記前回の時刻変更時から前記今回の時刻変更時までの間で線形補間することによって、前記記録データの時刻における補正時間を算出して、当該記録データの時刻を補正する第1の時刻補正、または、前記今回の時刻変更時に修正した時間で過去の前記記録データの時刻を補正する第2の時刻補正のいずれかを実行する記録時刻修正部と、
を備えることを特徴とするデータ記録装置。
A storage unit for storing the time when the time is changed;
The number of recorded data from the current time change to the previous time change is obtained, and the data rate is divided by the time from the current time change to the previous time change. A determination unit that calculates and determines whether or not the data rate is within a predetermined range;
Based on the determination result of the determination unit, the time of the recording data is obtained by linearly interpolating the time corrected at the time of the current time change from the time of the previous time change to the time of the current time change. The first time correction for correcting the time of the recording data by calculating the correction time at the time or the second time correction for correcting the time of the past recording data with the time corrected at the time of the current time change. A recording time correction unit for executing one of the following:
A data recording apparatus comprising:
前記記録時刻修正部は、
前記判定部において前記データレートが前記所定の範囲内であると判定された場合、前記第1の時刻補正を実行し、前記判定部において前記データレートが前記所定の範囲外であると判定した場合、前記第2の時刻補正を実行する
ことを特徴とする請求項1に記載のデータ記録装置。
The recording time correction unit
When the determination unit determines that the data rate is within the predetermined range, the first time correction is performed, and the determination unit determines that the data rate is outside the predetermined range The data recording apparatus according to claim 1, wherein the second time correction is performed.
記録データを時刻とともに記録するデータ記録装置の時刻補正方法であって、
前記データ記録装置は、
時刻変更時の時刻が記憶される記憶部、を備え、
今回の時刻変更時から前回の時刻変更時までの記録データの個数を取得し、前記記録データの個数を前記今回の時刻変更時から前記前回の時刻変更時までの時間で除算してデータレートを算出し、前記データレートが所定の範囲内であるか否かを判定する判定ステップと、
前記判定ステップにおける判定結果に基づいて、前記今回の時刻変更時で修正した時間分を前記前回の時刻変更時から前記今回の時刻変更時までの間で線形補間することによって、前記記録データの時刻における補正時間を算出して、当該記録データの時刻を補正する第1の時刻補正、または、前記今回の時刻変更時に修正した時間で過去の前記記録データの時刻を補正する第2の時刻補正のいずれかを実行する記録時刻修正ステップと、
を実行することを特徴とする時刻補正方法。
A time correction method for a data recording apparatus for recording recorded data together with time,
The data recording device comprises:
A storage unit for storing the time when the time is changed,
The number of recorded data from the current time change to the previous time change is obtained, and the data rate is divided by the time from the current time change to the previous time change. A determination step of calculating and determining whether the data rate is within a predetermined range;
Based on the determination result in the determination step, the time of the recording data is obtained by linearly interpolating the time corrected at the time of the current time change from the time of the previous time change to the time of the current time change. The first time correction for correcting the time of the recording data by calculating the correction time at the time or the second time correction for correcting the time of the past recording data with the time corrected at the time of the current time change. A recording time correction step for performing one of the following:
The time correction method characterized by performing.
前記記録時刻修正ステップでは、
前記判定ステップにおいて前記データレートが前記所定の範囲内であると判定された場合、前記第1の時刻補正を実行し、前記判定ステップにおいて前記データレートが前記所定の範囲外であると判定した場合、前記第2の時刻補正を実行する
ことを特徴とする請求項3に記載の時刻補正方法。
In the recording time correction step,
When it is determined in the determination step that the data rate is within the predetermined range, the first time correction is performed, and when the data rate is determined to be outside the predetermined range in the determination step The time correction method according to claim 3, wherein the second time correction is executed.
JP2013103635A 2013-05-16 2013-05-16 Data recording device and time correction method Pending JP2014225107A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2013103635A JP2014225107A (en) 2013-05-16 2013-05-16 Data recording device and time correction method
CN201410201256.9A CN104166424A (en) 2013-05-16 2014-05-13 Data recording device and correction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013103635A JP2014225107A (en) 2013-05-16 2013-05-16 Data recording device and time correction method

Publications (1)

Publication Number Publication Date
JP2014225107A true JP2014225107A (en) 2014-12-04

Family

ID=51910284

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013103635A Pending JP2014225107A (en) 2013-05-16 2013-05-16 Data recording device and time correction method

Country Status (2)

Country Link
JP (1) JP2014225107A (en)
CN (1) CN104166424A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110087137B (en) * 2018-01-26 2022-03-29 龙芯中科技术股份有限公司 Method, device, equipment and medium for acquiring video playing frame information
CN111225251B (en) * 2018-11-27 2022-07-08 深圳Tcl数字技术有限公司 Method, storage medium and equipment for obtaining EPG (electronic program guide) by self-adaptive matching of time

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3955216B2 (en) * 2002-02-14 2007-08-08 シャープ株式会社 Time-series data recording apparatus and time-series data recording method
KR100793233B1 (en) * 2006-05-17 2008-01-10 엘지전자 주식회사 Method for changing device informtaion
CN101212619A (en) * 2006-12-29 2008-07-02 上海乐金广电电子有限公司 Data recording method and data searching method

Also Published As

Publication number Publication date
CN104166424A (en) 2014-11-26

Similar Documents

Publication Publication Date Title
US7978572B2 (en) Device and method for reproducing digital signal and device and method for recording digital signal
KR101658316B1 (en) Synchronous audio playback method, apparatus and system
CN109167890B (en) Sound and picture synchronization method and device and display equipment
JP2018056821A (en) Digital watermark embedding program, digital watermark embedding device, and digital watermark embedding method
JP2014225107A (en) Data recording device and time correction method
CN105530534B (en) A kind of method and apparatus of video clipping
US10912494B2 (en) Sensor signal reconstruction in a sensor hub
JP4124798B2 (en) Timing extracting device, information reproducing device and DVD device using the same
US20180286140A1 (en) Information processing apparatus and information processing method
JP5504290B2 (en) Screen recording system and recording method thereof
CN105323653B (en) A kind of method and apparatus playing segment video
JP5771472B2 (en) Data recording / reproducing apparatus and data library apparatus
CN107256004B (en) Product processing method and device
JP5075932B2 (en) Bit rate setting device
KR101637022B1 (en) Apparatus and method for transmitting and receiving content
CN109255579A (en) A kind of data target determines method and apparatus
JP6806577B2 (en) Recording device and its control method and program
JP4857807B2 (en) Control device
JP6467923B2 (en) TS data reading device and TS data reading method
CN114827680A (en) Multi-channel video synchronous playing method, system, equipment and storage medium
WO2020026873A1 (en) Display data generating device, display data generating method, program, and program recording medium
JP2004348281A (en) Redundancy storage system, method and program
KR100937521B1 (en) High speed image recording method and apparatus
KR20150066197A (en) Continuous data compression method
JP2012080467A (en) Video data processing device and video data processing method