JP6953735B2 - Information processing equipment, information processing system, information processing method and information processing program - Google Patents

Information processing equipment, information processing system, information processing method and information processing program Download PDF

Info

Publication number
JP6953735B2
JP6953735B2 JP2017026579A JP2017026579A JP6953735B2 JP 6953735 B2 JP6953735 B2 JP 6953735B2 JP 2017026579 A JP2017026579 A JP 2017026579A JP 2017026579 A JP2017026579 A JP 2017026579A JP 6953735 B2 JP6953735 B2 JP 6953735B2
Authority
JP
Japan
Prior art keywords
time
period
estimated
information processing
parameter
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.)
Active
Application number
JP2017026579A
Other languages
Japanese (ja)
Other versions
JP2017188876A (en
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to US15/475,561 priority Critical patent/US10191509B2/en
Publication of JP2017188876A publication Critical patent/JP2017188876A/en
Application granted granted Critical
Publication of JP6953735B2 publication Critical patent/JP6953735B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、外部機器で付された記録時刻を補正する技術に関する。 The present invention relates to a technique for correcting a recording time attached by an external device.

例えば加速度センサを備えたウエアラブル型装置では、人の動きを検出する場合に計測した加速度の値にタイムスタンプを付す。そして、データ収集装置で、タイムスタンプが付された計測メッセージを収集して、人の行動を推定することがある。 For example, in a wearable device equipped with an acceleration sensor, a time stamp is attached to the value of acceleration measured when detecting the movement of a person. Then, a data collecting device may collect time-stamped measurement messages to estimate human behavior.

例えば、一人が複数のウエアラブル型装置を装着し、腕と足の連動を観測しようとする場合、各ウエアラブル型装置で付したタイムスタンプが同じ時計基準に合っていなければ、正しく行動を推定することができない。 For example, when one person wears multiple wearable devices and tries to observe the interlocking of arms and legs, if the time stamps attached to each wearable device do not meet the same watch standard, the behavior should be estimated correctly. I can't.

ウエアラブル型装置で付したタイムスタンプをデータ収集装置におけるシステム時計の基準に合わせようとする場合、ウエアラブル型装置のローカル時計の誤差の他、データ収集装置で生じる誤差も障害となる。 When trying to match the time stamp given by the wearable device with the standard of the system clock in the data collection device, not only the error of the local clock of the wearable device but also the error generated by the data collection device becomes an obstacle.

特開2010−164346号公報JP-A-2010-164346 特開2007−027985号公報Japanese Unexamined Patent Publication No. 2007-027985 特開2007−258800号公報JP-A-2007-258800

本発明の目的は、一側面では、外部機器で付された記録時刻を、より正しく自らの時計基準の推定時刻に改めることである。 An object of the present invention is, on the one hand, to more accurately change the recording time set by an external device to the estimated time based on the own clock.

一態様に係る情報処理装置は、(A)外部機器が送信してから変動遅延を伴って到達する第1時計基準の記録時刻を含むデータの当該記録時刻の各々について、当該記録時刻を第2時計基準で改めた推定時刻を算出する第1算出部と、(B)記録時刻の各々について、当該記録時刻を改めた推定時刻と、当該記録時刻を含むデータが到達した第2時計基準の読取時刻との時刻差を算出する第2算出部と、(C)2以上の期間の各々における最小の時刻差に基づいて、推定時刻の算出に用いられるパラメータを算出する第3算出部とを有する。 The information processing apparatus according to one aspect sets the recording time for each of the recording times of the data including the recording time of the first clock reference that arrives with a fluctuation delay after being transmitted by the external device (A). For each of the first calculation unit that calculates the estimated time revised by the clock reference and (B) the recording time, the estimated time that the recording time is revised and the reading of the second clock reference that the data including the recording time has arrived. It has a second calculation unit that calculates the time difference from the time, and (C) a third calculation unit that calculates the parameters used to calculate the estimated time based on the minimum time difference in each of the two or more periods. ..

一側面としては、外部機器で付された記録時刻を、より正しく自らの時計基準の推定時刻に改めることができる。 On one side, it is possible to more accurately change the recorded time set by an external device to the estimated time based on its own clock.

図1は、外部機器におけるシーケンス例を示す図である。FIG. 1 is a diagram showing a sequence example in an external device. 図2は、データ収集装置におけるシーケンス例を示す図である。FIG. 2 is a diagram showing a sequence example in the data collection device. 図3は、タイムスタンプ付き計測メッセージの読み取りに係るタイムチャートである。FIG. 3 is a time chart related to reading a measurement message with a time stamp. 図4は、期間の例を示す図である。FIG. 4 is a diagram showing an example of a period. 図5は、各時刻の関係を示す図である。FIG. 5 is a diagram showing the relationship between each time. 図6は、最小の時刻差を示す図である。FIG. 6 is a diagram showing the minimum time difference. 図7は、ずれ時間の補正を説明するための図である。FIG. 7 is a diagram for explaining the correction of the deviation time. 図8は、推定経過時間を説明するための図である。FIG. 8 is a diagram for explaining the estimated elapsed time. 図9は、データ収集装置における動作のステップを示す図である。FIG. 9 is a diagram showing steps of operation in the data acquisition device. 図10は、時刻推定の第2ステップ以降の概要を示す図である。FIG. 10 is a diagram showing an outline of the second and subsequent steps of time estimation. 図11は、更新ステップの概要を示す図である。FIG. 11 is a diagram showing an outline of the update step. 図12は、時刻推定の第1ステップの概要を示す図である。FIG. 12 is a diagram showing an outline of the first step of time estimation. 図13は、データ収集装置のモジュール構成例を示す図である。FIG. 13 is a diagram showing a module configuration example of the data collection device. 図14は、メイン処理(A)フローを示す図である。FIG. 14 is a diagram showing a main processing (A) flow. 図15は、第1初期設定処理フローを示す図である。FIG. 15 is a diagram showing a first initial setting processing flow. 図16は、取得処理(A)フローを示す図である。FIG. 16 is a diagram showing an acquisition process (A) flow. 図17は、第1算出処理フローを示す図である。FIG. 17 is a diagram showing a first calculation processing flow. 図18は、第2算出処理フローを示す図である。FIG. 18 is a diagram showing a second calculation processing flow. 図19は、更新処理フローを示す図である。FIG. 19 is a diagram showing an update processing flow. 図20は、第2時刻及び推定時刻の推移例を示す図である。FIG. 20 is a diagram showing a transition example of the second time and the estimated time. 図21は、時刻差及び滞留遅延の推移例を示す図である。FIG. 21 is a diagram showing a transition example of the time difference and the residence delay. 図22は、第2時刻及び推定時刻の推移例を示す図である。FIG. 22 is a diagram showing a transition example of the second time and the estimated time. 図23は、時刻差及び滞留遅延の推移例を示す図である。FIG. 23 is a diagram showing a transition example of the time difference and the residence delay. 図24は、第2時刻及び推定時刻の推移例を示す図である。FIG. 24 is a diagram showing a transition example of the second time and the estimated time. 図25は、パラメータの関係を示す図である。FIG. 25 is a diagram showing the relationship between the parameters. 図26は、推定パラメータを適用する処理概要を示す図である。FIG. 26 is a diagram showing an outline of processing to which the estimation parameters are applied. 図27は、推定パラメータが適正である場合の処理概要を示す図である。FIG. 27 is a diagram showing an outline of processing when the estimation parameters are appropriate. 図28は、推定パラメータが不適である場合の処理概要を示す図である。FIG. 28 is a diagram showing an outline of processing when the estimation parameters are inappropriate. 図29は、期間短縮の概要を示す図である。FIG. 29 is a diagram showing an outline of shortening the period. 図30は、データ収集装置のモジュール構成例を示す図である。FIG. 30 is a diagram showing a module configuration example of the data collection device. 図31は、時刻テーブルの例を示す図である。FIG. 31 is a diagram showing an example of a time table. 図32は、期間タイプテーブルの例を示す図である。FIG. 32 is a diagram showing an example of a period type table. 図33は、回数テーブルの例を示す図である。FIG. 33 is a diagram showing an example of a number-of-times table. 図34は、メイン処理(B)フローを示す図である。FIG. 34 is a diagram showing a main processing (B) flow. 図35は、取得処理(B)フローを示す図である。FIG. 35 is a diagram showing an acquisition process (B) flow. 図36は、初期処理(A)フローを示す図である。FIG. 36 is a diagram showing an initial processing (A) flow. 図37は、推定パラメータの算出処理(A)フローを示す図である。FIG. 37 is a diagram showing a flow of calculation processing (A) of estimated parameters. 図38は、初期処理(A)フローを示す図である。FIG. 38 is a diagram showing an initial processing (A) flow. 図39は、推定パラメータの適否判定処理(A)フローを示す図である。FIG. 39 is a diagram showing a flow of the suitability determination process (A) of the estimation parameter. 図40は、推定パラメータの適否判定処理(B)フローを示す図である。FIG. 40 is a diagram showing a flow of conformity determination processing (B) for estimation parameters. 図41は、推定パラメータの適否判定処理(B)の概要を示す図である。FIG. 41 is a diagram showing an outline of the suitability determination process (B) of the estimation parameter. 図42は、継続処理(A)フローを示す図である。FIG. 42 is a diagram showing a continuous processing (A) flow. 図43は、継続処理(A)フローを示す図である。FIG. 43 is a diagram showing a continuous processing (A) flow. 図44は、短縮判定処理フローを示す図である。FIG. 44 is a diagram showing a shortening determination processing flow. 図45は、推定パラメータの算出処理(B)フローを示す図である。FIG. 45 is a diagram showing a flow of calculation processing (B) of estimated parameters. 図46は、収束判定処理フローを示す図である。FIG. 46 is a diagram showing a convergence test processing flow. 図47は、推定パラメータの算出処理(B)フローを示す図である。FIG. 47 is a diagram showing a flow of calculation processing (B) of estimated parameters. 図48は、実施の形態4の概要を示す図である。FIG. 48 is a diagram showing an outline of the fourth embodiment. 図49は、取得処理(C)フローを示す図である。FIG. 49 is a diagram showing an acquisition process (C) flow. 図50は、初期処理(B)フローを示す図である。FIG. 50 is a diagram showing an initial processing (B) flow. 図51は、初期処理(B)フローを示す図である。FIG. 51 is a diagram showing an initial processing (B) flow. 図52は、継続処理(B)フローを示す図である。FIG. 52 is a diagram showing a continuous processing (B) flow. 図53は、継続処理(B)フローを示す図である。FIG. 53 is a diagram showing a continuous processing (B) flow. 図54は、実施の形態7の概要を示す図である。FIG. 54 is a diagram showing an outline of the seventh embodiment. 図55は、実施の形態7の概要を示す図である。FIG. 55 is a diagram showing an outline of the seventh embodiment. 図56は、コンピュータの機能ブロック図である。FIG. 56 is a functional block diagram of the computer.

[実施の形態1]
外部機器101は、例えばユーザの腕や足に装着し、加速度を検出する装置である。外部機器101のハードウエアは、従来技術による。外部機器101は、例えば簡易時計(クロックカウンタ)、プロセッサ、メモリ及びセンサ等を有する。
[Embodiment 1]
The external device 101 is, for example, a device that is attached to a user's arm or foot to detect acceleration. The hardware of the external device 101 is based on the prior art. The external device 101 includes, for example, a simple clock (clock counter), a processor, a memory, a sensor, and the like.

図1に、外部機器101におけるシーケンス例を示す。外部機器101は、計測部103、付加部105、ローカル時計107及び送信部109を有する。この例では、ローカル時計107は、安価な基準発振器を使用するために必ずしも精度が高くないものと想定する。例えば水晶発振器の周波数偏差による時刻の進み/遅れが生じ、このような発振器の周波数偏差は、温度や内部電圧の影響を受けて変動する。また、時刻の進み/遅れが累積された時刻誤差や、機器起動時に時刻合わせを行う機能を持たないことによる時刻誤差が生じる。 FIG. 1 shows an example of a sequence in the external device 101. The external device 101 includes a measuring unit 103, an additional unit 105, a local clock 107, and a transmitting unit 109. In this example, it is assumed that the local clock 107 is not necessarily highly accurate due to the use of an inexpensive reference oscillator. For example, the time advance / delay occurs due to the frequency deviation of the crystal oscillator, and the frequency deviation of such an oscillator fluctuates under the influence of temperature and internal voltage. In addition, a time error in which the advance / delay of the time is accumulated and a time error due to not having the function of adjusting the time when the device is started occur.

計測部103が、例えば加速度センサを用いて計測を行う(S121)。付加部105は、計測データを得ると、ローカル時計107から第1時刻(パラメータtlで表す。)を取得する。そして、付加部105は、計測データにタイムスタンプ(第1時刻)を付加する(S123)。上述したように、第1時刻はローカル誤差を含んでいるので、正しい計測時刻を指しているとは限らない。 The measuring unit 103 measures using, for example, an acceleration sensor (S121). When the additional unit 105 obtains the measurement data, the additional unit 105 acquires the first time (represented by the parameter tl) from the local clock 107. Then, the addition unit 105 adds a time stamp (first time) to the measurement data (S123). As described above, since the first time includes a local error, it does not always indicate the correct measurement time.

送信部109は、タイムスタンプ付き計測メッセージをデータ収集装置201へ送信する(S125)。この例では、近距離無線手段を用いてメッセージを送信するものとする。この例で、通信に伴う固定遅延(通信環境や機器の動作状態が理想的であっても生じる最小の遅延)は無視でき、或いは一律に補正できるものとする。また、通信に伴う変動遅延は、後記滞留遅延に含めて扱うことが出来る。 The transmission unit 109 transmits a time-stamped measurement message to the data collection device 201 (S125). In this example, it is assumed that the message is transmitted by using short-range wireless means. In this example, the fixed delay associated with communication (the minimum delay that occurs even if the communication environment and the operating state of the device are ideal) can be ignored or can be corrected uniformly. In addition, the fluctuation delay associated with communication can be included in the retention delay described later.

図2に、データ収集装置201におけるシーケンス例を示す。データ収集装置201は、例えばノード型パソコンのようなコンピュータである。データ収集装置201は、スマートフォンなどの携帯型の装置であってもよい。データ収集装置201は、オペレーティングシステム203、アプリケーションプログラム205、受信部207、バッファ209及びシステム時計211を有している。システム時計211は精度が高く、システム時計211が示す第2時刻(パラメータtsで表す。)は絶対時刻と一致するものと想定する。但し、複数の外部機器101のデータを1つのデータ収集装置201で収集し、これらのデータ間の時刻同期のみを目的とする場合は、システム時計211の精度は低くても構わない。 FIG. 2 shows a sequence example in the data collection device 201. The data collection device 201 is a computer such as a node-type personal computer, for example. The data collection device 201 may be a portable device such as a smartphone. The data collection device 201 includes an operating system 203, an application program 205, a receiver 207, a buffer 209, and a system clock 211. It is assumed that the system clock 211 has high accuracy and that the second time (represented by the parameter ts) indicated by the system clock 211 coincides with the absolute time. However, when the data of a plurality of external devices 101 are collected by one data collecting device 201 and the purpose is only to synchronize the time between these data, the accuracy of the system clock 211 may be low.

オペレーティングシステム203は、アプリケーションプログラム205に対するCPUリソースの割り当てを解除している(S221)。この状態で受信部207がタイムスタンプ付き計測メッセージを受信すると(S223)、タイムスタンプ付き計測メッセージはバッファ209に格納される。 The operating system 203 has released the allocation of the CPU resource to the application program 205 (S221). When the receiving unit 207 receives the time-stamped measurement message in this state (S223), the time-stamped measurement message is stored in the buffer 209.

アプリケーションプログラム205は、CPUリソースが割り当てられていないので、タイムスタンプ付き計測メッセージを読み取れない。その後、オペレーティングシステム203がアプリケーションプログラム205へCPUリソースを割り当てると(S225)、アプリケーションプログラム205は、バッファ209からタイムスタンプ付き計測メッセージを読み取る。アプリケーションプログラム205は、更にシステム時計211から第2時刻を取得して、タイムスタンプ付き計測メッセージに第2時刻を対応付ける(S227)。タイムスタンプ付き計測メッセージがバッファ209に格納されてから、アプリケーションプログラム205によって読み取られ、第2時刻と対応付けられるまでの時間は、滞留遅延に相当する。 Since the application program 205 is not allocated CPU resources, it cannot read the time-stamped measurement message. After that, when the operating system 203 allocates the CPU resource to the application program 205 (S225), the application program 205 reads the time-stamped measurement message from the buffer 209. The application program 205 further acquires the second time from the system clock 211 and associates the second time with the time-stamped measurement message (S227). The time from when the time-stamped measurement message is stored in the buffer 209 until it is read by the application program 205 and associated with the second time corresponds to a residence delay.

滞留遅延について補足する。図3に、タイムスタンプ付き計測メッセージの読み取りに係るタイムチャートを示す。CPUリソースの割り当て(S301)から当該割り当ての解除(S303)までの間にバッファ209に格納されたタイムスタンプ付き計測メッセージは、アプリケーションプログラム205によって即時読み取られる。よって、CPUリソース割当て機会と、タイムスタンプ付き計測メッセージの受信機会が充分に有れば、双方に相関は無いので滞留遅延が充分に小さい機会が得られる。一方、CPUリソースが割り当てられていない状態でバッファ209に格納されたタイムスタンプ付き計測メッセージは、滞留する。そして、アプリケーションプログラム205にCPUリソースが割り当てられた時点で(S305)、一斉に読み取られる。このように、滞留遅延は一律ではない。 Supplementary information on retention delay. FIG. 3 shows a time chart related to reading a measurement message with a time stamp. The time-stamped measurement message stored in the buffer 209 between the allocation of the CPU resource (S301) and the release of the allocation (S303) is immediately read by the application program 205. Therefore, if there is a sufficient opportunity to allocate the CPU resource and an opportunity to receive the measurement message with a time stamp, there is no correlation between the two, so that an opportunity to have a sufficiently small retention delay can be obtained. On the other hand, the time-stamped measurement message stored in the buffer 209 in a state where the CPU resource is not allocated is retained. Then, when the CPU resource is allocated to the application program 205 (S305), the CPU resources are read all at once. Thus, the retention delay is not uniform.

本実施の形態では、期間を設定して処理を行う。図4に、期間の例を示す。各期間において少なくとも一度はタイムスタンプ付き計測メッセージを受信した直後にCPUリソースが割り当てられ、かつ外部機器101の温度や内部電圧の変動がその期間内では微小とみなせるように、期間の長さ(パラメータTで表す。)を定める。尚、以降の説明で処理対象となっている期間を現期間といい、記号Cjで表す。また、現期間の直前の期間を前期間といい、記号Cj-1で表す。 In the present embodiment, processing is performed by setting a period. FIG. 4 shows an example of the period. The length of the period (parameter) so that CPU resources are allocated immediately after receiving the time-stamped measurement message at least once in each period, and fluctuations in the temperature and internal voltage of the external device 101 can be regarded as minute within that period. (Represented by T) is determined. The period to be processed in the following description is referred to as the current period and is represented by the symbol C j. The period immediately before the current period is called the previous period and is represented by the symbol C j-1.

図5に、各時刻の関係を示す。左側から順に、第1時刻、推定時刻(パラメータteで表す。)、真の計測時刻(パラメータtで表す。)及び第2時刻を示す。下に向かって時間が経過するものとする。真の計測時刻は、第1時刻に含まれるローカル誤差を解消してデータ収集装置201の基準で改めた時刻である。推定時刻は、アプリケーションプログラム205が第1時刻と第2時刻とに基づいて、真の計測時刻を推定した時刻である。そして、推定時刻と真の計測時刻との差を、推定誤差という。当初の推定時刻は、必ずしも真の計測時刻に近くない。 FIG. 5 shows the relationship between each time. From the left side, the first time, the estimated time (represented by the parameter te), the true measurement time (represented by the parameter t), and the second time are shown. Time shall elapse downward. The true measurement time is a time that has been revised based on the data collection device 201 by eliminating the local error included in the first time. The estimated time is the time when the application program 205 estimates the true measured time based on the first time and the second time. The difference between the estimated time and the true measured time is called the estimation error. The initial estimated time is not always close to the true measured time.

本実施の形態では、推定時刻を算出するステップを繰り返す過程で、推定誤差が0に近づくようにする。当該ステップにおいて、推定時刻と第2時刻との時刻差(パラメータdtで表す。)を算出する。 In the present embodiment, the estimation error approaches 0 in the process of repeating the step of calculating the estimated time. In this step, the time difference between the estimated time and the second time (expressed by the parameter dt) is calculated.

図6に、滞留遅延が無い場合の例を示す。滞留遅延が無い場合には、時刻差は、推定誤差に相当する。また、このときの時刻差は、当該期間(この例では、説明の便宜のため前期間Cj-1とする。)において算出される時刻差のうち、最小値を示す。従って、期間内における最小の時刻差(パラメータdtminで表す。)を特定すれば、その瞬間の推定誤差を求めたことになる。 FIG. 6 shows an example when there is no retention delay. If there is no retention delay, the time difference corresponds to the estimation error. Further, the time difference at this time indicates the minimum value among the time differences calculated in the relevant period (in this example, the previous period C j-1 is used for convenience of explanation). Therefore, if the minimum time difference within the period ( expressed by the parameter dt min ) is specified, the estimation error at that moment is obtained.

図5及び図6に示した前期間Cj-1から現期間Cjに移ったものとして、図7を用いてずれ時間の補正について説明する。現期間Cjに移った時点で前期間Cj-1の最小の時刻差が特定される。ここで、前期間Cj-1と現期間Cjにおいて、ローカル時計の周波数偏差が0である(またはシステム時計の周波数偏差と等しい)と仮定すると、特定された最小の時刻差は現期間Cjにおけるずれ時間とも等しいため、前期間Cj-1の最小の時刻差を現期間Cjで用いられるずれ時間(パラメータtgjで表す。)に定められる。そして、現期間Cjにおいて推定時刻を算出する場合に、当該ずれ時間を解消するための補正を行う。このようにすれば、前記仮定の下であれば、推定誤差はほぼ0となる。尚、実際にはローカル時計の周波数偏差は0ではないが、後記ローカル誤差の変化率の補正と本過程を繰り返すことで、前記仮定が成り立っていると見做せるようになる。また、図7に示したずれ時間tgjは、負の値であるものとする。 Assuming that the previous period C j-1 shown in FIGS. 5 and 6 has shifted to the current period C j , the correction of the deviation time will be described with reference to FIG. At the time of moving to the current period C j , the minimum time difference of the previous period C j-1 is specified. Here, assuming that the frequency deviation of the local clock is 0 (or equal to the frequency deviation of the system clock) in the previous period C j-1 and the current period C j, the specified minimum time difference is the current period C. Since it is equal to the deviation time in j, the minimum time difference in the previous period C j-1 is defined as the deviation time ( expressed by the parameter tg j ) used in the current period C j. Then, when the estimated time is calculated in the current period C j , a correction is made to eliminate the deviation time. In this way, under the above assumption, the estimation error becomes almost zero. Although the frequency deviation of the local clock is not actually 0, it can be considered that the above assumption holds by repeating the correction of the rate of change of the local error and this process described later. Further, it is assumed that the deviation time tg j shown in FIG. 7 is a negative value.

前期間Cj-1において特定された誤差は以上のように解消される。一方、ローカル時計の周波数偏差により、ローカル誤差は、時間経過に従い一定の割合で増加或いは減少することがある。本実施の形態では、このような誤差の変化分についても補正を行う。尚、ローカル時計の周波数偏差、即ちこの誤差の変化分の変化率は外部機器101の温度や内部電圧により変動するが、この変動は緩慢であり、期間の長さTをこの変動率に対し充分に短く定めている為、この過程では影響が微小となる。図8に示すように、i回目の推定時刻は、現期間Cjにおける1回目の推定時刻(パラメータte1で表す。)に現期間Cjにおけるi回目の推定経過時間(パラメータdteiで表す。)を加えることによって求められる。 The error specified in the previous period C j-1 is eliminated as described above. On the other hand, due to the frequency deviation of the local clock, the local error may increase or decrease at a constant rate with the passage of time. In the present embodiment, the amount of change in such an error is also corrected. The frequency deviation of the local clock, that is, the rate of change of this error varies depending on the temperature and internal voltage of the external device 101, but this variation is slow, and the length T of the period is sufficient for this rate of variation. Since it is set to be short, the effect is small in this process. As shown in FIG. 8, the i-th estimation time is represented in the current period C j (indicated by a parameter te 1.) 1 st estimated time at the i-th estimated elapsed time in the current period C j (parameter dte i .) Is added.

i回目の推定経過時間は、現期間Cjにおけるi回目の第1時刻と1回目の第1時刻との第1時刻差(パラメータdtlで表す。)を、補正比(1+df)で除することによって求められる。1/(1+df)は、ローカル誤差の変化率であり、dfはローカル時計の周波数偏差である。 i-th estimated elapsed time, dividing the first time difference between the first time and the first time of the first time of the i-th in the current period C j (indicated by a parameter dtl.) The correction ratio (1 + df) Demanded by. 1 / (1 + df) is the rate of change of the local error, and df is the frequency deviation of the local clock.

図9に、データ収集装置201における動作のステップを示す。第1期間の初期設定ステップでは、暫定的にずれ時間(tg1)及び周波数偏差(df1)を設定する。この例で、第1期間のn1回の時刻推定においてずれ時間(tg1)及び周波数偏差(df1)が用いられる。 FIG. 9 shows the steps of operation in the data collection device 201. In the initial setting step of the first period, the deviation time (tg 1 ) and the frequency deviation (df 1 ) are tentatively set. In this example, the shift time (tg 1 ) and frequency deviation (df 1 ) are used in the n 1 time estimation of the first period.

第2期間の更新ステップでは、第1期間における算出結果を反映して、ずれ時間(tg2)及び周波数偏差(df2)が更新される。この例で、第2期間のn2回の時刻推定においてずれ時間(tg2)及び周波数偏差(df2)が用いられる。尚、暫定的に設定する第1期間で用いるずれ時間(tg1)及び周波数偏差(df1)の誤差が大きいと見込まれる場合は、第2期間で用いる周波数偏差は第1期間で用いたdf1をそのまま用い、周波数偏差の更新は第3期間から行うようにしても良い。 In the update step of the second period, the deviation time (tg 2 ) and the frequency deviation (df 2 ) are updated to reflect the calculation result in the first period. In this example, deviation time at n 2 times the time estimate of the second period (tg 2) and the frequency deviation (df 2) is used. If the error between the deviation time (tg 1 ) and the frequency deviation (df 1 ) used in the tentatively set first period is expected to be large, the frequency deviation used in the second period is the df used in the first period. 1 may be used as it is, and the frequency deviation may be updated from the third period.

そして、第3期間以降も、第2期間の場合と同様のステップで動作する。尚、時刻推定の第1ステップと、時刻推定の第2ステップ以降とは処理の内容が、一部異なる。 Then, after the third period, the operation is performed in the same steps as in the case of the second period. The contents of the processing are partially different between the first step of time estimation and the second and subsequent steps of time estimation.

続いて、各ステップの概要について説明する。便宜上、まず図10を用いて時刻推定の第2ステップ以降の概要を示す。図8を用いて説明したように、i回目の推定経過時間dtei=(i回目の第1時刻tli−1回目の第1時刻tl1)/(1+周波数偏差dfj)の式に従って、i回目の推定経過時間dteiが求められる。 Next, an outline of each step will be described. For convenience, first, FIG. 10 is used to show an outline of the second and subsequent steps of time estimation. As explained with reference to FIG. 8, according to the equation of the i-th estimated elapsed time dte i = (i-th first time tl i -first first time tl 1 ) / (1 + frequency deviation df j ). The i-th estimated elapsed time dte i is obtained.

そして、i回目の推定時刻tei=1回目の推定時刻te1+i回目の推定経過時間dtei−ずれ時間tgjの式に従って、i回目の推定時刻teiが求められる。 Then, the i-th estimated time te i is obtained according to the formula of the i-th estimated time te i = the first estimated time te 1 + the i-th estimated elapsed time tte i -deviation time tg j.

更に、i回目の推定時刻teiからi回目の第2時刻tsiを引いて、i回目の時刻差dtiを求める。i回目の時刻差dtiは、i−1回目における最小の時刻差の候補と比較され、小さい方の時刻差が最小の時刻差の候補として保持される。つまり、i回目までの時刻差dtのうち、最小の時刻差が保持される。 Moreover, pulling the i-th second time ts i from the i-th estimation time te i, obtaining the i-th time difference dt i. The i-th time difference dt i is compared with the smallest time difference candidate in the i-1st time, and the smaller time difference is retained as the minimum time difference candidate. That is, the minimum time difference among the time difference dt up to the i-th time is maintained.

図11に、更新ステップの概要を示す。破線より上は、前期間Cj-1における算出結果を示している。破線より下は、現期間Cjにおける算出結果を示している。 FIG. 11 shows an outline of the update step. Above the broken line, the calculation result in the previous period C j-1 is shown. Below the broken line, the calculation result in the current period C j is shown.

まず、前期間Cj-1の各ステップ毎に判定され、保持された最小の時刻差の候補を、更新ステップ時に最小の時刻差dtminとして確定する。これは、前期間Cj-1で求めた時刻差dt1〜dtnのうちの最小の時刻差と等しい。そして、当該最小の時刻差dtminを現期間Cjで用いられるずれ時間tgjに設定する。 First, the candidate for the minimum time difference determined and held for each step of the previous period C j-1 is determined as the minimum time difference dt min at the update step. This is equal to the minimum time difference among the time differences dt 1 to dt n obtained in the previous period C j-1. Then, the minimum time difference dt min is set to the deviation time tg j used in the current period C j.

また、以下の式(1)に従って現期間Cjにおける周波数偏差dfjが求められる。 Moreover, the frequency deviation df j is determined in the current period C j according to the following equation (1).

Figure 0006953735
Figure 0006953735

dfj-1は前期間Cj-1における周波数偏差であり、tgjは現期間Cjで用いられるずれ時間であり、Tは期間の長さである。ここで、最小の時刻差dtminを求めた際の第2時刻を最小時差発生時刻tmin_jとして保持し、現期間Cjにおけるtmin_jと前期間Cj-1におけるtmin_j-1とを用いて、以下の式(2)の値を式(1)のTの代わりに用いても良い。
min_j−tmin_j-1 (2)
df j-1 is the frequency deviation in the previous period C j-1 , tg j is the shift time used in the current period C j , and T is the length of the period. Here, the minimum time difference dt min second time at the time of seeking and held as the minimum difference generation time t Min_j, using the t min_j-1 at t Min_j before period C j-1 in the current period C j Therefore, the value of the following equation (2) may be used instead of T in the equation (1).
t min_j −t min_j-1 (2)

この式(1)の導出について説明する。ずれ時間tgjは、前期間における周波数偏差dfj-1に含まれる誤差或いは周波数偏差dfが変化したことによって生じたものとする。ずれ時間tgjが、期間の長さTの間に生じたものと看做せば、ローカル時計における計測時間の伸縮率は、(T+tgj)/Tで表される。そして、伸縮率の逆数T/(T+tgj)が周波数の変化率と一致する。ここで、周波数の変化率は周波数偏差を用いて(1+dfj)/(1+dfj-1)と表せる為、等式(1+dfj)/(1+dfj-1)=T/(T+tgj)から上述の式が導かれる。 The derivation of this equation (1) will be described. It is assumed that the deviation time tg j is caused by an error included in the frequency deviation df j-1 in the previous period or a change in the frequency deviation df. Assuming that the deviation time tg j occurs during the length T of the period, the expansion / contraction rate of the measurement time in the local clock is expressed by (T + tg j ) / T. Then, the reciprocal T / (T + tg j ) of the expansion / contraction rate coincides with the rate of change of the frequency. Above wherein the rate of change of frequency using the frequency deviation (1 + df j) / ( 1 + df j-1) and expressed for, from the equation (1 + df j) / ( 1 + df j-1) = T / (T + tg j) Is derived.

図12に、時刻推定の第1ステップの概要を示す。破線より上は、前期間Cj-1における算出結果を示している。破線より下は、現期間Cjにおける算出結果を示している。 FIG. 12 shows an outline of the first step of time estimation. Above the broken line, the calculation result in the previous period C j-1 is shown. Below the broken line, the calculation result in the current period C j is shown.

1回目の推定経過時間dte1=(現期間Cjにおける1回目の第1時刻tl1−前期間Cj-1における1回目の第1時刻tl1)/(1+現期間Cjにおける周波数偏差dfj)の式に従って、1回目の推定経過時間dte1が求められる。ここで、前期間Cj-1における1回目の第1時刻tl1の代わりに、前期間Cj-1における最小の時刻差dtminを求めた際の第1時刻を保持しておき用いても良い。 1st estimated elapsed time dte 1 = (1st first time tl 1 in the current period C j − 1st time tl 1 in the previous period C j- 1 ) / (1 + frequency deviation in the current period C j) According to the equation of df j ), the first estimated elapsed time dte 1 is obtained. Here, before the place of the period C j-1 at the first first time tl 1, and using holds the first time when determining the minimum time difference dt min before the period C j-1 Is also good.

