CN104166424A - Data recording device and correction method - Google Patents

Data recording device and correction method Download PDF

Info

Publication number
CN104166424A
CN104166424A CN201410201256.9A CN201410201256A CN104166424A CN 104166424 A CN104166424 A CN 104166424A CN 201410201256 A CN201410201256 A CN 201410201256A CN 104166424 A CN104166424 A CN 104166424A
Authority
CN
China
Prior art keywords
time
correction
data
change
corrected
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
CN201410201256.9A
Other languages
Chinese (zh)
Inventor
大冈裕志
东雅之
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 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 Ltd filed Critical Hitachi Ltd
Publication of CN104166424A publication Critical patent/CN104166424A/en
Pending legal-status Critical Current

Links

Landscapes

  • Testing And Monitoring For Control Systems (AREA)
  • Electric Clocks (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

本发明的数据记录装置(1)具有:存储部分(20),该存储部分(20)存储时刻变更时的时刻;判断部分(13),判断部分(13)获取从本次时刻变更时起至前一次时刻变更时为止的记录数据的件数,将记录数据的件数除以从本次时刻变更时起至前一次时刻变更时为止的时间以计算数据速率,并且判断数据速率是否在规定的范围内;以及记录时刻修正部分(16),该记录时刻修正部分(16)根据判断部分(13)的判断结果执行第一时刻修正和第二时刻修正中的任一个时刻修正,在该第一时刻修正中,在从前一次时刻变更时起至本次时刻变更时为止的期间,对在本次时刻变更时进行了修正的时段进行线性插补,由此算出记录数据的时刻的修正时间,并对记录数据的时刻进行修正,在该第二时刻修正中,按照在本次时刻变更时进行了修正的时间来修正过去的记录数据的时刻。从而以能够对时序数据进行再现的方式进行时刻修正。

The data recording device (1) of the present invention has: a storage part (20), which stores the time when the time is changed; The number of recorded data until the previous time change, divide the number of recorded data by the time from the current time change to the previous time change to calculate the data rate, and determine whether the data rate is within the specified range and the recording time correction part (16), the recording time correction part (16) performs any one time correction in the first time correction and the second time correction according to the judgment result of the judging part (13), at the first time correction In the period from the previous time change to the current time change, linear interpolation is performed on the period corrected at the time of the current time change, thereby calculating the correction time at the time of recording data, and recording The time of the data is corrected, and in the second time correction, the time of the past recorded data is corrected according to the time corrected at the time of the current time change. Thus, the time is corrected so that the time-series data can be reproduced.

Description

数据记录装置以及时刻修正方法Data recording device and time correction method

技术领域technical field

本发明涉及一种对记录在数据记录装置中的数据的时刻进行修正的技术。The present invention relates to a technique for correcting the time of data recorded in a data recording device.

背景技术Background technique

用于记录监视对象的状态等的数据的数据记录装置具有时钟,并且将所收集到的数据与时刻一起进行记录。可是,由于时钟会因温度变化等而出现一点一点地偏离真正的时刻(实际时刻)的情况。因此,需要在某个时间点对时钟的时刻进行校正。The data recording device for recording data such as the state of the monitoring object has a clock, and records the collected data together with the time. However, the clock may deviate from the true time (actual time) little by little due to temperature changes and the like. Therefore, the time of the clock needs to be corrected at a certain point in time.

在进行时刻校正后,在从数据记录装置读取记录数据或者从数据记录装置再现记录数据时,会产生以下问题。第一种情况是,在时刻校正时将时钟往前进行了校正,此时,会使得相同时刻的记录数据重复存在。第二种情况是,在时刻校正时将时钟往后进行了校正,此时,在时序数据中会出现空白时间段。After time adjustment, the following problems arise when reading recorded data from a data recording device or reproducing recorded data from a data recording device. The first case is that the clock is adjusted forward when the time is corrected. At this time, the recorded data at the same time will exist repeatedly. The second case is that the clock is corrected backward during the time correction, at this time, there will be blank time periods in the time series data.

作为现有技术,在专利文献1中公开了一种技术,其为了应对上述第一种情况,用时刻变更后记录的数据对时刻变更前记录的数据进行盖写,并且为了应对上述第二种情况,将空白的时间段作为未检测时间段处理。此外,在专利文献1中还公开了进行时刻修正的技术,其在前一次的时刻变更时起至本次时刻变更时为止的期间对在本次时刻变更时进行了修正的时段进行线性插补,由此来计算记录数据的时刻的修正时间,并进行时刻修正。As a prior art, Patent Document 1 discloses a technique for overwriting the data recorded before the time change with the data recorded after the time change in order to cope with the above-mentioned first case, and in order to cope with the above-mentioned second case In this case, the blank time period is treated as an undetected time period. In addition, Patent Document 1 also discloses a technology for performing time correction, which linearly interpolates the period 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. , so as to calculate the correction time of the time when the data is recorded, and perform time correction.

在先技术文献prior art literature

专利文献patent documents

专利文献1:日本国专利特开2002-258942号公报Patent Document 1: Japanese Patent Laid-Open No. 2002-258942

发明内容Contents of the invention

可是,在由专利文献1公开的通过线性插补进行时刻修正的技术中,在将本次时刻变更时设定的时刻变更为比前一次的时刻变更时设定的时刻更早的时刻时,存在记录数据的时刻退回到过去的问题。此外,在专利文献1公开的技术中,由于通过线性插补来求出记录数据的修正时间,所以有可能使得时序数据之间的时间间隔变得比允许范围大或者比允许范围窄的情况。在此,允许范围是指数据记录装置能够进行记录以及/或者能够进行再现的时间间隔。例如,在记录数据是监视图像时,如果不能满足允许范围,可能会出现无法对图像进行记录或者再现的情况。However, in the technique of performing time correction by linear interpolation disclosed in Patent Document 1, when the time set at the time of the current time change is changed to a time earlier than the time set at the time of the previous time change, There is a problem of going back to the past when the data is recorded. Also, in the technique disclosed in Patent Document 1, since the correction time of the recording data is obtained by linear interpolation, the time interval between sequential data may become larger or narrower than the allowable range. Here, the allowable range refers to the time interval during which the data recording device can perform recording and/or reproduction. For example, when the recorded data is a monitor image, if the allowable range is not met, the image may not be recorded or reproduced.

因此,本发明的目的在于提供一种以能够按照记录顺序对数据进行再现的方式进行时刻修正的技术。Therefore, an object of the present invention is to provide a technique for correcting time so that data can be reproduced in the order in which they were recorded.

解决方案solution

为了解决上述问题,本发明的数据记录装置的特征在于具有:存储部分,所述存储部分存储时刻变更时的时刻;判断部分,所述判断部分获取从本次时刻变更时起至前一次时刻变更时为止的记录数据的件数,将所述记录数据的件数除以从所述本次时刻变更时起至所述前一次时刻变更时为止的时间来计算数据速率,并且判断所述数据速率是否在规定的范围内;以及记录时刻修正部分,所述记录时刻修正部分根据所述判断部分的判断结果执行第一时刻修正和第二时刻修正中的任一个时刻修正,在所述第一时刻修正中,在从所述前一次时刻变更时起至所述本次时刻变更时为止的期间,对在所述本次时刻变更时进行了修正的时段进行线性插补,由此算出所述记录数据的时刻的修正时间,并对该记录数据的时刻进行修正,在所述第二时刻修正中,按照在所述本次时刻变更时进行了修正的时间来修正过去的所述记录数据的时刻。In order to solve the above-mentioned problems, the data recording device of the present invention is characterized in that it has: a storage part that stores the time when the time is changed; The number of pieces of recorded data up to the time, divide the number of pieces of recorded data by the time from the time of the current time change to the time of the previous time change to calculate the data rate, and determine whether the data rate is within within a specified range; and a recording time correction section, the recording time correction section performs any one of the first time correction and the second time correction according to the judgment result of the judgment part, and in the first time correction , during the period from the previous time change to the current time change, perform linear interpolation on the period corrected at the time of the current time change, thereby calculating the correcting the time, and correcting the time of the recorded data, in the second time correction, correcting the past time of the recorded data according to the corrected time when the current time is changed.

发明效果Invention effect

根据本发明,能够对数据的时间以能够按照记录顺序对数据进行再现的方式进行修正。According to the present invention, the time of data can be corrected so that the data can be reproduced in the order in which they were recorded.

附图说明Description of drawings

图1是表示数据记录装置的功能的示例图。FIG. 1 is an exemplary diagram showing functions of a data recording device.

图2是表示时刻修正的处理流程的一例的示例图。FIG. 2 is an explanatory diagram showing an example of a processing flow of time correction.

图3是表示时刻修正表的一例的示例图。FIG. 3 is an explanatory diagram showing an example of a time correction table.

图4是表示第一时刻修正方法的图。FIG. 4 is a diagram illustrating a first time correction method.

图5是表示第二时刻修正方法的图。FIG. 5 is a diagram showing a second time correction method.

图6是表示时刻修正的一例的图。FIG. 6 is a diagram showing an example of time correction.

具体实施方式Detailed ways

以下适当参照附图对用于实施本发明的方式(以下称为“本实施方式”)进行详细说明。Hereinafter, a mode for implementing 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, a functional example of a data recording device capable of time correction will be described with reference to FIG. 1 . The data recording device 1 has a function of recording and reproducing (reading) a predetermined amount of data per unit time. In the data recording device 1 , when the monitoring target is, for example, a monitoring image (data) of a predetermined frame rate, an allowable range is set in advance for the frame rate (data rate). When the data recording device 1 records the data (temperature or the state of the monitoring target device, etc.) measured in accordance with a predetermined cycle, in this embodiment, the allowable range of the data rate is adjusted according to the constraints of the communication protocol and the communication interface. stipulated. In this embodiment, an example of the functions of the data recording device 1 will be described by taking the case where the recorded data is a monitor image as an example.

如图1所示,数据记录装置1具有处理部分10、存储部分20和通信部分30。As shown in FIG. 1 , the data recording device 1 has a processing section 10 , a storage section 20 and a communication section 30 .

通信部分30是通信接口,具有经由网络3从监视对象装置2接受监视图像(数据)的功能。The communication unit 30 is a communication interface and has a function of receiving monitoring images (data) from the monitoring target device 2 via the network 3 .

存储部分20是存储器和硬盘等,用于存储处理部分10的处理结果、记录数据以及应用程序等。此外,存储部分20中还存储有时刻修正表21,在该时刻修正表21中存储有与变更后的时刻以及时刻的修正方法有关的信息。时刻修正表21的详细情况在后述部分进行说明。The storage section 20 is a memory, a hard disk, etc., and stores processing results of the processing section 10, recorded data, application programs, and the like. In addition, the storage unit 20 also stores a time correction table 21, and the time correction table 21 stores information on the changed time and the method of correcting the time. 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 section 10 has a clock correction section 11 , a clock section 12 , a judgment section 13 , a data collection section 14 , a time correction management section 15 , and a recording time correction section 16 . Processing part 10 is made up of unillustrated CPU (Central Processing Unit, central processing unit) and main memory, and the function of each part 11~16 in processing part 10 reads out the application program that is stored in storage part 20 to main memory. implemented in memory.

时钟修正部分11具有接收经由未图示的输入装置输入的时刻变更要求并向时钟部分12发送时刻变更指令的功能。由输入装置输入的时刻变更要求例如可以是设定的时刻、时钟向后校正的量或者时钟向前校正的量中的任一个。The clock correction unit 11 has a function of receiving a time change request input through an input device not shown and sending a time change command to the clock unit 12 . The time change request input by the input device may be, for example, any one of the set time, the amount of backward correction of the clock, or the amount of forward correction of the clock.

时钟部分12具有在输出时刻的同时,根据从时钟修正部分11接收到的时刻变更要求进行时刻变更的功能。The clock section 12 has a function of outputting the time and changing the time according to a time change request received from the clock correction section 11 .

判断部分13具有从存储部分20读取本次时刻变更时以及前一次时刻变更时的信息,获得在两次时刻变更时间之间记录的图像帧数(数据数量),将该图像帧数(数据数量)除以两次时刻变更时间之间经过的时间以算出帧率(数据速率),并且判断该帧率(数据速率)是否在规定的范围内的功能。此外,判断部分13还具有根据判断结果,从预先决定的二种时刻修正方法中选择一种时刻修正方法的功能。The judging part 13 has the information when reading this time change and the previous time change from the storage part 20, obtains the number of image frames (data quantity) recorded between the two time change times, and the image frame number (data quantity) Amount) divided by the elapsed time between two time change times to calculate the frame rate (data rate), and determine whether the frame rate (data rate) is within the specified range. In addition, the judging section 13 also has a function of selecting a time correction method from two predetermined time correction methods based on the judgment result.

数据收集部分14具有从监视对象装置2中接收图像帧(数据),并将图像帧(数据)与通过时刻修正管理部分15发送的项目编号(具体来说是图3所示的时刻修正表21的项目编号)相关联地存储在存储部分20中的功能。The data collection part 14 has to receive the image frame (data) from the monitoring target device 2, and the item number (specifically, the time correction table 21 shown in FIG. item number) is stored in the storage section 20 in association with the function.

时刻修正管理部分15具有选择修正方法的功能。此外,时刻修正管理部分15还具有将与时钟修正部分11接收到的时刻变更要求相对应的时刻(变更后时刻)、该时刻变更时的时钟部分12的时刻(变更前时刻)以及由判断部分13选择的修正方法相关联地存储在存储部分20内的功能。The time correction management section 15 has a function of selecting a correction method. In addition, the time correction management part 15 also has the time corresponding to the time change request received by the clock correction part 11 (time after change), the time of the clock part 12 at the time of the time change (time before change), and the judgment part. 13 The selected correction method is stored in association with the function in the storage section 20.

记录时刻修正部分16具有使用由判断部分13选择的修正方法对图像帧(数据)的时刻进行修正的功能。The recording time correction section 16 has a function of correcting the time of the image frame (data) using the correction method selected by the judgment section 13 .