そして、現期間Cjにおける1回目の推定時刻te1=前期間Cj-1における1回目の推定時刻te1+現期間Cjにおける1回目の推定経過時間dte1−現期間Cjで用いられるずれ時間tgjの式に従って、現期間Cjにおける1回目の推定時刻te1が求められる。ここで、前期間Cj-1における1回目の推定時刻te1の代わりに、前期間Cj-1における最小時差発生時刻tmin_j-1を用いても良い。 The first estimated time te 1 = previous period C j-1 during the first time estimate te 1 + 1 -th estimated elapsed time in the current period C j dte 1 in the current period C j - used in the current period C j According to the equation of the deviation time tg j , the first estimated time te 1 in the current period C j is obtained. Here, before the place of the period C j-1 during the first time estimate te 1, may be used minimum time difference generation time t min_j-1 in the previous period C j-1.

更に、現期間Cjにおける1回目の推定時刻te1から同じく1回目の第2時刻ts1を引いて、1回目の時刻差dt1を求める。現期間Cjにおける1回目の第1時刻または最小の時刻差dtminを求めた際の第1時刻と、1回目の推定時刻または最小時差発生時刻は、少なくとも次の期間における更新ステップまで保持される。以上で本実施の形態に係る概要の説明を終える。 Further, the first time difference dt 1 is obtained by subtracting the first second time ts 1 from the first estimated time te 1 in the current period C j. The first time when the first first time or the minimum time difference dt min in the current period C j is calculated, and the first estimated time or the minimum time difference occurrence time are retained until at least the update step in the next period. NS. This is the end of the outline of the present embodiment.