接着参照附图1对各个部分11~16之间的信息的流向进行具体说明。Next, the flow of information among the respective sections 11 to 16 will be specifically described with reference to FIG. 1 .

时钟修正部分11例如接收本次时刻变更时的时刻Tnew作为来自未图示的输入装置的时刻变更要求。例如,输入装置在时刻Tnew被设定并且设定按钮被按压了时,将时刻Tnew输出到时钟修正部分11中。接着,时钟修正部分11将时刻变更要求发送给时钟部分12,并获取变更要求时的时钟部分12的时刻T0作为变更前时刻T0。时钟部分12将时刻Tnew作为变更后时刻Tnew对时钟进行设定。此后,时钟修正部分11将变更后时刻Tnew以及变更前时刻T0发送给判断部分13。The clock correction unit 11 receives, for example, the time Tnew at the time of the current time change as a time change request from an input device not shown. For example, the input device outputs the time Tnew to the clock correction section 11 when the time Tnew is set and the setting button is pressed. Next, the clock correcting section 11 transmits a time change request to the clock section 12, and obtains the time T0 of the clock section 12 at the time of the change request as the pre-change time T0. The clock section 12 sets a clock with the time Tnew as the post-change time Tnew. Thereafter, the clock correction section 11 sends the post-change time Tnew and the pre-change time T0 to the judging section 13 .

判断部分13从时钟修正部分11接收本次的时刻变更时的变更前时刻T0以及变更后时刻Tnew,经由时刻修正管理部分15从存储部分20获取前一次的时刻变更时的时刻Told。判断部分13从存储部分20经由数据收集部分14获取从前一次的时刻变更时起至本次的时刻变更时为止的图像帧数Pnum。通过图2所示的时刻修正的处理流程执行判断处理。判断部分13根据判断处理选择第一时刻修正方法和第二时刻修正方法中的任一种方法,并将变更前时刻T0和变更后时刻Tnew与所选择的时刻修正处理方法一起发送给时刻修正管理部分15。The determination unit 13 receives the pre-change time T0 and the post-change time Tnew of the current time change from the clock correction unit 11 , and acquires the time Told of the previous time change from the storage unit 20 via the time correction management unit 15 . The determination unit 13 acquires the number of image frames Pnum from the previous time change to the current time change from the storage unit 20 via the data collection unit 14 . The determination process is executed by the time correction process flow shown in FIG. 2 . The judgment part 13 selects any one of the first time correction method and the second time correction method according to the judgment process, and sends the pre-change time T0 and the post-change time Tnew together with the selected time correction processing method to the time correction management Part 15.