図13に、データ収集装置201のモジュール構成例を示す。図2において説明したオペレーティングシステム203、受信部207、バッファ209及びシステム時計211は省略する。 FIG. 13 shows an example of a module configuration of the data collection device 201. The operating system 203, the receiving unit 207, the buffer 209, and the system clock 211 described with reference to FIG. 2 are omitted.

アプリケーションプログラム205は、第1設定部1301、第1取得部1303、第1算出部1305、第2算出部1307、特定部1309及び更新部1311を実現するためのプログラムを含んでいる。図13では、各部を実現するためのプログラムを、各部として表す。各部は、当該部のためのプログラムをプロセッサで実行することによって実現される。データ収集装置201は、更にパラメータ記憶部1321及びテーブル記憶部1323を有する。パラメータ記憶部1321は、上述した各パラメータを記憶する。テーブル記憶部1323は、第1時刻と第2時刻と推定時刻と計測データとを対応付けるテーブルを記憶する。但し、第1時刻と第2時刻とは省いてもよい。 The application program 205 includes a program for realizing the first setting unit 1301, the first acquisition unit 1303, the first calculation unit 1305, the second calculation unit 1307, the specific unit 1309, and the update unit 1311. In FIG. 13, the program for realizing each part is represented as each part. Each part is realized by executing the program for the part on the processor. The data collection device 201 further includes a parameter storage unit 1321 and a table storage unit 1323. The parameter storage unit 1321 stores each of the above-mentioned parameters. The table storage unit 1323 stores a table that associates the first time, the second time, the estimated time, and the measurement data. However, the first time and the second time may be omitted.

図14に、メイン処理(A)フローを示す。第1設定部1301は、第1初期設定処理を実行する(S1401)。第1初期設定処理は、初期設定ステップに相当する。第1初期設定処理の詳細は、図15を用いて後述する。 FIG. 14 shows the main processing (A) flow. The first setting unit 1301 executes the first initial setting process (S1401). The first initial setting process corresponds to the initial setting step. Details of the first initial setting process will be described later with reference to FIG.

第1取得部1303は、取得処理を実行する(S1403)。取得処理では、第1時刻及び第2時刻を取得する。取得処理の詳細は、図16を用いて後述する。 The first acquisition unit 1303 executes the acquisition process (S1403). In the acquisition process, the first time and the second time are acquired. Details of the acquisition process will be described later with reference to FIG.

第1算出部1305及び第2算出部1307は、第1算出処理を実行する(S1405)。第1算出処理は、時刻推定の第1ステップに相当する。第1算出処理の詳細は、図17を用いて後述する。 The first calculation unit 1305 and the second calculation unit 1307 execute the first calculation process (S1405). The first calculation process corresponds to the first step of time estimation. The details of the first calculation process will be described later with reference to FIG.

第1取得部1303は、取得処理を実行する(S1407)。S1407における取得処理は、S1403の場合と同様である。 The first acquisition unit 1303 executes the acquisition process (S1407). The acquisition process in S1407 is the same as in the case of S1403.

第1算出部1305及び第2算出部1307は、第2算出処理を実行する(S1409)。第2算出処理は、時刻推定の第2ステップ以降に相当する。第2算出処理の詳細は、図18を用いて後述する。 The first calculation unit 1305 and the second calculation unit 1307 execute the second calculation process (S1409). The second calculation process corresponds to the second and subsequent steps of time estimation. The details of the second calculation process will be described later with reference to FIG.

更新部1311は、第2時刻が現期間Cjを経過したか否かを判定する(S1411)。第2時刻が現期間Cjを経過していないと判定した場合には、S1407に示した処理に戻って、上述した処理を繰り返す。ここでS1411の判定において、第2時刻の代わりに推定時刻を用いても良い。 The update unit 1311 determines whether or not the second time has passed the current period C j (S1411). If the second time is determined not to be passed the current period C j returns to the process shown in S1407, the processing described above is repeated. Here, in the determination of S1411, the estimated time may be used instead of the second time.

一方、第2時刻が現期間Cjを経過したと判定した場合には、更新部1311は、期間を切り替える(S1413)。そして、特定部1309及び更新部1311は、更新処理を実行する(S1415)。更新処理は、更新ステップに相当する。更新処理の詳細は、図19を用いて後述する。 On the other hand, when it is determined that the second time has passed the current period C j , the update unit 1311 switches the period (S1413). Then, the specific unit 1309 and the update unit 1311 execute the update process (S1415). The update process corresponds to the update step. Details of the update process will be described later with reference to FIG.

更新処理を終えると、S1403に示した処理に戻って、上述した処理を繰り返す。 When the update process is completed, the process returns to the process shown in S1403, and the above-mentioned process is repeated.

図15に、第1初期設定処理フローを示す。第1設定部1301は、期間の長さTを設定する(S1501)。例えば、期間の長さTは所定の値であってもよいし、ユーザ操作によって設定されるようにしてもよい。 FIG. 15 shows the first initial setting processing flow. The first setting unit 1301 sets the length T of the period (S1501). For example, the length T of the period may be a predetermined value or may be set by a user operation.

第1設定部1301は、周波数偏差の初期値df1に0を設定する(S1503)。更に、第1設定部1301は、ずれ時間の初期値tg1に0を設定する(S1505)。そして、メイン処理(A)に復帰する。 The first setting unit 1301 sets 0 to the initial value df 1 of the frequency deviation (S1503). Further, the first setting unit 1301 sets 0 to the initial value tg 1 of the deviation time (S1505). Then, the process returns to the main process (A).

図16に、取得処理(A)フローを示す。第1取得部1303は、バッファ209からタイムスタンプ付き計測メッセージを取得する(S1601)。第1取得部1303は、システム時計211から第2時刻tsiを取得する(S1603)。更に、第1取得部1303は、計測メッセージから第1時刻tliを読み取る(S1605)。そして、メイン処理(A)に復帰する。 FIG. 16 shows the acquisition process (A) flow. The first acquisition unit 1303 acquires a time-stamped measurement message from the buffer 209 (S1601). The first acquisition unit 1303 acquires the second time ts i from the system clock 211 (S1603). Further, the first acquisition unit 1303 reads the first time tl i from the measurement message (S1605). Then, the process returns to the main process (A).

図17に、第1算出処理フローを示す。第1算出部1305は、現期間Cjにおける1回目の第1時刻tl1から前期間Cj-1における1回目の第1時刻tl1を引いて、第1時刻差dtl1を求める(S1701)。第1算出部1305は、第1時刻差dtl1を補正比(1+dfj)で除して、推定経過時間dte1を求める(S1703)。第1算出部1305は、前期間Cj-1における1回目の推定時刻te1に、推定経過時間dte1を加えて、ずれ時間tgjを引いて、現期間Cjにおける1回目の推定時刻te1を求める(S1705)。更に、第2算出部1307は、現期間Cjにおける1回目の推定時刻te1から現期間Cjにおける1回目の第2時刻ts1を引いて、現期間Cjにおける1回目の時刻差dt1を求める(S1707)。そして、メイン処理(A)に復帰する。 FIG. 17 shows the first calculation processing flow. First calculator 1305 subtracts the first time tl 1 the first time in the previous period C j-1 from the first time tl 1 the first time in the current period C j, determining a first time difference dtl 1 (S1701 ). The first calculation unit 1305 divides the first time difference dtl 1 by the correction ratio (1 + df j ) to obtain the estimated elapsed time dte 1 (S1703). The first calculation unit 1305 adds the estimated elapsed time dte 1 to the first estimated time te 1 in the previous period C j-1 , subtracts the deviation time tg j, and subtracts the first estimated time in the current period C j. Find te 1 (S1705). Furthermore, the second calculation unit 1307, the current period C j from first estimated time te 1 in subtracting the second time ts 1 of the first in the current period C j, the time difference dt of the first in the current period C j 1 is obtained (S1707). Then, the process returns to the main process (A).

図18に、第2算出処理フローを示す。第1算出部1305は、現期間Cjにおける1回目の第1時刻tl1から現期間Cjにおけるi回目の第1時刻tliを引いて、第1時刻差dtliを求める(S1801)。第1算出部1305は、第1時刻差dtliを補正比(1+dfj)で除して、推定経過時間dteiを求める(S1803)。第1算出部1305は、現期間Cjにおける1回目の推定時刻te1に、推定経過時間dteiを加え、現期間Cjで用いられるずれ時間tgjを引いて、現期間Cjにおけるi回目の推定時刻teiを求める(S1805)。第2算出部1307は、現期間Cjにおけるi回目の推定時刻teiから現期間Cjにおけるi回目の第2時刻tsiを引いて、現期間Cjにおけるi回目の時刻差dtiを求める(S1807)。そして、メイン処理(A)に復帰する。 FIG. 18 shows a second calculation processing flow. First calculator 1305 subtracts the first time tl i of i-th in the current period C j from the first first time tl 1 of the current period C j, determining a first time difference dtl i (S1801). The first calculation unit 1305 divides the first time difference dtl i by the correction ratio (1 + df j ) to obtain the estimated elapsed time dte i (S1803). First calculator 1305, the estimated time te 1 for the first time in the current period C j, the estimated elapsed time dte i addition, by subtracting the delay times tg j used in the current period C j, i in the current period C j The estimated time of the second time te i is obtained (S1805). The second calculating unit 1307 subtracts the second time ts i of i-th in the current period C j from the estimated time te i of i-th in the current period C j, the time difference dt i of i-th in the current period C j Find (S1807). Then, the process returns to the main process (A).

図19に、更新処理フローを示す。特定部1309は、前期間Cj-1における時刻差dtのうち、最小の時刻差dtminを特定する。そして、更新部1311は、最小の時刻差dtminを現期間Cjで用いられるずれ時間tgjに設定する(S1901)。更新部1311は、上述した式(1)に従って、周波数偏差dfjを更新する(S1903)。そして、メイン処理(A)に復帰する。 FIG. 19 shows an update processing flow. The identification unit 1309 specifies the minimum time difference dt min among the time difference dt in the previous period C j-1 . Then, the update unit 1311 sets the minimum time difference dt min to the deviation time tg j used in the current period C j (S1901). The update unit 1311 updates the frequency deviation df j according to the above equation (1) (S1903). Then, the process returns to the main process (A).

本実施の形態によれば、外部機器101で付された第1時刻を、より正しく自らのシステム時計基準の時刻に改めることができる。つまり、データ収集装置201における処理遅延の影響を受けずに、ローカル誤差を減ずることができる。 According to the present embodiment, the first time set by the external device 101 can be more accurately changed to the time based on the own system clock. That is, the local error can be reduced without being affected by the processing delay in the data collecting device 201.

その他の工夫として、最小の時刻差dtminの絶対値が閾値を超えた場合に、前期間における推定時刻の信頼性が低いと判断するようにしてもよい。この場合は、期間内に滞留遅延が0にならなかった恐れがあるからである。 As another device, when the absolute value of the minimum time difference dt min exceeds the threshold value, it may be determined that the reliability of the estimated time in the previous period is low. In this case, there is a possibility that the residence delay did not become 0 within the period.

また、過去の最小の時刻差dtminに基づいて、期間の長さTを調整するようにしてもよい。 Further, the length T of the period may be adjusted based on the minimum time difference dt min in the past.

また、過去の最小の時刻差dtminに基づいて更新処理を行うか否かを決めるようにしてもよい。期間内に滞留遅延が0になるという前提が成立していないことも考えられるからである。 Further, it may be decided whether or not to perform the update process based on the minimum time difference dt min in the past. This is because it is possible that the premise that the residence delay becomes 0 within the period is not established.

また、外部機器101の温度、内部電圧或いはクロックカウンタの振動数に基づいて、期間の長さTを決めるようにしてもよい。より適正な期間の長さTが設定されると期待できる。 Further, the length T of the period may be determined based on the temperature of the external device 101, the internal voltage, or the frequency of the clock counter. It can be expected that a more appropriate period length T will be set.

[実施の形態2]
図20乃至図29を用いて実施の形態2の概要について説明する。図20は、第P期間における推定時刻teを破線で示している。実線は、第2時刻tsを示している。横軸は、第1時刻tlを示している。推定時刻teは、te=aP×tl+bPの式に従って算出される。推定パラメータ(aP,bP)は、第P期間における推定時刻teの算出に適用されるものである。
[Embodiment 2]
The outline of the second embodiment will be described with reference to FIGS. 20 to 29. In FIG. 20, the estimated time te in the P period is shown by a broken line. The solid line indicates the second time ts. The horizontal axis represents the first time tl. The estimated time te is calculated according to the formula te = a P × tl + b P. The estimation parameters (a P , b P ) are applied to the calculation of the estimated time te in the P period.

図21は、第P期間における時刻差dtを示している。時刻差dtは、第2時刻tsから推定時刻teを引いた時間である。図20の点2001に示した第2時刻tsにおける時刻差dtは、図21に示すように滞留遅延を含んでいない。この状態については、図6を用いて前述した。本実施の形態においても、時刻差dtが最小になる時点を基準として推定時刻teの算出を行う。 FIG. 21 shows the time difference dt in the P period. The time difference dt is the time obtained by subtracting the estimated time te from the second time ts. The time difference dt at the second time ts shown at the point 2001 in FIG. 20 does not include the residence delay as shown in FIG. This state has been described above with reference to FIG. Also in this embodiment, the estimated time te is calculated based on the time point at which the time difference dt becomes the minimum.

図22は、第P+1期間における推定時刻teを破線で示している。実線は、第P+1期間の推定時刻teを算出する式te=aP+1×tl+bP+1が示す直線を第P期間まで延長したものである。尚、図20で示した第P期間の推定時刻teは、更新されない。推定パラメータ(aP+1,bP+1)は、第P+1期間における推定時刻teの算出に適用されるものである。 In FIG. 22, the estimated time te in the P + 1 period is shown by a broken line. The solid line is an extension of the straight line indicated by the formula te = a P + 1 × tl + b P + 1 for calculating the estimated time te in the P + 1 period to the P period. The estimated time te in the P period shown in FIG. 20 is not updated. The estimated parameters (a P + 1 , b P + 1 ) are applied to the calculation of the estimated time te in the P + 1 th period.

図23は、第P+1期間における時刻差dtを示している。第P期に関しても、算出式te=aP+1×tl+bP+1に基づく時刻差dtを示している。図22の点2001に示した第2時刻tsにおける時刻差dtと点2201に示した第2時刻tsにおける時刻差dtとは共に、図23に示すように滞留遅延を含んでいない。本実施の形態では、この2点を結ぶ直線に相当する近似式を用いる。 FIG. 23 shows the time difference dt in the P + 1 th period. The time difference dt based on the calculation formula te = a P + 1 × tl + b P + 1 is also shown for the P period. Both the time difference dt at the second time ts shown at the point 2001 of FIG. 22 and the time difference dt at the second time ts shown at the point 2201 do not include the retention delay as shown in FIG. 23. In this embodiment, an approximate expression corresponding to a straight line connecting these two points is used.

図24は、第P+2期間における推定時刻teを破線で示している。実線は、第P+2期間の推定時刻teを算出する式te=aP+2×tl+bP+2が示す直線を点2001まで延長したものである。尚、図20で示した第P期間の推定時刻te及び図22で示した第P+1期間の推定時刻teは、更新されない。推定パラメータ(aP+2,bP+2)は、第P+2期間における推定時刻teの算出に適用されるものである。尚、第P+1期間の終了時点で、第P+1期間における推定時刻teの算出に適用された推定パラメータ(aP+1,bP+1)を現推定パラメータという。また、第P+2期間における推定時刻teの算出に適用する推定パラメータ(aP+2,bP+2)を新推定パラメータという。新推定パラメータは、現推定パラメータを補正することによって求められる。 In FIG. 24, the estimated time te in the P + 2 period is shown by a broken line. The solid line is an extension of the straight line indicated by the formula te = a P + 2 × tl + b P + 2 for calculating the estimated time te in the second P + 2 period to the point 2001. The estimated time te of the P period shown in FIG. 20 and the estimated time te of the P + 1 period shown in FIG. 22 are not updated. The estimation parameters (a P + 2 , b P + 2 ) are applied to the calculation of the estimated time te in the second P + 2 period. The estimation parameters (a P + 1 , b P + 1 ) applied to the calculation of the estimated time te in the P + 1 period at the end of the P + 1 period are referred to as the current estimation parameters. The estimation parameters (a P + 2 , b P + 2 ) applied to the calculation of the estimated time te in the second P + 2 period are called new estimation parameters. The new estimation parameters are obtained by correcting the current estimation parameters.

図25を用いて、パラメータの関係を整理する。時刻差dtは、第2時刻tsと推定時刻teに基づいて算出される。本実施の形態では、2つの期間の各々における最小の時刻差dtに着目する。これらの最小の時刻差dt及びその出現時刻に基づいて現推定パラメータを補正することによって、新推定パラメータが算出される。そして、新推定パラメータによって次の期間における第1時刻が推定時刻に変換される。このサイクルが繰り返される。 The relationship between the parameters is organized with reference to FIG. 25. The time difference dt is calculated based on the second time ts and the estimated time te. In this embodiment, attention is paid to the minimum time difference dt in each of the two periods. A new estimation parameter is calculated by correcting the current estimation parameter based on these minimum time difference dt and its appearance time. Then, the first time in the next period is converted into the estimated time by the new estimation parameter. This cycle is repeated.

図26を用いて、期間と各時刻の関係を整理する。図26は、第P+1期間の終了時点で,第P+2期間における推定時刻teの算出に適用される新推定パラメータを算出することを想定している。当該新推定パラメータを算出する場合には、第P期間の時刻データと第P+1期間の時刻データが用いられる。具体的には、第P期間及び第P+1期間の第2時刻tsと、第P期間及び第P+1期間の推定時刻teとが用いられる。但し、第P期間の推定時刻teは、第P+1期間における推定時刻teの算出に適用される現推定パラメータに基づく値である。新推定パラメータは、第P+2期間における第1時刻tlに随時適用されて、即座に推定時刻が求められる。 With reference to FIG. 26, the relationship between the period and each time is organized. FIG. 26 assumes that at the end of the P + 1 period, a new estimation parameter applied to the calculation of the estimated time te in the P + 2 period is calculated. When calculating the new estimation parameter, the time data of the P period and the time data of the P + 1 period are used. Specifically, the second time ts of the P period and the P + 1 period and the estimated time te of the P period and the P + 1 period are used. However, the estimated time te in the P period is a value based on the current estimation parameter applied to the calculation of the estimated time te in the P + 1 period. The new estimation parameters are applied at any time to the first time tl in the second P + 2 period, and the estimated time is obtained immediately.

図27に示すように、図26で説明した期間と各時刻の関係が期間の経過に従って繰り返される。図27は、各推定パラメータが適正であることを想定している。各推定パラメータが適正であれば、各期間の長さは変わらない。 As shown in FIG. 27, the relationship between the period described in FIG. 26 and each time is repeated as the period elapses. FIG. 27 assumes that each estimation parameter is appropriate. If each estimation parameter is correct, the length of each period does not change.

但し、推定パラメータがいつも適正であるとは限らない。或る期間における最小の時刻差dtが滞留遅延に相当する時間を含んでいる場合には、その期間に基づいて算出された推定パラメータは、正しい推定時刻を導かない。本実施の形態では、新推定パラメータが現推定パラメータと同一又は類似である場合に、当該新推定パラメータが適正であると判断する。推定時刻が正しければ、その推定時刻は連続し、その推定時刻の基礎となった推定パラメータも近似するはずである。 However, the estimated parameters are not always correct. If the minimum time difference dt in a period includes a time corresponding to the residence delay, the estimation parameters calculated based on that period do not lead to the correct estimated time. In the present embodiment, when the new estimation parameter is the same as or similar to the current estimation parameter, it is determined that the new estimation parameter is appropriate. If the estimated time is correct, the estimated time should be continuous and the estimated parameters underlying the estimated time should also be approximated.

図28に示すように、新推定パラメータが現推定パラメータと非類似である場合には、新推定パラメータの基礎となる期間を拡張する。この例では、新推定パラメータの基礎となる第P+1期間と第P+2期間とのうち、後の第P+2期間を拡張する。このように期間を長くすれば、当該期間における最小の時刻差が滞留遅延を含まない可能性が高まる。ここで、現推定パラメータは適正である前提である。 As shown in FIG. 28, when the new estimation parameter is dissimilar to the current estimation parameter, the period underlying the new estimation parameter is extended. In this example, the later P + 2 period of the P + 1 period and the P + 2 period, which is the basis of the new estimation parameter, is extended. If the period is lengthened in this way, it is more likely that the minimum time difference in the period does not include the residence delay. Here, it is a premise that the current estimation parameters are appropriate.

但し、誤差は滞留遅延だけでなく、ローカル時計107における周波数偏差による成分も含んでいる。横軸を第1時刻tlとするグラフに真の計測時刻tを表せば、周波数偏差の変動により曲線を示すこともある。従って、上述した近似式が適用される期間が長すぎるとその期間の一部において推定時刻teと真の計測時刻tとの誤差が拡大する恐れがある。従って、より短期の周波数偏差変動が発生する可能性を考慮すると、一旦長くなった期間がそのままであると支障がある。 However, the error includes not only the residence delay but also a component due to the frequency deviation in the local clock 107. If the true measurement time t is represented in a graph whose horizontal axis is the first time tl, a curve may be shown due to fluctuations in frequency deviation. Therefore, if the period to which the above-mentioned approximation formula is applied is too long, the error between the estimated time te and the true measurement time t may increase in a part of the period. Therefore, considering the possibility that a shorter-term frequency deviation fluctuation will occur, there is a problem if the once lengthened period remains as it is.

図29に示した例で、第Q期間の終了時点で求めた新推定パラメータが適正であった場合に、所定の短縮条件を満たさなければ第Q+1期間の長さは、第Q期間の場合と同一になる。一方、第Q+1期間の終了時点で求めた新推定パラメータが適正であった場合に、所定の短縮条件を満たせば第Q+2期間の長さは、第Q+1期間の場合よりも短くなるようにする。短縮条件については後述するが、例えば適正と判断される可能性が高い場合に、次の期間を短くする。以上で、本実施の形態における概要の説明を終える。 In the example shown in FIG. 29, when the new estimation parameter obtained at the end of the Qth period is appropriate and the predetermined shortening condition is not satisfied, the length of the Q + 1 period is the same as that of the Qth period. Be the same. On the other hand, when the new estimation parameter obtained at the end of the Q + 1 period is appropriate, the length of the Q + 2 period is made shorter than that of the Q + 1 period if a predetermined shortening condition is satisfied. The shortening conditions will be described later, but for example, when there is a high possibility that it is judged to be appropriate, the next period will be shortened. This is the end of the outline of the present embodiment.

図30に、データ収集装置201のモジュール構成例を示す。アプリケーションプログラム205は、第2設定部3001、制御部3003、第2取得部3005、第3算出部3007、第4算出部3009、第5算出部3010、判定部3011、変更部3013及び短縮部3015を有する。また、データ収集装置201は、パラメータ記憶部3021、時刻テーブル記憶部3023、期間タイプ記憶部3025及び回数記憶部3027を有する。 FIG. 30 shows a module configuration example of the data collection device 201. The application program 205 includes the second setting unit 3001, the control unit 3003, the second acquisition unit 3005, the third calculation unit 3007, the fourth calculation unit 3009, the fifth calculation unit 3010, the determination unit 3011, the change unit 3013, and the shortening unit 3015. Has. Further, the data collecting device 201 includes a parameter storage unit 3021, a time table storage unit 3023, a period type storage unit 3025, and a number of times storage unit 3027.

第2設定部3001は、各種の内部パラメータに初期値を設定する。制御部3003は、アプリケーションプログラム205の動作を制御する。第2取得部3005は、バッファ209からタイムスタンプ付き計測メッセージを取得する。第3算出部3007は、推定時刻teを算出する。第4算出部3009は、推定パラメータを算出する。第5算出部3010は、時刻差dtを算出する。判定部3011は、推定パラメータの適否を判定する。変更部3013は、期間タイプを変更する。具体的には、変更部3013は、当該期間を拡張する。短縮部3015は、次の期間を短縮する。 The second setting unit 3001 sets initial values for various internal parameters. The control unit 3003 controls the operation of the application program 205. The second acquisition unit 3005 acquires a measurement message with a time stamp from the buffer 209. The third calculation unit 3007 calculates the estimated time te. The fourth calculation unit 3009 calculates the estimation parameter. The fifth calculation unit 3010 calculates the time difference dt. The determination unit 3011 determines the suitability of the estimation parameter. The change unit 3013 changes the period type. Specifically, the change unit 3013 extends the period. The shortening unit 3015 shortens the next period.

パラメータ記憶部3021は、各種の内部パラメータを記憶する。時刻テーブル記憶部3023は、時刻テーブルを記憶する。時刻テーブルについては、図31を用いて後述する。期間タイプ記憶部3025は、期間タイプテーブルを記憶する。期間タイプテーブルについては、図32を用いて後述する。回数記憶部3027は、回数テーブルを記憶する。回数テーブルについては、図33を用いて後述する。 The parameter storage unit 3021 stores various internal parameters. The time table storage unit 3023 stores the time table. The time table will be described later with reference to FIG. 31. The period type storage unit 3025 stores the period type table. The period type table will be described later with reference to FIG. The number-of-times storage unit 3027 stores the number-of-times table. The number table will be described later with reference to FIG. 33.

上述した第2設定部3001、制御部3003、第2取得部3005、第3算出部3007、第4算出部3009、第5算出部3010、判定部3011、変更部3013及び短縮部3015は、ハードウエア資源(例えば、図56)と、以下で述べる処理をプロセッサに実行させるプログラムとを用いて実現される。 The second setting unit 3001, the control unit 3003, the second acquisition unit 3005, the third calculation unit 3007, the fourth calculation unit 3009, the fifth calculation unit 3010, the determination unit 3011, the change unit 3013, and the shortening unit 3015 are hardware. It is realized by using a hardware resource (for example, FIG. 56) and a program that causes a processor to execute the processing described below.

上述したパラメータ記憶部3021、時刻テーブル記憶部3023、期間タイプ記憶部3025及び回数記憶部3027は、ハードウエア資源(例えば、図56)を用いて実現される。 The parameter storage unit 3021, the time table storage unit 3023, the period type storage unit 3025, and the number of times storage unit 3027 described above are realized by using hardware resources (for example, FIG. 56).

図31に、時刻テーブルの例を示す。この例における時刻テーブルには、タイムスタンプ付き計測メッセージに対応するレコードが設けられる。時刻テーブルのレコードは、第1時刻が格納されるフィールドと、第2時刻が格納されるフィールドと、推定時刻が格納されるフィールドと、計測データが格納されるフィールドとを有している。 FIG. 31 shows an example of a time table. The time table in this example is provided with a record corresponding to the time-stamped measurement message. The record of the time table has a field for storing the first time, a field for storing the second time, a field for storing the estimated time, and a field for storing the measurement data.

図32に、期間タイプテーブルの例を示す。この例における期間タイプテーブルは、期間タイプに対応するレコードを有している。期間タイプテーブルのレコードは、期間タイプIDが設定されているフィールドと、期間長が設定されているフィールドとを有している。 FIG. 32 shows an example of a period type table. The period type table in this example has records corresponding to the period type. The record of the period type table has a field in which the period type ID is set and a field in which the period length is set.

期間タイプIDは、期間タイプを識別する。期間長は、当該期間タイプにおける期間の長さである。期間タイプテーブルは、メイン処理を開始する時点で既に用意されているものとする。尚、この例では、M個の期間タイプが設定されている。 The period type ID identifies the period type. The period length is the length of the period in the period type. It is assumed that the period type table is already prepared at the time of starting the main processing. In this example, M period types are set.

図33に、回数テーブルの例を示す。この例における回数テーブルは、期間タイプに対応するレコードを有している。回数テーブルのレコードは、期間タイプIDが格納されるフィールドと、適正回数が格納されるフィールドと、不適回数が格納されるフィールドとを有している。 FIG. 33 shows an example of the number-of-times table. The count table in this example has records corresponding to the period type. The record of the number table has a field in which the period type ID is stored, a field in which the appropriate number of times is stored, and a field in which the inappropriate number of times is stored.

期間タイプIDは、カウント対象の期間タイプを特定する。適正回数は、当該期間タイプの期間に基づく推定パラメータの適否判定において適正と判定された回数である。不適回数は、当該期間タイプの期間に基づく推定パラメータの適否判定において不適と判定された回数である。 The period type ID specifies the period type to be counted. The appropriate number of times is the number of times determined to be appropriate in the suitability determination of the estimation parameter based on the period of the period type. The number of unsuitable times is the number of times that is determined to be unsuitable in the suitability determination of the estimation parameter based on the period of the period type.

本実施の形態では、メイン処理(A)に代えて、メイン処理(B)を実行する。図34に、メイン処理(B)フローを示す。第2設定部3001は、スタート時刻を設定する(S3401)。スタート時刻は、各期間の基準として用いられる。スタート時刻は、例えば現在時刻である。但し、第2設定部3001は、スタート時刻の設定を省くようにしてもよい。 In the present embodiment, the main process (B) is executed instead of the main process (A). FIG. 34 shows the main processing (B) flow. The second setting unit 3001 sets the start time (S3401). The start time is used as a reference for each period. The start time is, for example, the current time. However, the second setting unit 3001 may omit the setting of the start time.

第2設定部3001は、第2初期設定処理を実行する(S3403)。第2初期設定処理では、各パラメータの初期化を行う。この例では、新推定パラメータのanewには1が設定される。新推定パラメータのbnewには0が設定される。現推定パラメータのacurには1が設定される。現推定パラメータのbcurには0が設定される。総合指数e[0]、e[1]及びe[2]には−1が設定される。−1は、後述する図46のS4607において3回目以降であることを判定するために用いられる制御用の値である。各適正回数cl及び各不適回数cuには0が設定される。期間タイプIDのパラメータiには、1が設定される。各パラメータの詳細については、後述する。 The second setting unit 3001 executes the second initial setting process (S3403). In the second initial setting process, each parameter is initialized. In this example, the new estimation parameter a new is set to 1. 0 is set for b new of the new estimation parameter. 1 is set for a cur of the current estimation parameter. 0 is set for b cur of the current estimation parameter. -1 is set for the comprehensive indexes e [0], e [1] and e [2]. -1 is a control value used for determining that the third time or later is performed in S4607 of FIG. 46, which will be described later. 0 is set for each appropriate number of times cl and each inappropriate number of times cu. 1 is set in the parameter i of the period type ID. Details of each parameter will be described later.

制御部3003は、取得処理を起動する(S3405)。取得処理は、バッファ209からタイムスタンプ付き計測メッセージを取得して、時刻テーブルに新たなレコードを設ける。取得処理は、記録時刻の補正結果を確定させるまでの処理遅延短縮を考慮し、メイン処理(B)と並行に動作させる例を示すが、並列に動作させなくても良い。 The control unit 3003 activates the acquisition process (S3405). The acquisition process acquires a measurement message with a time stamp from the buffer 209 and sets a new record in the time table. The acquisition process shows an example of operating in parallel with the main process (B) in consideration of shortening the processing delay until the correction result of the recording time is determined, but it is not necessary to operate in parallel.

本実施の形態では、取得処理(B)が起動される。図35に、取得処理(B)フローを示す。第2取得部3005は、バッファ209からタイムスタンプ付き計測メッセージを取得する(S3501)。第2取得部3005は、時刻テーブルに新たなレコードを追加する(S3503)。第2取得部3005は、システム時計211から第2時刻tsを取得し、新たなレコードに格納する(S3505)。第2取得部3005は、計測メッセージから第1時刻tlを読み取り、新たなレコードに格納する(S3507)。第3算出部3007は、現推定パラメータ(acur,bcur)を用いて、推定時刻teを算出し、新たなレコードに格納する(S3509)。第2取得部3005は、計測メッセージから計測データを読み取り、新たなレコードに格納する(S3511)。そして、S3501に示した処理に戻って、上述した処理を繰り返す。 In the present embodiment, the acquisition process (B) is started. FIG. 35 shows the acquisition process (B) flow. The second acquisition unit 3005 acquires a measurement message with a time stamp from the buffer 209 (S3501). The second acquisition unit 3005 adds a new record to the time table (S3503). The second acquisition unit 3005 acquires the second time ts from the system clock 211 and stores it in a new record (S3505). The second acquisition unit 3005 reads the first time tl from the measurement message and stores it in a new record (S3507). The third calculation unit 3007 calculates the estimated time te using the current estimation parameters (a cur , b cur ) and stores it in a new record (S3509). The second acquisition unit 3005 reads the measurement data from the measurement message and stores it in a new record (S3511). Then, the process returns to the process shown in S3501 and the above-mentioned process is repeated.

図34の説明に戻る。制御部3003は、初期処理を実行する(S3407)。初期処理では、第1期間乃至第3期間に関する処理を行う。 Returning to the description of FIG. 34. The control unit 3003 executes the initial process (S3407). In the initial processing, processing related to the first period to the third period is performed.

本実施の形態では、初期処理(A)を実行する。図36に、初期処理(A)フローを示す。制御部3003は、取得処理(B)において時刻テーブルに格納された最新の第1時刻tlが第2期間の終了時刻に至ったか否かを判定する(S3601)。最新の第1時刻tlが第2期間の終了時刻に至っていないと判定した場合には、S3601に示した処理を繰り返す。尚、終了時刻は、開始時刻に期間の長さを加えることによって求められる。 In the present embodiment, the initial process (A) is executed. FIG. 36 shows the initial processing (A) flow. The control unit 3003 determines whether or not the latest first time tl stored in the time table in the acquisition process (B) has reached the end time of the second period (S3601). If it is determined that the latest first time tl has not reached the end time of the second period, the process shown in S3601 is repeated. The end time is obtained by adding the length of the period to the start time.

一方、最新の第1時刻tlが第2期間の終了時刻に至ったと判定した場合には、第4算出部3009は、第1期間及び第2期間に係る推定パラメータの算出処理を実行する(S3603)。 On the other hand, when it is determined that the latest first time tl has reached the end time of the second period, the fourth calculation unit 3009 executes the calculation process of the estimation parameters related to the first period and the second period (S3603). ).

本実施の形態では、推定パラメータの算出処理(A)を実行する。図37に、推定パラメータの算出処理(A)フローを示す。第4算出部3009は、現推定パラメータ(acur,bcur)の値を新推定パラメータ(anew,bnew)に設定する(S3701)。このとき設定される値が補正対象となる。 In the present embodiment, the estimation parameter calculation process (A) is executed. FIG. 37 shows a flow of calculation processing (A) of estimated parameters. The fourth calculation unit 3009 sets the value of the current estimation parameter (a cur , b cur ) to the new estimation parameter (a new , b new ) (S3701). The value set at this time is the correction target.