时刻修正管理部分15接收本次的时刻变更时的变更前时刻T0和变更后时刻Tnew以及时刻修正处理方法,在赋予项目编号后存储在存储部分20的时刻修正表21中,并且将该项目编号发送给数据收集部分14。The time correction management part 15 receives the pre-change time T0 and the post-change time Tnew and the time correction processing method of this time change, and stores them in the time correction table 21 of the storage part 20 after assigning an item number, and the item number Sent to the data collection section 14.

数据收集部分14从监视对象装置2获取图像帧(数据),从时钟部分12获取当前的时刻,从时刻修正管理部分15获得项目编号,并将所获得的图像帧(数据)与时刻以及项目编号相关联地存储在存储部分20中。The data collecting part 14 obtains the image frame (data) from the monitoring object device 2, obtains the current time from the clock part 12, obtains the item number from the time correction management part 15, and compares the obtained image frame (data) with the time and the item number stored in the storage section 20 in association.

记录时刻修正部分16在接收到图像帧(数据)的再现要求(读出要求)后,使用与该图像帧相关联的项目编号,经由时刻修正管理部分15从存储部分20获取时刻修正处理方法,并对图像帧(数据)的时刻进行修正。After receiving the playback request (readout request) of the image frame (data), the recording time correction section 16 acquires the time correction processing method from the storage section 20 via the time correction management section 15 using the item number associated with the image frame, And correct the time of the image frame (data).

以下参照图2对判断部分13中的时刻修正的处理流程的一例进行说明。在此,判断部分13处于已经从时钟修正部分11获取了本次的时刻变更时的变更前时刻T0和变更后时刻Tnew的状态,也就是处于时刻变更已经发生的状态。An example of the processing flow of the time correction in the judging section 13 will be described below with reference to FIG. 2 . Here, the judging unit 13 is in a state where the pre-change time T0 and the post-change time Tnew of the current time change have been acquired from the clock correction unit 11 , that is, the time change has already occurred.

在步骤S201中,判断部分13参照存储部分20来判断是否有过去的记录数据。In step S201, the judging section 13 refers to the storage section 20 to judge whether or not there is past recording data.

在判断为有过去的记录数据时(步骤S201为Yes),处理进入步骤S202,在判断为没有过去的记录数据时(步骤S201为No),处理进入步骤S206。When it is determined that there is past recorded data (Yes in step S201), the process proceeds to step S202, and when it is determined that there is no past recorded data (No in step S201), the process proceeds to step S206.

在步骤S202中,判断部分13参照存储部分20的时刻修正表21判断在过去是否进行了时刻变更。在此,被判断为过去进行了时刻变更的情况是时刻修正表21中已经与项目编号一起存储了时刻变更时的信息的情况。In step S202, the judgment section 13 refers to the time correction table 21 of the storage section 20 to judge whether or not the time has been changed in the past. Here, when it is determined that the time has been changed in the past, the information at the time of the time change is already stored in the time correction table 21 together with the item number.

在判断为过去进行了时刻变更时(步骤S202为Yes),处理进入步骤S203,在判断为过去没有进行过时刻变更时(步骤S202为No),处理进入步骤S206。When it is determined that the time has been changed in the past (Yes in step S202), the process proceeds to step S203, and when 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从时钟修正部分11接收本次的时刻变更时的时刻Tnew,并经由时刻修正管理部分15从存储部分20获取前一次的时刻变更时的时刻Told。并且,判断部分13经由数据收集部分14从存储部分20获取从前一次的时刻变更时起至本次的时刻变更时为止的图像帧数(数据数量)Pnum。在判断部分13中进行Pnum/(Tnew-Told)的运算,并将其结果作为帧率(数据速率)F。In step S203, the judging part 13 divides the number of image frames (data quantity) Pnum between the time Tnew when this time is changed and the time Told when the previous time is changed by the time Tnew when this time is changed. The frame rate (data rate) F is calculated for the time from the time Told at the time of the previous time change. Specifically, the determination unit 13 receives the time Tnew at the time of the current time change from the clock 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 . Then, the determination unit 13 acquires the number of image frames (number of data) Pnum from the previous time change to the current time change from the storage unit 20 via the data collection unit 14 . The calculation of Pnum/(Tnew-Told) is performed in the judging section 13, and the result is taken as the frame rate (data rate) F.

在步骤S204中,判断部分13判断帧率(数据速率)F是否满足在Fmin以上且在Fmax以下这一条件。也就是说,判断部分13判断帧率(数据速率)F是否满足规定的范围。在此,Fmin例如表示数据记录装置1能够进行记录或者再现的最小的帧率(数据速率),Fmax例如表示数据记录装置1能够进行记录或者再现的最大的帧率(数据速率)。In step S204, the judging section 13 judges whether or not the frame rate (data rate) F satisfies the condition of being greater than or equal to Fmin and less than or equal to Fmax. That is, the judging section 13 judges whether or not the frame rate (data rate) F satisfies a prescribed range. Here, Fmin represents, for example, the minimum frame rate (data rate) at which the data recording device 1 can record or reproduce, and Fmax represents, for example, the maximum frame rate (data rate) at which the data recording device 1 can record or reproduce.

在判断为帧率(数据速率)F满足在Fmin以上且在Fmax以下这一条件时(步骤S204为Yes),处理进入步骤S205,在判断为帧率(数据速率)F不满足在Fmin以上且在Fmax以下这一条件时(步骤S204为No),处理进入步骤S206。When it is judged that the frame rate (data rate) F satisfies the condition of more than Fmin and less than Fmax (Yes in step S204), the process proceeds to step S205, and when it is judged that the frame rate (data rate) F does not satisfy the condition of more than Fmin and When the condition is equal to or less than Fmax (No in step S204), the process proceeds to step S206.

在步骤S205中,判断部分13选择第一时刻修正方法。In step S205, the judgment section 13 selects the first time correction method.

在步骤S206中,判断部分13选择第二时刻修正方法。In step S206, the judgment section 13 selects the second time correction method.

第一时刻修正方法和第二时刻修正方法的详细情况在后述部分进行说明。The details of the first time correction method and the second time correction method will be described later.

以下参照图3对时刻修正表21的一例进行说明。An example of the time correction table 21 will be described below with reference to FIG. 3 .

如图3所示,在时刻修正表21中将项目编号、变更前时刻、变更后时刻以及修正方法相关联地存储。As shown in FIG. 3 , in the time correction table 21 , an item number, a time before change, a time after change, and a correction method are stored in association with each other.

在项目编号栏中存储时钟修正管理部分15在时刻变更时发出的识别信息。In the item number column, identification information issued by the clock correction management section 15 when the time is changed is stored.

在变更前时刻栏中存储在时刻变更时从时钟部分12取得的时刻T0。The time T0 obtained from the clock section 12 at the time of the time change is stored in the column of the time before change.

在变更后时刻栏中存储在时刻变更时从未图示的输入装置作为时刻变更要求接收到的时刻Tnew。The time Tnew received as a time change request from an input device (not shown) at the time of time change is stored in the post-change time column.

在修正方法栏中存储由判断部分13选择的第一时刻修正方法和第二时刻修正方法中的任一种。Either one of the first time correction method and the second time correction method selected by the judging section 13 is stored in the correction method column.

图3所示的时刻修正表21的项目编号栏中的“1”表示第一次时刻变更,时刻从2013年1月22日的12时(变更前时刻)向后变更到了12时5分(变更后时刻)。项目编号栏中的“2”表示第二次时刻变更,时刻从2013年1月22日的13时5分(变更前时刻)向前变更到了13时(变更后时刻)。项目编号栏中的“3”表示第三次时刻变更,时刻从2013年1月22日的14时向前变更到了12时30分。此外,修正方法栏中的“第一”和“第二”表示由图2所示的处理流程选择出的时刻修正方法,“第一”表示第一时刻修正方法,“第二”表示第二时刻修正方法。"1" in the item number column of the time correction table 21 shown in Figure 3 indicates that the time was changed for the first time, and the time was changed from 12 o'clock on January 22, 2013 (time before the change) to 12 o'clock 5 minutes ( time after the change). The "2" in the item number column indicates the second time change, and the time has been changed from 13:05 on January 22, 2013 (time before the change) to 13:00 (time after the change). The "3" in the item number column indicates the third time change, and the time has been changed from 14:00 on January 22, 2013 to 12:30. In addition, "first" and "second" in the correction method column represent the time correction method selected by the processing flow shown in FIG. 2, "first" represents the first time correction method, and "second" represents the second time correction method. Always correct the method.

图4是第一时刻修正方法的说明图。横轴表示实际时刻,纵轴表示数据记录装置1的时钟部分12的时刻。FIG. 4 is an explanatory diagram of a first time correction method. The horizontal axis represents the actual time, and the vertical axis represents the time of the clock section 12 of the data recording device 1 .

在第一时刻修正方法中,在将时刻于本次时刻变更时从变更前时刻T0变更到了变更后时刻Tnew的情况,将在从前一次的时刻变更时的时刻Told起至变更前时刻T0为止的期间记录的记录数据上附加的时刻,和根据时刻变更量(Tnew-T0)(中空箭头的长度)与记录期间(T0-Told)的比算出的时刻修正量相加来计算修正后的时刻。也就是说,通过在从前一次的时刻变更时起至本次的时刻变更时为止的期间对在本次时刻变更时进行了修正的时段(时刻变更量(Tnew-T0)(中空箭头的长度))进行线性插补,由此来算出记录数据的时刻的修正时间(图4中的实心箭头所示的修正值)。作为一例,修正后的时刻Tb可以通过下式(1)算出。In the first time correction method, when the time is changed from the pre-change time T0 to the post-change time Tnew at the current time change, the time from the time Told at the previous time change to the pre-change time T0 The corrected time is calculated by adding the time added to the recording data recorded during the period to the time correction amount calculated from the ratio of the time change amount (Tnew-T0) (the length of the hollow arrow) to the recording period (T0-Told). In other words, the time period (time change amount (Tnew-T0) (length of the hollow arrow) corrected at the time of the current time change is calculated from the period from the time of the previous time change to the time of the current time change. ) to perform linear interpolation to calculate the correction time (the correction value indicated by the solid arrow in FIG. 4 ) at the time of recording data. As an example, the corrected time Tb can be calculated by the following equation (1).