第4算出部3009は、第1時刻tlが対象期間(対象期間は、2つの期間、つまり前期間及び後期間を含んでいる。)に含まれるレコードを1つ特定する(S3703)。例えば、第4算出部3009は、順番に従ってレコードを特定する。 The fourth calculation unit 3009 identifies one record whose first time tl is included in the target period (the target period includes two periods, that is, the previous period and the later period) (S3703). For example, the fourth calculation unit 3009 specifies records in order.

第3算出部3007は、新推定パラメータ(anew,bnew)を用いて推定時刻teを算出する(S3705)。第5算出部3010は、第2時刻tsから推定時刻teを引いて時刻差dtを算出する(S3707)。時刻差dtは、推定パラメータの算出処理(A)を行っている間保持される。第4算出部3009は、未処理のレコードがあるか否かを判定する(S3709)。未処理のレコードがあると判定した場合には、S3703に示した処理に戻って、上述した処理を繰り返す。 The third calculation unit 3007 calculates the estimated time te using the new estimation parameters (a new , b new) (S3705). The fifth calculation unit 3010 calculates the time difference dt by subtracting the estimated time te from the second time ts (S3707). The time difference dt is retained while the estimation parameter calculation process (A) is being performed. The fourth calculation unit 3009 determines whether or not there is an unprocessed record (S3709). When it is determined that there is an unprocessed record, the process returns to the process shown in S3703 and the above-described process is repeated.

一方、未処理のレコードがないと判定した場合には、第4算出部3009は、前期間における最小の時刻差dtmin及び当該最小の時刻差dtminが出現した第1時刻tlAを特定する(S3711)。この最小の時刻差dtminが推定誤差eAであるものとして、以降の処理が行われる。 On the other hand, when it is determined that there is no unprocessed record, the fourth calculation unit 3009 specifies the minimum time difference dt min in the previous period and the first time tl A in which the minimum time difference dt min appears. (S3711). Assuming that this minimum time difference dt min is the estimation error e A , the subsequent processing is performed.

また、第4算出部3009は、後期間における最小の時刻差dtmin及び当該最小の時刻差dtminが出現した第1時刻tlBを特定する(S3713)。この最小の時刻差dtminが推定誤差eBであるものとして、以降の処理が行われる。 Further, the fourth calculation unit 3009 specifies the minimum time difference dt min in the later period and the first time tl B at which the minimum time difference dt min appears (S3713). Subsequent processing is performed assuming that this minimum time difference dt min is the estimation error e B.

そして、第4算出部3009は、anew=anew+(eB−eA)/(tlB−tlA)の式及びbnew=bnew+eBの式に従って、新推定パラメータ(anew,bnew)を更新する(S3715)。推定パラメータの算出処理(A)を終えると、呼び出し元の処理に復帰する。 Then, the fourth calculation unit 3009 performs a new estimation parameter (a new ) according to the equations of a new = a new + (e B − e A ) / (tl B − tl A ) and b new = b new + e B. , B new ) is updated (S3715). When the estimation parameter calculation process (A) is completed, the process returns to the caller's process.

図36の説明に戻る。制御部3003は、S3603において算出した値(anew,bnew)を現推定パラメータ(acur,bcur)として記憶する(S3605)。 Returning to the description of FIG. The control unit 3003 stores the values (a new , b new ) calculated in S3603 as the current estimation parameters (a cur , b cur ) (S3605).

制御部3003は、取得処理(B)において時刻テーブルに格納された最新の第1時刻tlが第3期間の終了時刻に至ったか否かを判定する(S3607)。最新の第1時刻tlが第3期間の終了時刻に至っていないと判定した場合には、S3607に示した処理を繰り返す。 The control unit 3003 determines whether or not the latest first time tl stored in the time table in the acquisition process (B) has reached the end time of the third period (S3607). If it is determined that the latest first time tl has not reached the end time of the third period, the process shown in S3607 is repeated.

一方、最新の第1時刻tlが第3期間の終了時刻に至ったと判定した場合には、第4算出部3009は、第2期間及び第3期間に係る推定パラメータの算出処理を実行する(S3609)。第2期間及び第3期間に係る推定パラメータに関しては、S3609の処理を終えた段階で未だ確定していない。端子Aを介して、図38に示したS3801の処理に移る。 On the other hand, when it is determined that the latest first time tl has reached the end time of the third period, the fourth calculation unit 3009 executes the calculation processing of the estimation parameters related to the second period and the third period (S3609). ). The estimated parameters for the second period and the third period have not yet been determined at the stage when the processing of S3609 is completed. The process proceeds to the process of S3801 shown in FIG. 38 via the terminal A.

判定部3011は、推定パラメータの適否判定処理を実行する(S3801)。推定パラメータの適否判定処理では、新推定パラメータ(初期処理では、第2期間及び第3期間に係る推定パラメータ)が適正であるか否かを判定する。推定パラメータの適否判定処理については、図39乃至図41を用いて後述する。 The determination unit 3011 executes an estimation parameter suitability determination process (S3801). In the estimation parameter suitability determination process, it is determined whether or not the new estimation parameter (in the initial process, the estimation parameter related to the second period and the third period) is appropriate. The suitability determination process for the estimation parameters will be described later with reference to FIGS. 39 to 41.

制御部3003は、第2期間及び第3期間に係る新推定パラメータが適正であるか否かによって処理を分岐させる(S3803)。第2期間及び第3期間に係る新推定パラメータが適正でない場合、つまり当該新推定パラメータが不適である場合には、制御部3003は、第3期間の期間タイプ(期間タイプIDのパラメータ:i)に関する不適回数cu[i]に1を加える(S3805)。 The control unit 3003 branches the process depending on whether or not the new estimation parameters related to the second period and the third period are appropriate (S3803). If the new estimation parameters for the second period and the third period are not appropriate, that is, if the new estimation parameters are inappropriate, the control unit 3003 controls the period type of the third period (parameter of the period type ID: i). Add 1 to the inappropriate number of times cu [i] for (S3805).

変更部3013は、第1乃至3期間の期間タイプ(期間タイプIDのパラメータ:i)が最長タイプ(期間タイプID:M)であるか否かを判定する(S3807)。 The change unit 3013 determines whether or not the period type (parameter of the period type ID: i) of the first to third periods is the longest type (period type ID: M) (S3807).

第3期間の期間タイプが最長タイプでないと判定した場合には、変更部3013は、1段階長い期間タイプに変更する(S3809)。つまり、変更部3013は、期間タイプIDのパラメータiに1を加える。そして、端子Bを介して、図36に示したS3603の処理に戻る。 When it is determined that the period type of the third period is not the longest type, the changing unit 3013 changes to the period type one step longer (S3809). That is, the change unit 3013 adds 1 to the parameter i of the period type ID. Then, the process returns to the process of S3603 shown in FIG. 36 via the terminal B.

S3807において、第3期間の期間タイプが最長タイプであると判定した場合には、変更部3013は、最長タイプが所定回連続したか否かを判定する(S3811)。最長タイプが所定回連続した場合には、変更部3013は、エラーが発生したと判定する(S3813)。エラーが発生した場合には、初期処理(A)を終え、呼び出し元のメイン処理(B)に復帰する。 When it is determined in S3807 that the period type of the third period is the longest type, the changing unit 3013 determines whether or not the longest type is continuous a predetermined number of times (S3811). When the longest type continues a predetermined number of times, the changing unit 3013 determines that an error has occurred (S3813). If an error occurs, the initial process (A) is finished and the caller returns to the main process (B).

最長タイプが未だ所定回連続してない場合には、そのまま端子Bを介して、図36に示したS3603の処理に戻る。 If the longest type is not yet continuous a predetermined number of times, the process returns to the process of S3603 shown in FIG. 36 as it is via the terminal B.

S3803に示した処理の説明に戻る。第2期間及び第3期間に係る新推定パラメータが適正である場合には、制御部3003は、第3期間の期間タイプ(期間タイプIDのパラメータi)に関する適正回数cl[i]に1を加える(S3815)。 The process returns to the description of the process shown in S3803. When the new estimation parameters for the second period and the third period are appropriate, the control unit 3003 adds 1 to the appropriate number of times cl [i] for the period type (parameter type i of the period type ID) of the third period. (S3815).

更に、制御部3003は、新推定パラメータ(anew,bnew)の値を現推定パラメータ(acur,bcur)に設定する(S3817)。初期処理(A)を終えると、呼び出し元のメイン処理(B)に復帰する。 Further, the control unit 3003 sets the value of the new estimation parameter (a new , b new ) to the current estimation parameter (a cur , b cur ) (S3817). When the initial process (A) is completed, the process returns to the caller's main process (B).

本実施の形態では、推定パラメータの適否判定処理の例を2つ示す。図39に、推定パラメータの適否判定処理(A)フローを示す。判定部3011は、傾きパラメータの差分の絶対値が閾値raを下回ったか否かを判定する(S3901)。具体的には、判定部3011は、新傾きパラメータanewから、現傾きパラメータacurを引いた値の絶対値が閾値raを下回ったか否かを判定する。当該絶対値が閾値raを下回っていない場合には、判定部3011は、新推定パラメータ(anew,bnew)が不適であると判定する(S3907)。一方、当該絶対値が閾値raを下回った場合には、S3903の処理に移る。 In this embodiment, two examples of the suitability determination process of the estimation parameter are shown. FIG. 39 shows the flow of the estimation parameter suitability determination process (A). Determination unit 3011 determines whether the absolute value of the difference of the slope parameter is below the threshold r a (S3901). More specifically, the determination unit 3011 determines from the new slope parameter a new new, whether the absolute value of the value obtained by subtracting the current slope parameter a cur falls below the threshold r a. If the absolute value is not less than the threshold value r a, the determination unit 3011 determines the new estimated parameter (a new, b new) is unsuitable (S3907). On the other hand, if the absolute value is below the threshold r a proceeds to processing of S3903.

判定部3011は、切片パラメータの差分の絶対値が閾値rbを下回ったか否かを判定する(S3903)。具体的には、判定部3011は、新切片パラメータbnewから、現切片パラメータbcurを引いた値の絶対値が閾値rbを下回ったか否かを判定する。当該絶対値が閾値rbを下回っていない場合には、判定部3011は、新推定パラメータ(anew,bnew)が不適であると判定する(S3907)。一方、当該絶対値が閾値rbを下回った場合には、判定部3011は、新推定パラメータ(anew,bnew)が適正であると判定する(S3905)。推定パラメータの適否判定処理を終えると、呼び出し元の処理に復帰する。 The determination unit 3011 determines whether or not the absolute value of the difference between the intercept parameters is below the threshold value r b (S3903). Specifically, the determination unit 3011 determines whether or not the absolute value of the value obtained by subtracting the current intercept parameter b cur from the new intercept parameter b new is below the threshold value r b. If the absolute value is not less than the threshold value r b , the determination unit 3011 determines that the new estimation parameters (a new , b new ) are inappropriate (S3907). On the other hand, when the absolute value falls below the threshold value r b , the determination unit 3011 determines that the new estimation parameters (a new , b new ) are appropriate (S3905). When the suitability determination process of the estimated parameter is completed, the process returns to the caller's process.

ここでは、傾きパラメータの差分の絶対値及び切片パラメータの差分の絶対値に基づいて適否判定を行う例を示したが、S3901の処理を省いて、切片パラメータの差分の絶対値に基づいて適否判定を行うようにしてもよい。或いは、S3903の処理を省いて、傾きパラメータの差分の絶対値に基づいて適否判定を行うようにしてもよい。 Here, an example of performing suitability judgment based on the absolute value of the difference of the slope parameter and the absolute value of the difference of the intercept parameter is shown, but the process of S3901 is omitted and the suitability judgment is made based on the absolute value of the difference of the intercept parameter. May be done. Alternatively, the process of S3903 may be omitted, and the suitability determination may be performed based on the absolute value of the difference of the slope parameters.

推定パラメータの適否判定処理に関する別の例について説明する。図40に、推定パラメータの適否判定処理(B)フローを示す。判定部3011は、第j−1期間と第j期間との境界時刻tlsを特定する(S4001)。以下、推定パラメータの適否判定処理(B)について図41を用いて補足する。図41に示すように、境界時刻tlsは、第j−1期間の終了時刻に相当するとともに、第j期間の開始時刻に相当する。 Another example relating to the suitability determination process of the estimation parameter will be described. FIG. 40 shows the flow of the estimation parameter suitability determination process (B). The determination unit 3011 specifies the boundary time tl s between the j-1th period and the jth period (S4001). Hereinafter, the suitability determination process (B) of the estimation parameter will be supplemented with reference to FIG. 41. As shown in FIG. 41, the boundary time tl s corresponds to the end time of the j-1 period and also corresponds to the start time of the jth period.

判定部3011は、現推定パラメータ(acur,bcur)を用いて、境界時刻tlsに対応する推定時刻tes_curを算出する(S4003)。また、判定部3011は、新推定パラメータ(anew,bnew)を用いて、境界時刻tlsに対応する推定時刻tes_newを算出する(S4005)。 The determination unit 3011 calculates the estimated time tes_cur corresponding to the boundary time tl s using the current estimation parameters (a cur , b cur ) (S4003). Further, the determination unit 3011 calculates the estimated time tes_new corresponding to the boundary time tl s by using the new estimation parameters (a new , b new ) (S4005).

判定部3011は、推定時刻の差分の絶対値が閾値を下回ったか否かを判定する(S4007)。具体的には、判定部3011は、新推定パラメータ(anew,bnew)に基づく推定時刻tes_newから、現推定パラメータ(acur,bcur)に基づく推定時刻tes_curを引いた値の絶対値が閾値rsを下回ったか否かを判定する。 The determination unit 3011 determines whether or not the absolute value of the difference in estimated time is below the threshold value (S4007). Specifically, the determination unit 3011 is the absolute value obtained by subtracting the estimated time tes_cur based on the current estimated parameters (a cur , b cur ) from the estimated time tes_new based on the new estimated parameters (a new , b new). Determine if the value is below the threshold r s.

推定時刻の差分の絶対値が閾値を下回ったと判定した場合には、判定部3011は、新推定パラメータ(anew,bnew)が適正であると判定する(S4009)。新推定パラメータが適正であれば、図41に示したように推定時刻tes_newと推定時刻tes_curとは近い値になるはずだからである。 When it is determined that the absolute value of the difference in the estimated time is below the threshold value, the determination unit 3011 determines that the new estimation parameters (a new , b new ) are appropriate (S4009). This is because if the new estimation parameters are appropriate, the estimated time tes_new and the estimated time tes_cur should be close to each other as shown in FIG. 41.

一方、推定時刻の差分の絶対値が閾値を下回っていないと判定した場合には、判定部3011は、新推定パラメータ(anew,bnew)が不適であると判定する(S4011)。推定パラメータの適否判定処理(B)を終えると、呼び出し元の処理に復帰する。 On the other hand, when it is determined that the absolute value of the difference in the estimated time is not less than the threshold value, the determination unit 3011 determines that the new estimation parameters (a new , b new ) are inappropriate (S4011). When the suitability determination process (B) of the estimated parameter is completed, the process returns to the caller's process.

図34の説明に戻る。制御部3003は、S3407の初期処理においてエラーが発生したか否かによって処理を分岐させる(S3409)。初期処理においてエラーが発生した場合には、第2設定部3001は、スタート時刻を設定し直す(S3411)。例えば、現在時刻をスタート時刻に設定する。そして、S3403に示した処理に戻って、上述した処理を繰り返す。尚、取得処理を継続していれば、取得処理の起動は省くようにする。 Returning to the description of FIG. 34. The control unit 3003 branches the process depending on whether or not an error has occurred in the initial process of S3407 (S3409). If an error occurs in the initial processing, the second setting unit 3001 resets the start time (S3411). For example, set the current time as the start time. Then, the process returns to the process shown in S3403, and the above-mentioned process is repeated. If the acquisition process is continued, the activation of the acquisition process is omitted.

一方、初期処理においてエラーが発生していない場合には、制御部3003は、継続処理を実行する(S3413)。継続処理では、第4期間以降に関する処理を行う。 On the other hand, if no error has occurred in the initial processing, the control unit 3003 executes the continuous processing (S3413). In the continuous processing, processing related to the fourth period and thereafter is performed.

本実施の形態では、継続処理(A)を実行する。図42に、継続処理(A)フローを示す。第4期間に関する処理から始まるので、制御部3003は、期間番号のパラメータjに4を設定する(S4201)。 In the present embodiment, the continuous process (A) is executed. FIG. 42 shows the continuous processing (A) flow. Since it starts from the process related to the fourth period, the control unit 3003 sets the parameter j of the period number to 4 (S4201).

制御部3003は、取得処理(B)において時刻テーブルに格納された最新の第1時刻tlが第j期間の終了時刻に至ったか否かを判定する(S4203)。最新の第1時刻tlが第j期間の終了時刻に至っていないと判定した場合には、S4203に示した処理を繰り返す。 The control unit 3003 determines whether or not the latest first time tl stored in the time table in the acquisition process (B) has reached the end time of the jth period (S4203). When it is determined that the latest first time tl has not reached the end time of the jth period, the process shown in S4203 is repeated.