Tb=(Tnew-T0)(Ta-Told)/(T0-Told)+Ta…式(1)Tb=(Tnew-T0)(Ta-Told)/(T0-Told)+Ta...Formula (1)

图5是第二时刻修正方法的说明图。横轴表示实际时刻,纵轴表示数据记录装置1的时钟部分12的时刻。FIG. 5 is an explanatory diagram of a second time correction method. The horizontal axis represents the actual time, and the vertical axis represents the time of the clock section 12 of the data recording device 1 .

在第二时刻修正方法中,在将时刻于本次时刻变更时从变更前时刻T0变更到了变更后时刻Tnew的情况下,将变更前时刻T0之前的所有的记录数据的时刻加上时刻变更量(Tnew-T0)(中空箭头的长度),由此来算出修正后的时刻。In the second time correction method, when the time is changed from the pre-change time T0 to the post-change time Tnew at the current time change, the time of all recorded data before the pre-change time T0 is added to the time change amount (Tnew-T0) (the length of the hollow arrow), from which the corrected time is calculated.

作为一例,修正后的时刻Tb可以通过下式(2)算出。As an example, the corrected time Tb can be calculated by the following equation (2).

Tb=(Tnew-T0)+Ta…式(2)Tb=(Tnew-T0)+Ta...Formula (2)

图6表示将记载在图3所示的时刻修正表21的信息标注在由实际时刻和数据记录装置的时刻表示的坐标上时的示例(适当参照图3)。FIG. 6 shows an example in which the information recorded in the time correction table 21 shown in FIG. 3 is marked on the coordinates indicated by the actual time and the time of the data recording device (see FIG. 3 as appropriate).

在项目编号栏的“1”的时刻变更中,由于使用第二时刻修正方法,所以将2013年1月22日12时之前的所有的记录数据均加上时间变化量(5分钟)。加上该时间变化量(5分钟)后的值以虚线61表示。In the time change of "1" in the item number column, since the second time correction method is used, all the recorded data before 12 o'clock on January 22, 2013 are added with a time change amount (5 minutes). The value obtained by adding this amount of time change (5 minutes) is indicated by a dotted line 61 .

此外,在项目编号栏的“2”的时刻变更中,由于使用第一时刻修正方法,所以相对于12时5分至13时5分之间的记录数据,采用式(1)算出修正后的时刻Tb。所算出的值以虚线62表示。In addition, in the time change of "2" in the item number column, since the first time correction method is used, with respect to the recorded data between 12:05 and 13:05, the corrected time is calculated using formula (1). Time Tb. The calculated value is indicated by a dotted line 62 .

在项目编号栏的“3”的时刻变更中,由于使用第二时刻修正方法,所以将14时前的所有的记录数据均减去时间变化量(90分钟)。所算出的值以虚线63表示。In the time change of "3" in the item number column, since the second time correction method is used, all the recorded data before 14:00 are subtracted by the time change amount (90 minutes). The calculated value is indicated by a dotted line 63 .

如上所述,本发明的数据记录装置1具有:存储部分20,该存储部分20存储时刻变更时的时刻;判断部分13,该判断部分13获取从本次时刻变更时起至前一次时刻变更时为止的记录数据的件数,将记录数据的件数除以从本次时刻变更时起至前一次时刻变更时为止的时间以计算数据速率,并且判断数据速率是否在规定的范围内;以及记录时刻修正部分16,在该判断部分13判断为数据速率在规定的范围内时,该记录时刻修正部分16执行第一时刻修正,在从前一次时刻变更时起至本次时刻变更时为止的期间,对在本次时刻变更时进行了修正的时段进行线性插补,由此算出记录数据的时刻的修正时间,并对该记录数据的时刻进行修正,在该判断部分13判断为数据速率在规定的范围以外时,该记录时刻修正部分16执行第二时刻修正,按照在本次时刻变更时进行了修正的时间来修正过去的记录数据的时刻。因此,数据记录装置1能够对数据的时间以能够按照记录顺序对所记录的时序数据进行再现的方式进行修正。As described above, the data recording device 1 of the present invention has: the storage part 20, which stores the time when the time is changed; The number of recorded data until now, divide the number of recorded data by the time from the current time change to the previous time change to calculate the data rate, and determine whether the data rate is within the specified range; and record time correction Part 16, when the judging part 13 judges that the data rate is within the specified range, the recording time correction part 16 executes the first time correction, and during the period from the previous time change to the current time change, The time period corrected at the time of this time change is linearly interpolated, thereby calculating the corrected time of the recorded data time, and correcting the recorded data time, and the judging section 13 judges that the data rate is outside the prescribed range. , the recording time correction section 16 executes the second time correction, and corrects the time of the past record data according to the time corrected when the current time is changed. Therefore, the data recording device 1 can correct the data time so that the recorded time-series data can be reproduced in the recording order.

本发明不受上述实施例的限定,可以包括各种变形例。例如,上述实施例用于以简单易懂的方式对本发明进行详细的说明,但并不意味本发明必须具有所有进行过说明的结构。此外,可以将某一个实施方式的一部分结构取代为其他的实施方式的结构,也可以将其他的实施方式的结构追加到某一个实施方式的结构中。另外,可以用其他结构对实施方式的一部分结构进行追加、删除和取代。The present invention is not limited to the above-described embodiments, and various modifications may be included. For example, the above-mentioned embodiments are used to explain the present invention in detail in an easy-to-understand manner, but it does not mean that the present invention must have all the explained structures. In addition, a part of the structure of one embodiment may be substituted with the structure of another embodiment, and the structure of another embodiment may be added to the structure of one embodiment. In addition, it is possible to add, delete, or replace a part of the configurations of the embodiments with other configurations.

数据记录装置1的各种功能等的一部分或者全部例如可以通过在集成电路进行设计等而由硬件来实现。此外,处理部分10的各种功能等也可以通过由处理器解释和执行用于实现各种功能的程序而由软件来实现。用于实现各种功能的程序、图表和文件等信息可以存储在存储器、硬盘、SSD(SolidState Drive,固态驱动器)等的记录装置或者IC卡、SD卡和DVD(DigitalVersatile Disc,数字多功能光盘)等记录介质中。Some or all of the various functions of the data recording device 1 can be realized by hardware by designing an integrated circuit or the like, for example. In addition, various functions and the like of the processing section 10 can also be realized by software by interpreting and executing programs for realizing various functions by a processor. Information such as programs, charts, and files used to realize various functions can be stored in recording devices such as memory, hard disk, SSD (Solid State Drive, Solid State Drive), or IC card, SD card, and DVD (Digital Versatile Disc, Digital Versatile Disc) and other recording media.

此外,控制线和信息线只示出了为了进行说明而需要示出的部分,并不意味示出了产品的所有的控制线和信息线。可以认为实际上几乎所有的构件均彼此相关且进行了连接。In addition, the control lines and information lines only show the parts that need to be shown for explanation, and do not mean to show all the control lines and information lines of the product. It can be considered that practically all components are related and connected to each other.

符号说明Symbol Description

1  数据记录装置1 data recording device

2  监视对象装置2 Monitoring target device

3  网络3 network

10  处理部分10 processing part

11  时钟修正部分11 Clock correction part

12  时钟部分12 clock section

13  判断部分13 Judgment part

14  数据收集部分14 Data Collection Section

15  时刻修正管理部分15 time correction management part

16  记录时刻修正部分16 Recording time correction part

20  存储部分20 Storage section

21  时刻修正表21 Time correction table

30  通信部分30 Communication section

Claims (4)

1.一种数据记录装置,其特征在于,具有:1. A data recording device, characterized in that it has: 存储部分,所述存储部分存储时刻变更时的时刻;a storage part that stores the time when the time is changed; 判断部分,所述判断部分获取从本次时刻变更时起至前一次时刻变更时为止的记录数据的件数,将所述记录数据的件数除以从所述本次时刻变更时起至所述前一次时刻变更时为止的时间来计算数据速率,并且判断所述数据速率是否在规定的范围内;以及a judging part, the judging part acquires the number of pieces of recorded data from the time of the current time change to the time of the previous time change, and divides the number of pieces of recorded data by Calculate the data rate from the time until a time change, and determine whether the data rate is within a specified range; and 记录时刻修正部分,所述记录时刻修正部分根据所述判断部分的判断结果执行第一时刻修正和第二时刻修正中的任一个时刻修正,在所述第一时刻修正中,在从所述前一次时刻变更时起至所述本次时刻变更时为止的期间,对在所述本次时刻变更时进行了修正的时段进行线性插补,由此算出所述记录数据的时刻的修正时间,并对该记录数据的时刻进行修正,在所述第二时刻修正中,按照在所述本次时刻变更时进行了修正的时间来修正过去的所述记录数据的时刻。A recording time correction section that executes any one of a first time correction and a second time correction based on the judgment result of the judgment section, in the first time correction, after the previous performing linear interpolation on the period of time corrected at the time of the current time change in the period from the time of the first time change to the time of the current time change, thereby calculating the correction time of the time of the recorded data, and The time of the recorded data is corrected, and in the second time correction, the past time of the recorded data is corrected according to the time corrected at the time of the current time change. 2.如权利要求1所述的数据记录装置,其特征在于,2. The data recording device according to claim 1, wherein: 在所述判断部分判断为所述数据速率在所述规定的范围内时,所述记录时刻修正部分执行所述第一时刻修正,而在所述判断部分判断为所述数据速率在所述规定的范围以外时,所述记录时刻修正部分执行所述第二时刻修正。When the judging section judges that the data rate is within the prescribed range, the recording time correcting section executes the first time correction, and when the judging section judges that the data rate is within the prescribed When it is out of the range, the recording time correction unit executes the second time correction. 3.一种时刻修正方法,是将记录数据与时刻一起记录的数据记录装置的时刻修正方法,其特征在于,3. A time correction method, which is a time correction method of a data recording device that records recorded data together with time, characterized in that, 所述数据记录装置具有存储时刻变更时的时刻的存储部分,The data recording device has a storage unit for storing the time when the time is changed, 所述时刻修正方法包括判断步骤和记录时刻修正步骤,The time correction method includes a judging step and a recording time correction step, 在所述判断步骤中,获取从本次时刻变更时起至前一次时刻变更时为止的记录数据的件数,将所述记录数据的件数除以从所述本次时刻变更时起至所述前一次时刻变更时为止的时间以计算数据速率,并且判断所述数据速率是否在规定的范围内,以及In the judging step, the number of pieces of recorded data from the current time change to the previous time change is obtained, and the number of recorded data is divided by the number of records from the current time change to the previous time. the time until the time of a time change to calculate the data rate and determine whether the data rate is within the specified range, and 在记录时刻修正步骤中,根据所述判断步骤的判断结果执行第一时刻修正和第二时刻修正中的任一个时刻修正,在所述第一时刻修正中,在从所述前一次时刻变更时起至所述本次时刻变更时为止的期间,对在所述本次时刻变更时进行了修正的时段进行线性插补,由此算出所述记录数据的时刻的修正时间,并对该记录数据的时刻进行修正,在所述第二时刻修正中,按照在所述本次时刻变更时进行了修正的时间来修正过去的所述记录数据的时刻。In the record time correction step, any one of the first time correction and the second time correction is executed according to the judgment result of the judgment step, and in the first time correction, when the time is changed from the previous time During the period from when the current time is changed, linear interpolation is performed on the time period corrected when the current time is changed, thereby calculating the corrected time of the time of the recorded data, and the recorded data In the second time correction, the past time of the recorded data is corrected according to the time corrected when the current time is changed. 4.如权利要求3所述的时刻修正方法,其特征在于,4. The time correction method according to claim 3, wherein: 在所述记录时刻修正步骤中,当在所述判断步骤中判断为所述数据速率在所述规定的范围内时,执行所述第一时刻修正,而在所述判断步骤中判断为所述数据速率在所述规定的范围以外时,执行所述第二时刻修正。In the recording time correcting step, when it is determined in the determining step that the data rate is within the predetermined range, the first time correction is performed, and in the determining step it is determined that the When the data rate is out of the predetermined range, the second time correction is performed.
CN201410201256.9A 2013-05-16 2014-05-13 Data recording device and correction method Pending CN104166424A (en)