一方、最新の第1時刻tlが第j期間の終了時刻に至ったと判定した場合には、制御部3003は、第j−1期間及び第j期間に係る推定パラメータの算出処理を実行する(S4205)。次に、判定部3011は、推定パラメータの適否判定処理を実行する(S4207)。そして、端子Cを介して、図43に示したS4301の処理に移る。推定パラメータの算出処理及び推定パラメータの適否判定処理は、上述の通りである。 On the other hand, when it is determined that the latest first time tl has reached the end time of the jth period, the control unit 3003 executes the calculation processing of the estimation parameters related to the j-1th period and the jth period (S4205). ). Next, the determination unit 3011 executes the suitability determination process of the estimation parameter (S4207). Then, the process proceeds to the process of S4301 shown in FIG. 43 via the terminal C. The calculation process of the estimated parameter and the suitability determination process of the estimated parameter are as described above.

図43の説明に移る。S4301乃至S4315の処理は、図38に示したS3803乃至S3817の処理の場合と同様である。S4315の処理に続いて、短縮部3015は、短縮判定処理を実行する(S4319)。短縮判定処理では、期間長の短縮を行うか否かの判定を行う。 The explanation will move to FIG. 43. The processing of S4301 to S4315 is the same as the processing of S3803 to S3817 shown in FIG. 38. Following the process of S4315, the shortening unit 3015 executes the shortening determination process (S4319). In the shortening determination process, it is determined whether or not the period length is shortened.

図44に、短縮判定処理フローを示す。短縮部3015は、当該期間タイプID[i]の適正回数cl[i]及び不適回数cu[i]に基づいて適正指数W[i]を算出する(S4401)。具体的には、短縮部3015は、W[i]=(cl[i]+第1定数)/(cu[i]+第2定数)の式に従って適正指数W[i]を算出する。第1定数は、実数である。第2定数も、実数である。尚、期間タイプID[i]は、現在の期間タイプを示す。 FIG. 44 shows a shortening determination processing flow. The shortening unit 3015 calculates the appropriate index W [i] based on the appropriate number of times cl [i] and the inappropriate number of times cu [i] of the period type ID [i] (S4401). Specifically, the shortening unit 3015 calculates the appropriate index W [i] according to the equation W [i] = (cl [i] + first constant) / (cu [i] + second constant). The first constant is a real number. The second constant is also a real number. The period type ID [i] indicates the current period type.

短縮部3015は、適正指数W[i]が閾値rwを超えたか否かを判定する(S4403)。適正指数W[i]が閾値rwを超えた場合には、短縮部3015は、期間長を短縮すると判定する(S4405)。一方、適正指数W[i]が閾値rwを超えていない場合には、短縮部3015は、期間長を短縮しないと判定する(S4407)。短縮判定処理を終えると、呼び出し元の処理に復帰する。 The shortening unit 3015 determines whether or not the appropriate index W [i] exceeds the threshold value r w (S4403). When the appropriate index W [i] exceeds the threshold value r w , the shortening unit 3015 determines that the period length is shortened (S4405). On the other hand, when the appropriate index W [i] does not exceed the threshold value r w , the shortening unit 3015 determines that the period length is not shortened (S4407). When the shortening determination process is completed, the process returns to the caller's process.

図43の説明に戻る。短縮部3015は、期間を短縮すると判定したか否かによって処理を分岐させる(S4321)。期間を短縮すると判定した場合には、短縮部3015は、1段階短い期間タイプに変更する(S4323)。つまり、短縮部3015は、期間タイプIDのパラメータiから1を引く。一方、期間を短縮しないと判定した場合には、そのままS4325の処理に移る。 Returning to the description of FIG. 43. The shortening unit 3015 branches the process depending on whether or not it is determined that the period is shortened (S4321). If it is determined that the period is shortened, the shortening unit 3015 changes to the period type that is one step shorter (S4323). That is, the shortening unit 3015 subtracts 1 from the parameter i of the period type ID. On the other hand, if it is determined that the period is not shortened, the process proceeds to S4325 as it is.

制御部3003は、終了するか否かを判定する(S4325)。制御部3003は、例えば終了指示があったか否かを判定する。 The control unit 3003 determines whether or not to terminate (S4325). The control unit 3003 determines, for example, whether or not there is an end instruction.

終了しないと判定した場合には、制御部3003は、期間番号jに1を加える(S4327)。そして、端子Eを介して、図42に示したS4203の処理に戻る。一方、終了すると判定した場合には、継続処理(A)を終え、呼び出し元のメイン処理(B)に復帰する。 If it is determined that the process does not end, the control unit 3003 adds 1 to the period number j (S4327). Then, the process returns to the process of S4203 shown in FIG. 42 via the terminal E. On the other hand, when it is determined that the process is completed, the continuous process (A) is completed and the process returns to the caller's main process (B).

図34の説明に戻る。制御部3003は、S3413の継続処理においてエラーが発生したか否かによって処理を分岐させる(S3415)。継続処理においてエラーが発生した場合には、第2設定部3001は、スタート時刻を設定し直す(S3411)。例えば、現在時刻をスタート時刻に設定する。そして、S3403に示した処理に戻って、上述した処理を繰り返す。尚、取得処理を継続していれば、取得処理の起動は省くようにする。 Returning to the description of FIG. 34. The control unit 3003 branches the processing depending on whether or not an error has occurred in the continuous processing of S3413 (S3415). When an error occurs in the continuous processing, the second setting unit 3001 resets the start time (S3411). For example, set the current time as the start time. Then, the process returns to the process shown in S3403, and the above-mentioned process is repeated. If the acquisition process is continued, the activation of the acquisition process is omitted.

一方、継続処理においてエラーが発生していない場合には、メイン処理(B)を終える。メイン処理(B)を終える前に、制御部3003は取得処理を停止させるようにしてもよい。 On the other hand, if no error has occurred in the continuous processing, the main processing (B) is terminated. The control unit 3003 may stop the acquisition process before the main process (B) is completed.

本実施の形態によれば、外部機器で付された記録時刻を、より正しく自らの時計基準の推定時刻に改めることができる。 According to the present embodiment, the recording time set by the external device can be more accurately changed to the estimated time based on the own clock.

また、新推定パラメータを次の期間に適用するので、早いタイミングで推定時刻を得られる。 Moreover, since the new estimation parameter is applied to the next period, the estimation time can be obtained at an early timing.

また、新推定パラメータが不適である場合に期間を拡張して新推定パラメータを算出し直すので、推定時刻の誤算を補正できる。 Further, when the new estimation parameter is inappropriate, the period is extended and the new estimation parameter is recalculated, so that the miscalculation of the estimation time can be corrected.

また、短縮条件を満たす場合に次の期間を短縮するので、ローカル時計107における周波数偏差の変動による推定誤差を解消し易い。 Further, since the next period is shortened when the shortening condition is satisfied, it is easy to eliminate the estimation error due to the fluctuation of the frequency deviation in the local clock 107.

[実施の形態3]
本実施の形態では、推定パラメータの算出処理においてイテレーションを行う例について説明する。
[Embodiment 3]
In this embodiment, an example of performing iteration in the calculation process of the estimation parameter will be described.

本実施の形態では、推定パラメータの算出処理(A)に代えて、推定パラメータの算出処理(B)を実行する。図45に、推定パラメータの算出処理(B)フローを示す。S4501乃至S4513の処理は、図37に示したS3701乃至S3713の処理の場合と同様である。 In the present embodiment, the estimation parameter calculation process (B) is executed instead of the estimation parameter calculation process (A). FIG. 45 shows a flow of calculation processing (B) of estimated parameters. The processing of S4501 to S4513 is the same as the processing of S3701 to S3713 shown in FIG. 37.

第4算出部3009は、総合指数e[0]=eA 2+eB 2の式に従って、推定誤差の総合指数e[0]を算出する(S4515)。そして、第4算出部3009は、収束判定処理を実行する(S4517)。収束判定処理では、今回の推定誤差の総合指数e[0]、前回の推定誤差の総合指数e[1]及び2回前の推定誤差の総合指数e[2]に基づいて推定パラメータが収束したか否かを判定する。 The fourth calculation unit 3009 calculates the total index e [0] of the estimation error according to the formula of the total index e [0] = e A 2 + e B 2 (S4515). Then, the fourth calculation unit 3009 executes the convergence determination process (S4517). In the convergence judgment process, the estimation parameters converged based on the total index e [0] of the current estimation error, the total index e [1] of the previous estimation error, and the total index e [2] of the estimation error two times before. Judge whether or not.

図46に、収束判定処理フローを示す。第4算出部3009は、今回の総合指数e[0]が0であるか否かを判定する(S4601)。今回の総合指数e[0]が0であると判定した場合には、第4算出部3009は、推定パラメータが収束したと判定する(S4603)。そして、収束判定処理を終え、呼び出し元の推定パラメータの算出処理(B)に復帰する。 FIG. 46 shows a convergence test processing flow. The fourth calculation unit 3009 determines whether or not the total index e [0] this time is 0 (S4601). When it is determined that the total index e [0] this time is 0, the fourth calculation unit 3009 determines that the estimation parameters have converged (S4603). Then, the convergence test processing is completed, and the process returns to the calculation process (B) of the estimation parameter of the caller.

一方、今回の総合指数e[0]が0ではないと判定した場合には、第4算出部3009は、今回の総合指数e[0]と前回の総合指数e[1]とが一致するか否かを判定する(S4605)。今回の総合指数e[0]と前回の総合指数e[1]とが一致すると判定した場合には、第4算出部3009は、推定パラメータが収束したと判定する(S4603)。そして、収束判定処理を終え、呼び出し元の推定パラメータの算出処理(B)に復帰する。 On the other hand, when it is determined that the current comprehensive index e [0] is not 0, does the fourth calculation unit 3009 match the current comprehensive index e [0] with the previous comprehensive index e [1]? Whether or not it is determined (S4605). When it is determined that the current comprehensive index e [0] and the previous comprehensive index e [1] match, the fourth calculation unit 3009 determines that the estimation parameters have converged (S4603). Then, the convergence test processing is completed, and the process returns to the calculation process (B) of the estimation parameter of the caller.

一方、今回の総合指数e[0]と前回の総合指数e[1]とが一致しないと判定した場合には、第4算出部3009は、3回目以降に総合指数が減少しなくなったか否かを判定する(S4607)。この例で、第4算出部3009は、(e[2]≦e[1] and e[1]≧e[0] and e[1]≠−1 and e[2]≠−1)の条件式を満たすか否かを判定する。尚、この例においてe[1]及びe[2]の初期値は−1であり、(e[1]≠−1 and e[2]≠−1)の式は、3回目以降であるための条件に相当する。 On the other hand, if it is determined that the current comprehensive index e [0] and the previous comprehensive index e [1] do not match, the fourth calculation unit 3009 determines whether or not the comprehensive index does not decrease after the third time. Is determined (S4607). In this example, the fourth calculation unit 3009 uses the condition (e [2] ≤ e [1] and e [1] ≥ e [0] and e [1] ≠ -1 and e [2] ≠ -1). Determine if the expression is satisfied. In this example, the initial values of e [1] and e [2] are -1, and the formula (e [1] ≠ -1 and e [2] ≠ -1) is the third and subsequent times. Corresponds to the condition of.

3回目以降に総合指数が減少しなくなったと判定した場合には、第4算出部3009は、推定パラメータが収束したと判定する(S4603)。そして、収束判定処理を終え、呼び出し元の推定パラメータの算出処理(B)に復帰する。 When it is determined that the comprehensive index does not decrease after the third time, the fourth calculation unit 3009 determines that the estimation parameters have converged (S4603). Then, the convergence test processing is completed, and the process returns to the calculation process (B) of the estimation parameter of the caller.

一方、3回目以降に総合指数が減少しなくなったと判定しない場合には、第4算出部3009は、推定パラメータが収束していないと判定する(S4609)。そして、収束判定処理を終え、呼び出し元の推定パラメータの算出処理(B)に復帰する。 On the other hand, if it is not determined that the total index does not decrease after the third time, the fourth calculation unit 3009 determines that the estimation parameters have not converged (S4609). Then, the convergence test processing is completed, and the process returns to the calculation process (B) of the estimation parameter of the caller.

図45の説明に戻る。S4517における収束判定処理を終えると、端子Fを介して、図47に示したS4701の処理に移る。 Returning to the description of FIG. 45. When the convergence test processing in S4517 is completed, the process proceeds to the processing of S4701 shown in FIG. 47 via the terminal F.