Applications Claiming Priority (2)

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

Publications (1)

Publication Number Publication Date
CN104166424A true CN104166424A (en) 2014-11-26

Family

ID=51910284

Family Applications (1)

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

Country Status (2)

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

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110087137A (en) * 2018-01-26 2019-08-02 龙芯中科技术有限公司 Acquisition methods, device, equipment and the medium of video playing frame information
CN111225251A (en) * 2018-11-27 2020-06-02 深圳Tcl数字技术有限公司 Method, storage medium and equipment for obtaining EPG (electronic program guide) by self-adaptive matching of time

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101076102A (en) * 2006-05-17 2007-11-21 Lg电子株式会社 Time reconciliation for image recording devices
CN101212619A (en) * 2006-12-29 2008-07-02 上海乐金广电电子有限公司 Data recording method and data searching method
US7751681B2 (en) * 2002-02-14 2010-07-06 Sharp Kabushiki Kaisha Time-series data recording device and time-series data recording method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7751681B2 (en) * 2002-02-14 2010-07-06 Sharp Kabushiki Kaisha Time-series data recording device and time-series data recording method
CN101076102A (en) * 2006-05-17 2007-11-21 Lg电子株式会社 Time reconciliation for image recording devices
CN101212619A (en) * 2006-12-29 2008-07-02 上海乐金广电电子有限公司 Data recording method and data searching method

Cited By (3)

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

Also Published As

Publication number Publication date
JP2014225107A (en) 2014-12-04

Similar Documents

Publication Publication Date Title
US8238207B2 (en) Device and method for reproducing digital signal and device and method for recording digital signal
US11379836B2 (en) Methods and systems for recording data based on plurality of blockchain networks
JP2009055335A5 (en)
US11500861B2 (en) Methods and systems for recording data based on plurality of blockchain networks
CN110210807A (en) Stock-taking method, equipment and storage medium
JP2016082546A (en) Image processing device and image processing method
CN100559852C (en) Method and device for recording audio/video signals
US10452577B2 (en) Recording apparatus, control method, and storage medium
CN104166424A (en) Data recording device and correction method
CN107392983B (en) A method and system for recording animation
CN103269460B (en) A kind of audio-video document duration calculation device and method
US20100189130A1 (en) Data processing apparatus and method and encoding device
US10819896B1 (en) Computer readable recording medium can perform image sensing system control method and image sensing system
JP2010183248A (en) Moving image recording device
US9363465B2 (en) Data processing apparatus and data processing method
JP2017068434A (en) Subject evaluation system, subject evaluation method, subject evaluation program, and recording medium storing the program
US20210157787A1 (en) Methods and systems for reading data based on plurality of blockchain networks
JP2015142178A (en) Recorder, imaging apparatus, control method of recorder, and program
CN114205628B (en) MP4 file coding method, device and system
KR101637022B1 (en) Apparatus and method for transmitting and receiving content
CN114637699B (en) Audio caching method, device, microphone device, electronic device and storage medium
CN112702511B (en) Method and device for outputting video
JP5075932B2 (en) Bit rate setting device
CN119537450A (en) Method, system and computer readable medium for data playback
CN117082269A (en) Interactive node adjustment method and device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
ASS Succession or assignment of patent right

Owner name: HITACHI INDUSTRIAL CONTROL SOLUTIONS LTD.

Free format text: FORMER OWNER: HITACHI,LTD.

Effective date: 20141114

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20141114

Address after: Hitachi County of Ibaraki City, Japan

Applicant after: HITACHI INDUSTRY AND CONTROL SOLUTIONS, LTD.

Address before: Tokyo, Japan, Japan

Applicant before: Hitachi Ltd.

C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20141126