尚、推定パラメータに関する差分二乗和(anew−acur2+(bnew−bcur2を総合指数eとして用いるようにしてもよい。 The sum of squared differences (a new −a cur ) 2 + (b new −b cur ) 2 with respect to the estimated parameters may be used as the total index e.

図47の説明に移る。第4算出部3009は、推定パラメータが収束したと判定したか否かによって処理を分岐させる(S4701)。新推定パラメータが収束していないと判定した場合には、第4算出部3009は、anew=anew+(eB−eA)/(tlB−tlA)の式及びbnew=bnew+eBの式に従って、新推定パラメータ(anew,bnew)を更新する(S4703)。また、第4算出部3009は、前回の総合指数を2回前の総合指数のパラメータに移す(S4705)。更に、第4算出部3009は、今回の総合指数を前回の総合指数のパラメータに移す(S4707)。端子Gを介して、図45に示したS4503の処理に戻る。 The explanation moves to FIG. 47. The fourth calculation unit 3009 branches the process depending on whether or not it is determined that the estimation parameters have converged (S4701). If the new estimated parameter is determined not to converge, the fourth calculation section 3009, a new = a new + ( e B -e A) / formula (tl B -tl A) and b new new = b The new estimation parameters (a new , b new ) are updated according to the equation of new + e B (S4703). Further, the fourth calculation unit 3009 shifts the previous comprehensive index to the parameter of the previous comprehensive index two times (S4705). Further, the fourth calculation unit 3009 shifts the current comprehensive index to the parameter of the previous comprehensive index (S4707). The process returns to the process of S4503 shown in FIG. 45 via the terminal G.

一方、新推定パラメータが収束したと判定した場合には、第4算出部3009は、2回前の総合指数及び前回の総合指数を初期化する(S4709)。この例では、e[1]及びe[2]に−1が設定される。 On the other hand, when it is determined that the new estimation parameters have converged, the fourth calculation unit 3009 initializes the comprehensive index two times before and the previous comprehensive index (S4709). In this example, -1 is set for e [1] and e [2].

本実施の形態によれば、イテレーションによって推定パラメータの精度が高まる。 According to this embodiment, the iteration enhances the accuracy of the estimation parameters.

[実施の形態4]
上述した実施の形態では、将来の第1時刻tlに新推定パラメータを適用する例を示したが、本実施の形態では、既知の第1時刻tlに新推定パラメータを適用する例について説明する。
[Embodiment 4]
In the above-described embodiment, an example of applying the new estimation parameter to the future first time tl is shown, but in the present embodiment, an example of applying the new estimation parameter to the known first time tl will be described.

図48に示すように、新推定パラメータを算出する基礎となった期間のうち、後方の期間に当該新推定パラメータを適用する。例えば、第P+1期間及び第P+2期間における時刻データに基づいて算出された推定パラメータは、第P+2期間に含まれる第1時刻に遡って適用される。このようにすれば、実施の形態2及び3の場合に比べて推定時刻の精度が高まる。 As shown in FIG. 48, the new estimation parameter is applied to the later period of the period that is the basis for calculating the new estimation parameter. For example, the estimated parameters calculated based on the time data in the P + 1 period and the P + 2 period are applied retroactively to the first time included in the P + 2 period. In this way, the accuracy of the estimated time is improved as compared with the cases of the second and third embodiments.

本実施の形態では、取得処理(B)に代えて、取得処理(C)を実行する。図49に、取得処理(C)フローを示す。取得処理(C)では、推定時刻teの算出を行わない。S4901乃至S4907の処理は、図35に示したS3501乃至S3507の処理の場合と同様である。また、S4909の処理は、図35に示したS3511の処理の場合と同様である。 In the present embodiment, the acquisition process (C) is executed instead of the acquisition process (B). FIG. 49 shows the acquisition process (C) flow. In the acquisition process (C), the estimated time te is not calculated. The processing of S4901 to S4907 is the same as the processing of S3501 to S3507 shown in FIG. 35. Further, the processing of S4909 is the same as the processing of S3511 shown in FIG. 35.

本実施の形態では、初期処理(A)に代えて、初期処理(B)を実行する。図50に、初期処理(B)フローを示す。S5001乃至S5009の処理は、図36に示したS3601乃至S3609の処理の場合と同様である。S5009の処理を終えると、端子Hを介して、図51に示したS5101の処理に移る。 In the present embodiment, the initial process (B) is executed instead of the initial process (A). FIG. 50 shows the initial processing (B) flow. The processing of S5001 to S5009 is the same as the processing of S3601 to S3609 shown in FIG. When the process of S5009 is completed, the process proceeds to the process of S5101 shown in FIG. 51 via the terminal H.

図51の説明に移る。S5101乃至S5115の処理は、図38に示したS3801乃至S3815の処理の場合と同様である。 The description will move to FIG. 51. The processing of S5101 to S5115 is the same as the processing of S3801 to S3815 shown in FIG. 38.

第3算出部3007は、現推定パラメータ(acur,bcur)を用いて第1期間及び第2期間における推定時刻teを算出する(S5117)。第3算出部3007は、算出した推定時刻teを時刻テーブルのレコードに格納する。第3算出部3007は、新推定パラメータ(anew,bnew)を用いて第3期間における推定時刻teを算出する(S5119)。第3算出部3007は、算出した推定時刻teを時刻テーブルのレコードに格納する。 The third calculation unit 3007 calculates the estimated time te in the first period and the second period using the current estimation parameters (a cur , b cur) (S5117). The third calculation unit 3007 stores the calculated estimated time te in the record of the time table. The third calculation unit 3007 calculates the estimated time te in the third period using the new estimation parameters (a new , b new) (S5119). The third calculation unit 3007 stores the calculated estimated time te in the record of the time table.

S5121の処理は、図38に示したS3817の処理の場合と同様である。初期処理(B)を終えると、呼び出し元のメイン処理(B)に復帰する。 The process of S5121 is the same as the process of S3817 shown in FIG. 38. When the initial process (B) is completed, the process returns to the caller's main process (B).

本実施の形態では、継続処理(A)に代えて、継続処理(B)を実行する。図52に、継続処理(B)フローを示す。S5201乃至S5207の処理は、図42に示したS4201乃至S4207の処理の場合と同様である。端子Jを介して、図53に示したS5301の処理に移る。 In the present embodiment, the continuous processing (B) is executed instead of the continuous processing (A). FIG. 52 shows a continuous processing (B) flow. The processing of S5201 to S5207 is the same as the processing of S4201 to S4207 shown in FIG. 42. The process proceeds to the process of S5301 shown in FIG. 53 via the terminal J.

図53の説明に移る。S5301乃至S5315の処理は、図43に示したS4301乃至S4315の処理の場合と同様である。 The description will move to FIG. 53. The processing of S5301 to S5315 is the same as the processing of S4301 to S4315 shown in FIG. 43.

第3算出部3007は、新推定パラメータ(anew,bnew)を用いて第j期間における推定時刻teを算出する(S5319)。第3算出部3007は、算出した推定時刻teを時刻テーブルのレコードに格納する。 The third calculation unit 3007 calculates the estimated time te in the jth period using the new estimation parameters (a new , b new) (S5319). The third calculation unit 3007 stores the calculated estimated time te in the record of the time table.

S5321乃至S5329の処理は、図43に示したS4319乃至S4327の処理の場合と同様である。継続処理(B)を終えると、呼び出し元のメイン処理(B)に復帰する。 The processing of S5321 to S5329 is the same as the processing of S4319 to S4327 shown in FIG. 43. When the continuous processing (B) is completed, the process returns to the main processing (B) of the caller.

本実施の形態によれば、推定時刻の精度がより高まる。 According to this embodiment, the accuracy of the estimated time is further improved.

[実施の形態5]
推定パラメータの適否判定処理において、推定パラメータに関する差分二乗和(anew−acur2+(bnew−bcur2を算出して、当該値が閾値を下回った場合に、判定部3011は、新推定パラメータ(anew,bnew)が適正であると判定するようにしてもよい。また、当該値が閾値を下回っていない場合に、判定部3011は、新推定パラメータ(anew,bnew)が不適であると判定するようにしてもよい。
[Embodiment 5]
In the suitability judgment process of the estimated parameter, the difference squared sum (a new −a cur ) 2 + (b new −b cur ) 2 related to the estimated parameter is calculated, and when the value falls below the threshold value, the determination unit 3011 , The new estimation parameters (a new , b new ) may be determined to be appropriate. Further, when the value does not fall below the threshold value, the determination unit 3011 may determine that the new estimation parameters (a new , b new ) are inappropriate.

[実施の形態6]
上述した実施の形態では、滞留遅延の影響を受けない範囲で短い期間に調整する例を示したが、周波数偏差の影響を受けない範囲で長い期間に調整するようにしてもよい。
[Embodiment 6]
In the above-described embodiment, an example of adjusting for a short period within a range not affected by the residence delay has been shown, but adjustment may be made for a long period within a range not affected by the frequency deviation.

この場合には、例えば最長の期間から始めるようにする。そして、推定パラメータが不適である場合に、期間を短くして推定パラメータの計算をし直す。また、推定パラメータが適正である場合に、所定の拡張条件を満たせば次の期間が長くなるように調整する。 In this case, for example, start from the longest period. Then, when the estimation parameter is inappropriate, the period is shortened and the estimation parameter is recalculated. Further, when the estimation parameters are appropriate, the next period is adjusted to be longer if the predetermined extension conditions are satisfied.

[実施の形態7]
上述した実施の形態では、現推定パラメータの基礎となった2期間のうち後方の期間と、新推定パラメータの基礎となった2期間のうち前方の期間が重複する例を示した。但し、現推定パラメータの基礎となった2期間と新推定パラメータの基礎となった2期間とが重複しないようにしてもよい。
[Embodiment 7]
In the above-described embodiment, an example is shown in which the rear period of the two periods on which the current estimation parameter is based and the front period of the two periods on which the new estimation parameter is based overlap. However, the two periods on which the current estimation parameters are based and the two periods on which the new estimation parameters are based may not overlap.

図54に示した例では、第P+3期間の終了時点において、現推定パラメータの基礎となった第P期間及び第P+1期間と、新推定パラメータの基礎となった第P+2期間及び第P+3期間とが重複しない。この例で、新推定パラメータは、それ以降の第P+4期間及び第P+5期間において適用される。 In the example shown in FIG. 54, at the end of the P + 3 period, the P + 2 period and the P + 3 period, which are the basis of the current estimation parameter, and the P + 2 period and the P + 3 period, which are the basis of the new estimation parameter, are Not duplicate. In this example, the new estimation parameters are applied in the subsequent P + 4 and P + 5 periods.

図55に示した例では、図54の場合と同様に、第P+3期間の終了時点において、現推定パラメータの基礎となった第P期間及び第P+1期間と、新推定パラメータの基礎となった第P+2期間及び第P+3期間とが重複しない。この例で、新推定パラメータは、既知の第P+2期間及び第P+3期間において適用される。 In the example shown in FIG. 55, as in the case of FIG. 54, at the end of the P + 3 period, the P period and the P + 1 period which became the basis of the current estimation parameter and the first which became the basis of the new estimation parameter. The P + 2 period and the P + 3 period do not overlap. In this example, the new estimation parameters are applied in the known P + 2 and P + 3 periods.

尚、実施の形態2、実施の形態3及び図54に示した例は、リアルタイム処理に向いている面がある。一方、実施の形態4及び図55に示した例は、バッチ処理に向いている面がある。 The examples shown in the second embodiment, the third embodiment and 54 are suitable for real-time processing. On the other hand, the examples shown in the fourth embodiment and 55 have some aspects suitable for batch processing.

以上本発明の実施の形態を説明したが、本発明はこれに限定されるものではない。例えば、上述の機能ブロック構成はプログラムモジュール構成に一致しない場合もある。 Although the embodiments of the present invention have been described above, the present invention is not limited thereto. For example, the functional block configuration described above may not match the program module configuration.

また、上で説明した各記憶領域の構成は一例であって、上記のような構成でなければならないわけではない。さらに、処理フローにおいても、処理結果が変わらなければ、処理の順番を入れ替えることや複数の処理を並列に実行させるようにしても良い。 Further, the configuration of each storage area described above is an example, and does not have to be the configuration as described above. Further, also in the processing flow, if the processing result does not change, the order of the processing may be changed or a plurality of processing may be executed in parallel.

なお、上で述べたデータ収集装置201は、コンピュータ装置であって、図56に示すように、メモリ2501とCPU(Central Processing Unit)2503とハードディスク・ドライブ(HDD:Hard Disk Drive)2505と表示装置2509に接続される表示制御部2507とリムーバブル・ディスク2511用のドライブ装置2513と入力装置2515とネットワークに接続するための通信制御部2517とがバス2519で接続されている。オペレーティング・システム(OS:Operating System)及び本実施例における処理を実施するためのアプリケーション・プログラムは、HDD2505に格納されており、CPU2503により実行される際にはHDD2505からメモリ2501に読み出される。CPU2503は、アプリケーション・プログラムの処理内容に応じて表示制御部2507、通信制御部2517、ドライブ装置2513を制御して、所定の動作を行わせる。また、処理途中のデータについては、主としてメモリ2501に格納されるが、HDD2505に格納されるようにしてもよい。本発明の実施例では、上で述べた処理を実施するためのアプリケーション・プログラムはコンピュータ読み取り可能なリムーバブル・ディスク2511に格納されて頒布され、ドライブ装置2513からHDD2505にインストールされる。インターネットなどのネットワーク及び通信制御部2517を経由して、HDD2505にインストールされる場合もある。このようなコンピュータ装置は、上で述べたCPU2503、メモリ2501などのハードウエアとOS及びアプリケーション・プログラムなどのプログラムとが有機的に協働することにより、上で述べたような各種機能を実現する。 The data collecting device 201 described above is a computer device, and as shown in FIG. 56, a memory 2501, a CPU (Central Processing Unit) 2503, a hard disk drive (HDD) 2505, and a display device. The display control unit 2507 connected to the 2509, the drive device 2513 for the removable disk 2511, the input device 2515, and the communication control unit 2517 for connecting to the network are connected by a bus 2519. The operating system (OS: Operating System) and the application program for executing the processing in this embodiment are stored in the HDD 2505, and are read from the HDD 2505 to the memory 2501 when executed by the CPU 2503. The CPU 2503 controls the display control unit 2507, the communication control unit 2517, and the drive device 2513 according to the processing contents of the application program to perform a predetermined operation. Further, although the data in the process of processing is mainly stored in the memory 2501, it may be stored in the HDD 2505. In the embodiment of the present invention, the application program for performing the above-described processing is stored and distributed on the computer-readable removable disk 2511 and installed from the drive device 2513 to the HDD 2505. It may be installed on the HDD 2505 via a network such as the Internet and a communication control unit 2517. Such a computer device realizes various functions as described above by organically collaborating with the hardware such as the CPU 2503 and the memory 2501 described above and the program such as the OS and the application program. ..

以上述べた本発明の実施の形態をまとめると、以下のようになる。 The embodiments of the present invention described above can be summarized as follows.

本実施の形態に係る情報処理装置は、(A)外部機器が送信してから変動遅延を伴って到達する第1時計基準の記録時刻を含むデータの当該記録時刻の各々について、当該記録時刻を第2時計基準で改めた推定時刻を算出する第1算出部と、(B)記録時刻の各々について、当該記録時刻を改めた推定時刻と、当該記録時刻を含むデータが到達した第2時計基準の読取時刻との時刻差を算出する第2算出部と、(C)2以上の期間の各々における最小の時刻差に基づいて、推定時刻の算出に用いられるパラメータを算出する第3算出部とを有する。 The information processing apparatus according to the present embodiment (A) sets the recording time for each of the recording times of the data including the recording time of the first clock reference that arrives with a fluctuation delay after being transmitted by the external device. For each of the first calculation unit that calculates the estimated time revised by the second clock reference and (B) the recording time, the estimated time that the recording time was revised and the second clock reference that the data including the recording time arrived. A second calculation unit that calculates the time difference from the reading time of (C) and a third calculation unit that calculates the parameters used to calculate the estimated time based on the minimum time difference in each of the two or more periods. Has.

このようにすれば、外部機器で付された記録時刻を、より正しく自らの時計基準の推定時刻に改めることができる。 In this way, the recording time set by the external device can be more accurately changed to the estimated time based on the own clock.

更に、パラメータは、記録時刻に乗ずる係数と、当該記録時刻と当該係数との積に加算する値とを含むようにしてもよい。 Further, the parameter may include a coefficient to be multiplied by the recording time and a value to be added to the product of the recording time and the coefficient.

このようにすれば、推定時刻の算出における処理負荷が比較的小さい。 By doing so, the processing load in calculating the estimated time is relatively small.

更に、第1算出部は、パラメータを当該パラメータの基礎となった2以上の期間より後の記録時刻に適用するようにしてもよい。 Further, the first calculation unit may apply the parameter to the recording time after the two or more periods on which the parameter is based.

このようにすれば、早いタイミングで推定時刻を得られる。 By doing so, the estimated time can be obtained at an early timing.

更に、第1算出部は、パラメータを当該パラメータの基礎となった2以上の期間内の記録時刻の少なくとも一部に適用するようにしてもよい。 Further, the first calculation unit may apply the parameter to at least a part of the recording time within the two or more periods on which the parameter is based.

このようにすれば、推定時刻の精度が高まる。 In this way, the accuracy of the estimated time is improved.

更に、第1算出部における処理と、第2算出部における処理と、第3算出部における処理とを繰り返す処理を行う制御部を有するようにしてもよい。 Further, it may have a control unit that repeats the processing in the first calculation unit, the processing in the second calculation unit, and the processing in the third calculation unit.

このようにすれば、継続的に推定時刻を求めることができる。 In this way, the estimated time can be continuously obtained.

更に、前回のパラメータとの比較によって、今回のパラメータの適否を判定する判定部を有するようにしてもよい。 Further, it may have a determination unit for determining the suitability of the current parameter by comparing with the previous parameter.

このようにすれば、推定時刻の誤算を防ぐことができる。 By doing so, it is possible to prevent miscalculation of the estimated time.

更に、今回のパラメータが不適であると判定された場合に、第3算出部は、少なくとも1の期間が拡張された2以上の期間に基づいて、今回のパラメータを算出し直すようにしてもよい。 Further, when it is determined that the current parameter is inappropriate, the third calculation unit may recalculate the current parameter based on two or more periods in which at least one period is extended. ..

このようにすれば、推定時刻の誤算を補正できる。 In this way, the miscalculation of the estimated time can be corrected.

更に、今回のパラメータが適正であると判定され且つ所定条件を満たす場合に、次回の基礎となる2以上の期間のうち少なくとも1の期間を短縮する短縮部を有するようにしてもよい。 Further, when it is determined that the parameter of this time is appropriate and a predetermined condition is satisfied, a shortening unit for shortening at least one of two or more periods which is the basis of the next time may be provided.

このようにすれば、推定時刻の誤差を抑制できる。 In this way, the error of the estimated time can be suppressed.

更に、第3算出部は、パラメータを算出する過程で、当該パラメータが所定条件を満たすまで当該パラメータの補正を反復するようにしてもよい。 Further, the third calculation unit may repeat the correction of the parameter until the parameter satisfies a predetermined condition in the process of calculating the parameter.

このようにすれば、推定時刻の精度が高まる。 In this way, the accuracy of the estimated time is improved.

なお、上で述べた情報処理装置の処理をコンピュータに行わせるためのプログラムを作成することができ、当該プログラムは、例えばフレキシブルディスク、CD−ROM、光磁気ディスク、半導体メモリ、ハードディスク等のコンピュータ読み取り可能な記憶媒体又は記憶装置に格納されるようにしてもよい。尚、中間的な処理結果は、一般的にメインメモリ等の記憶装置に一時保管される。 It should be noted that a program for causing the computer to perform the processing of the information processing apparatus described above can be created, and the program can be read by a computer such as a flexible disk, a CD-ROM, a magneto-optical disk, a semiconductor memory, or a hard disk. It may be stored in a possible storage medium or storage device. The intermediate processing result is generally temporarily stored in a storage device such as a main memory.

以上の実施例を含む実施形態に関し、さらに以下の付記を開示する。 The following additional notes will be further disclosed with respect to the embodiments including the above embodiments.

(付記1)
外部機器が送信してから変動遅延を伴って到達する第1時計基準の記録時刻を含むデータの当該記録時刻の各々について、当該記録時刻を第2時計基準で改めた推定時刻を算出する第1算出部と、
前記記録時刻の各々について、当該記録時刻を改めた前記推定時刻と、当該記録時刻を含むデータが到達した前記第2時計基準の読取時刻との時刻差を算出する第2算出部と、
2以上の期間の各々における最小の前記時刻差に基づいて、前記推定時刻の算出に用いられるパラメータを算出する第3算出部と
を有する情報処理装置。
(Appendix 1)
For each of the recording times of the data including the recording time of the first clock reference that arrives with a fluctuation delay after being transmitted by the external device, the first is to calculate the estimated time obtained by revising the recording time with the second clock reference. Calculation part and
For each of the recording times, a second calculation unit that calculates the time difference between the estimated time obtained by revising the recording time and the reading time of the second clock reference in which the data including the recording time arrives.
An information processing device having a third calculation unit that calculates parameters used for calculating the estimated time based on the minimum time difference in each of two or more periods.

(付記2)
前記パラメータは、前記記録時刻に乗ずる係数と、当該記録時刻と当該係数との積に加算する値とを含む
付記1記載の情報処理装置。
(Appendix 2)
The information processing apparatus according to Appendix 1, wherein the parameter includes a coefficient to be multiplied by the recording time and a value to be added to the product of the recording time and the coefficient.

(付記3)
前記第1算出部は、前記パラメータを当該パラメータの基礎となった前記2以上の期間より後の記録時刻に適用する
付記1又は2に記載の情報処理装置。
(Appendix 3)
The information processing apparatus according to Appendix 1 or 2, wherein the first calculation unit applies the parameter to a recording time after the two or more periods on which the parameter is based.

(付記4)
前記第1算出部は、前記パラメータを当該パラメータの基礎となった前記2以上の期間内の記録時刻の少なくとも一部に適用する
付記1又は2に記載の情報処理装置。
(Appendix 4)
The information processing apparatus according to Appendix 1 or 2, wherein the first calculation unit applies the parameter to at least a part of the recording time within the two or more periods on which the parameter is based.

(付記5)
更に、
前記第1算出部における処理と、前記第2算出部における処理と、前記第3算出部における処理とを繰り返す処理を行う制御部
を有する付記1乃至4のいずれか1つ記載の情報処理装置。
(Appendix 5)
In addition
The information processing apparatus according to any one of Supplementary note 1 to 4, which has a control unit that repeats the processing in the first calculation unit, the processing in the second calculation unit, and the processing in the third calculation unit.

(付記6)
更に、
前回の前記パラメータとの比較によって、今回の前記パラメータの適否を判定する判定部
を有する付記5記載の情報処理装置。
(Appendix 6)
In addition
The information processing apparatus according to Appendix 5, which has a determination unit for determining the suitability of the parameter this time by comparison with the parameter of the previous time.

(付記7)
前記今回のパラメータが不適であると判定された場合に、前記第3算出部は、少なくとも1の期間が拡張された前記2以上の期間に基づいて、前記今回のパラメータを算出し直す
付記6記載の情報処理装置。
(Appendix 7)
When it is determined that the parameter of this time is inappropriate, the third calculation unit recalculates the parameter of this time based on the two or more periods in which at least one period is extended. Information processing equipment.

(付記8)
更に、
前記今回のパラメータが適正であると判定され且つ所定条件を満たす場合に、次回の基礎となる前記2以上の期間のうち少なくとも1の期間を短縮する短縮部
を有する付記6又は7記載の情報処理装置。
(Appendix 8)
In addition
The information processing according to Appendix 6 or 7, which has a shortening part for shortening at least one of the two or more periods which is the basis for the next time when the parameter of this time is determined to be appropriate and the predetermined condition is satisfied. Device.

(付記9)
前記第3算出部は、前記パラメータを算出する過程で、当該パラメータが所定条件を満たすまで当該パラメータの補正を反復する
付記1乃至8のいずれか1つ記載の情報処理装置。
(Appendix 9)
The information processing apparatus according to any one of Supplementary note 1 to 8, wherein the third calculation unit repeats correction of the parameter until the parameter satisfies a predetermined condition in the process of calculating the parameter.

(付記10)
情報処理装置と、
外部機器と
を有し、
前記情報処理装置は、
外部機器が送信してから変動遅延を伴って到達する第1時計基準の記録時刻を含むデータの当該記録時刻の各々について、当該記録時刻を第2時計基準で改めた推定時刻を算出する第1算出部と、
前記記録時刻の各々について、当該記録時刻を改めた前記推定時刻と、当該記録時刻を含むデータが到達した前記第2時計基準の読取時刻との時刻差を算出する第2算出部と、
2以上の期間の各々における最小の前記時刻差に基づいて、前記推定時刻の算出に用いられるパラメータを算出する第3算出部と
を有し、
前記外部機器は、
前記第1時計基準の前記記録時刻を含むデータを送信する
情報処理システム。
(Appendix 10)
Information processing device and
Has an external device,
The information processing device
For each of the recording times of the data including the recording time of the first clock reference that arrives with a fluctuation delay after being transmitted by the external device, the first is to calculate the estimated time obtained by revising the recording time with the second clock reference. Calculation part and
For each of the recording times, a second calculation unit that calculates the time difference between the estimated time obtained by revising the recording time and the reading time of the second clock reference in which the data including the recording time arrives.
It has a third calculation unit that calculates the parameters used to calculate the estimated time based on the minimum time difference in each of the two or more periods.
The external device is
An information processing system that transmits data including the recording time based on the first clock.

(付記11)
外部機器が送信してから変動遅延を伴って到達する第1時計基準の記録時刻を含むデータの当該記録時刻の各々について、当該記録時刻を第2時計基準で改めた推定時刻を算出し、
前記記録時刻の各々について、当該記録時刻を改めた前記推定時刻と、当該記録時刻を含むデータが到達した前記第2時計基準の読取時刻との時刻差を算出し、
2以上の期間の各々における最小の前記時刻差に基づいて、前記推定時刻の算出に用いられるパラメータを算出する
処理を含み、コンピュータにより実行される情報処理方法。
(Appendix 11)
For each of the recording times of the data including the recording time of the first clock reference that arrives with a fluctuation delay after being transmitted by the external device, the estimated time obtained by revising the recording time based on the second clock reference is calculated.
For each of the recording times, the time difference between the estimated time obtained by revising the recording time and the reading time based on the second clock when the data including the recording time arrived was calculated.
An information processing method executed by a computer that includes a process of calculating parameters used in calculating the estimated time based on the minimum time difference in each of two or more periods.

101 外部機器 103 計測部
105 付加部 107 ローカル時計
109 送信部 201 データ収集装置
203 オペレーティングシステム 205 アプリケーションプログラム
207 受信部 209 バッファ
211 システム時計 1301 第1設定部
1303 第1取得部 1305 第1算出部
1307 第2算出部 1309 特定部
1311 更新部 1321 パラメータ記憶部
1323 テーブル記憶部 3001 第2設定部
3003 制御部 3005 第2取得部
3007 第3算出部 3009 第4算出部
3010 第5算出部 3011 判定部
3013 変更部 3015 短縮部
3021 パラメータ記憶部 3023 時刻テーブル記憶部
3025 期間タイプ記憶部 3027 回数記憶部
101 External equipment 103 Measurement unit 105 Addition unit 107 Local clock 109 Transmission unit 201 Data collection device 203 Operating system 205 Application program 207 Reception unit 209 Buffer 211 System clock 1301 1st setting unit 1303 1st acquisition unit 1305 1st calculation unit 1307 2 Calculation unit 1309 Specific unit 1311 Update unit 1321 Parameter storage unit 1323 Table storage unit 3001 Second setting unit 3003 Control unit 3005 Second acquisition unit 3007 Third calculation unit 3009 Fourth calculation unit 3010 Fifth calculation unit 3011 Judgment unit 3013 Change Part 3015 Shortening part
3021 Parameter storage unit 3023 Time table storage unit 3025 Period type storage unit 3027 Number of times storage unit

Claims (11)

外部機器が送信してから変動遅延を伴って到達する第1時計基準の記録時刻と前記外部機器で取得又は生成された第1データとを含む第2データの当該記録時刻の各々について、推定パラメータを用いて当該記録時刻を第2時計基準で改めた推定時刻を算出し、前記第1データに対応付けて格納する第1算出部と、
前記記録時刻の各々について、当該記録時刻を改めた前記推定時刻と、当該記録時刻を含む第2データが到達した前記第2時計基準の読取時刻との時刻差を算出する第2算出部と、
各々所定の時間長を有する複数の期間のうち2以上の期間の各々における最小の前記時刻差に基づいて、前記推定パラメータを算出する第3算出部と
を有し、
前記第1の算出部は、前記第3算出部が算出した前記推定パラメータを、所定の期間における記録時刻に対する推定時刻の算出に用いる
情報処理装置。
Estimated parameters for each of the recording time of the first clock reference that arrives with a fluctuation delay after transmission by the external device and the recording time of the second data including the first data acquired or generated by the external device. a first calculator for calculating the estimated time at which the recording time was revised in the second clock reference, and stores in association with the first data using,
For each of the recording times, a second calculation unit that calculates the time difference between the estimated time obtained by revising the recording time and the reading time of the second clock reference in which the second data including the recording time has arrived.
Each based on the minimum of the time difference in the two or more each of the periods of the plurality of periods having a predetermined time length, have a third calculation unit for calculating the estimated parameters,
The first calculation unit is an information processing device that uses the estimation parameters calculated by the third calculation unit to calculate an estimated time with respect to a recording time in a predetermined period.
前記推定パラメータは、前記記録時刻に乗ずる係数と、当該記録時刻と当該係数との積に加算する値とを含む
請求項1記載の情報処理装置。
The information processing apparatus according to claim 1, wherein the estimated parameter includes a coefficient to be multiplied by the recording time and a value to be added to the product of the recording time and the coefficient.
前記所定の期間は、前記定パラメータの基礎となった前記2以上の期間より後の期間である
請求項1又は2に記載の情報処理装置。
It said predetermined period of time, the information processing apparatus according to claim 1 or 2 which is a period after the said two or more periods was the basis of the estimated parameters.
前記所定の期間は、前記定パラメータの基礎となった前記2以上の期間内の少なくとも一部の期間である
請求項1又は2に記載の情報処理装置。
It said predetermined period of time, the information processing apparatus according to claim 1 or 2 is at least part of the period in the two or more periods was the basis of the estimated parameters.
更に、
前記第1算出部における処理と、前記第2算出部における処理と、前記第3算出部における処理とを繰り返す処理を行う制御部
を有する請求項1乃至4のいずれか1つ記載の情報処理装置。
In addition
The information processing apparatus according to any one of claims 1 to 4, further comprising a control unit that repeats the processing in the first calculation unit, the processing in the second calculation unit, and the processing in the third calculation unit. ..
更に、
前回の前記推定パラメータとの比較によって、今回の前記推定パラメータの適否を判定する判定部
を有する請求項5記載の情報処理装置。
In addition
The information processing apparatus according to claim 5, further comprising a determination unit for determining the suitability of the estimated parameters this time by comparing with the estimated parameters of the previous time.
前記今回の推定パラメータが不適であると判定された場合に、前記第3算出部は、少なくとも1の期間が拡張された前記2以上の期間に基づいて、前記今回の推定パラメータを算出し直す
請求項6記載の情報処理装置。
When it is determined that the current estimation parameter is inappropriate, the third calculation unit requests to recalculate the current estimation parameter based on the two or more periods in which at least one period is extended. Item 6. The information processing apparatus according to item 6.
更に、
前記今回の推定パラメータが適正であると判定され且つ所定条件を満たす場合に、次回の基礎となる前記2以上の期間のうち少なくとも1の期間を短縮する短縮部
を有する請求項6又は7記載の情報処理装置。
In addition
If the current estimated parameter is determined to be properly and satisfies a predetermined condition, according to claim 6 or 7, wherein having a reducing section to reduce at least one period among the two or more time periods to be next underlying Information processing device.
前記第3算出部は、前記推定パラメータを算出する過程で、当該推定パラメータが所定条件を満たすまで当該推定パラメータの補正を反復する
請求項1乃至8のいずれか1つ記載の情報処理装置。
The third calculation unit, wherein the process of calculating the estimated parameters, the estimated parameter information processing apparatus according any one of claims 1 to 8, repeating the correction of the estimated parameter to a predetermined condition is satisfied.
情報処理装置と、
外部機器と
を有し、
前記情報処理装置は、
外部機器が送信してから変動遅延を伴って到達する第1時計基準の記録時刻と前記外部機器で取得又は生成された第1データとを含む第2データの当該記録時刻の各々について、推定パラメータを用いて当該記録時刻を第2時計基準で改めた推定時刻を算出し、前記第1データに対応付けて格納する第1算出部と、
前記記録時刻の各々について、当該記録時刻を改めた前記推定時刻と、当該記録時刻を含む第2データが到達した前記第2時計基準の読取時刻との時刻差を算出する第2算出部と、
各々所定の時間長を有する複数の期間のうち2以上の期間の各々における最小の前記時刻差に基づいて、前記推定時刻の算出に用いられる推定パラメータを算出する第3算出部と
を有し、
前記第1の算出部は、前記第3算出部が算出した前記推定パラメータを、所定の期間における記録時刻に対する推定時刻の算出に用い、
前記外部機器は、
前記第1時計基準の前記記録時刻と前記外部機器で取得又は生成された第1データとを含む第2データを送信する
情報処理システム。
Information processing device and
Has an external device,
The information processing device
Estimated parameters for each of the recording time of the first clock reference that arrives with a fluctuation delay after transmission by the external device and the recording time of the second data including the first data acquired or generated by the external device. a first calculator for calculating the estimated time at which the recording time was revised in the second clock reference, and stores in association with the first data using,
For each of the recording times, a second calculation unit that calculates the time difference between the estimated time obtained by revising the recording time and the reading time of the second clock reference in which the second data including the recording time has arrived.
It has a third calculation unit that calculates an estimation parameter used for calculating the estimated time based on the minimum time difference in each of two or more periods among a plurality of periods each having a predetermined time length.
The first calculation unit uses the estimation parameter calculated by the third calculation unit to calculate the estimated time with respect to the recording time in a predetermined period.
The external device is
An information processing system that transmits second data including the recording time based on the first clock and the first data acquired or generated by the external device.
外部機器が送信してから変動遅延を伴って到達する第1時計基準の記録時刻と前記外部機器で取得又は生成された第1データとを含む第2データの当該記録時刻の各々について、推定パラメータを用いて当該記録時刻を第2時計基準で改めた推定時刻を算出し、前記第1データに対応付けて格納する第1算出処理と、
前記記録時刻の各々について、当該記録時刻を改めた前記推定時刻と、当該記録時刻を含む第2データが到達した前記第2時計基準の読取時刻との時刻差を算出する第2算出処理と、
各々所定の時間長を有する複数の期間のうち2以上の期間の各々における最小の前記時刻差に基づいて、前記推定パラメータを算出する第3算出処理と
を含み、コンピュータにより実行される情報処理方法であって、
前記第1算出処理において、前記第3算出処理において算出した前記推定パラメータを、所定の期間における記録時刻に対する推定時刻の算出に用いる
情報処理方法
Estimated parameters for each of the recording time of the first clock reference that arrives with a fluctuation delay after transmission by the external device and the recording time of the second data including the first data acquired or generated by the external device. The first calculation process of calculating the estimated time obtained by revising the recording time based on the second clock reference and storing it in association with the first data.
For each of the recording times, a second calculation process for calculating the time difference between the estimated time obtained by revising the recording time and the reading time of the second clock reference in which the second data including the recording time has arrived.
An information processing method executed by a computer, including a third calculation process for calculating the estimated parameters based on the minimum time difference in each of two or more periods among a plurality of periods each having a predetermined time length. And
An information processing method in which the estimated parameter calculated in the third calculation process is used in the calculation of the estimated time with respect to the recording time in a predetermined period in the first calculation process.
JP2017026579A 2016-04-01 2017-02-16 Information processing equipment, information processing system, information processing method and information processing program Active JP6953735B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/475,561 US10191509B2 (en) 2016-04-01 2017-03-31 Information processing device, information processing method, and computer readable storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2016074753 2016-04-01
JP2016074753 2016-04-01

Publications (2)

Publication Number Publication Date
JP2017188876A JP2017188876A (en) 2017-10-12
JP6953735B2 true JP6953735B2 (en) 2021-10-27

Family

ID=60045056

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017026579A Active JP6953735B2 (en) 2016-04-01 2017-02-16 Information processing equipment, information processing system, information processing method and information processing program

Country Status (1)

Country Link
JP (1) JP6953735B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6684409B1 (en) * 2018-10-29 2020-04-22 豊美 中村 Time synchronization system
WO2021240783A1 (en) 2020-05-29 2021-12-02 三菱電機株式会社 Time correction device, time correction method, and time correction program

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1064589B1 (en) * 1998-03-27 2003-05-14 Siemens Aktiengesellschaft Method for synchronising a local time base on a central time base and device for implementing said method with preferred applications
JP3846330B2 (en) * 2002-02-21 2006-11-15 富士電機システムズ株式会社 Collected data synchronization method and data processing system
JP5423312B2 (en) * 2009-10-23 2014-02-19 富士通株式会社 Data correction apparatus and data correction method
KR101658204B1 (en) * 2010-12-17 2016-09-30 한국전자통신연구원 Apparatus and method for estimating timestamp
JP6193009B2 (en) * 2013-06-21 2017-09-06 株式会社東芝 Wireless communication apparatus and wireless communication system
JP2015114290A (en) * 2013-12-13 2015-06-22 オムロン株式会社 Time correction device, measuring apparatus, and time correction method

Also Published As

Publication number Publication date
JP2017188876A (en) 2017-10-12

Similar Documents

Publication Publication Date Title
US9519306B2 (en) Distribution device, distribution system, and distribution method
JP6953735B2 (en) Information processing equipment, information processing system, information processing method and information processing program
CN107710650B (en) For the mthods, systems and devices synchronous with the clock on lossy networks in time-varying
US20150207877A1 (en) Time synchronization client, a system and a non-transitory computer readable medium
US20100185781A1 (en) System and Method for Measuring Clock Skew on a Network
US10637788B2 (en) Stability of delay-based congestion control in a computer network using an alpha-beta filter and round-trip-time predictor
CN103312733A (en) Method and device for information processing
US20200127808A1 (en) Image transmission system, imaging terminal, display terminal, adjustment method, adjustment assistance method, and non-transitory computer-readable recording medium storing program
CN106656642B (en) Method, device and system for measuring round trip delay
CN109918038A (en) A kind of audio broadcasting speed synchronous method and system
JP7305990B2 (en) Transfer program, transfer method, and information processing device
US9258240B2 (en) Available bandwidth estimating device
CN111443641B (en) Sampling rate correction method, system, device and storage medium
KR102466996B1 (en) Method and apparatus for predicting eye position
US20180145780A1 (en) Online prediction of clock offsets between networked machines
KR100894358B1 (en) Time synchronization method of the teminals
US11463338B2 (en) Method for measuring available bandwidth and communications apparatus
US10191509B2 (en) Information processing device, information processing method, and computer readable storage medium
CN109426911B (en) Method and device for evaluating software running environment quality of equipment
KR102064575B1 (en) Method, apparatus, system and computer program for enhancing the accuracy of Time Synchronization between devices
US10599918B2 (en) Information processing method and information processing apparatus
JP4651988B2 (en) Clock accuracy correction device
CN108833276B (en) Method and device for determining preferred path and server
JP2014116771A (en) Information processing system
JP2018046390A (en) Processing unit, system, processing method and processing program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20191112

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200923

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20201110

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20201221

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210316

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210419

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: 20210831

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210913

R150 Certificate of patent or registration of utility model

Ref document number: 6953735

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150