JP2012175567A - Synchronization system, and synchronization method of synchronization system - Google Patents

Synchronization system, and synchronization method of synchronization system Download PDF

Info

Publication number
JP2012175567A
JP2012175567A JP2011037479A JP2011037479A JP2012175567A JP 2012175567 A JP2012175567 A JP 2012175567A JP 2011037479 A JP2011037479 A JP 2011037479A JP 2011037479 A JP2011037479 A JP 2011037479A JP 2012175567 A JP2012175567 A JP 2012175567A
Authority
JP
Japan
Prior art keywords
time
relay
frame
measurement
notification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2011037479A
Other languages
Japanese (ja)
Inventor
Takayoshi Iida
隆義 飯田
Kosuke Ogata
幸亮 尾形
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2011037479A priority Critical patent/JP2012175567A/en
Publication of JP2012175567A publication Critical patent/JP2012175567A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Electric Clocks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

PROBLEM TO BE SOLVED: To enable synchronization between a master device and slave devices in a one-to-multi way with high-accuracy even when the network symmetry is lost.SOLUTION: A master device transmits a measurement frame 111. Slave devices A and B set a relay time period "α1+α2" and relay the measurement frame 111. A slave device C sets this relay time period and replies with a measurement response frame 112. The slave devices B and A add relay time periods "β1" and "β2" and relay the measurement response frame 112. The master device calculates a time period Dm obtained by subtracting the relay time period from a transmission/reception time period "Dm'" of the measurement frame 111 and the measurement response frame 112, and sets the calculated time period Dm and a reference time Tm and transmits a notification frame 113. The slave devices A and B set a relay time period "γ1+γ2" and relay the notification frame 113. The slave devices A, B and C calculate a synchronization time based on a transmission/reception time period "Dsx'" of the measurement frame 111 and the measurement response frame 112 and a setting value of the notification frame 113.

Description

本発明は、例えば、マスタ装置の時刻とスレーブ装置の時刻とを同期する同期システムおよび同期システムの同期方法に関するものである。   The present invention relates to, for example, a synchronization system that synchronizes the time of a master device and the time of a slave device, and a synchronization method of the synchronization system.

従来の同期方式は、マスタ装置とスレーブ装置との間に中継装置(例えばハブやルータ)が接続された構成を前提としてネットワークの対称性を仮定し、時刻同期を実現していた。
ネットワークの対称性とは、中継装置がフレームを中継する場合に必要となる処理時間が、スレーブ装置からマスタ装置への通信とマスタ装置からスレーブ装置への通信とで等しい、つまり、往復の通信時間が等しい、ことを意味する。
The conventional synchronization method realizes time synchronization assuming a network symmetry on the assumption that a relay device (for example, a hub or a router) is connected between a master device and a slave device.
Network symmetry means that the processing time required when a relay device relays a frame is equal in communication from the slave device to the master device and communication from the master device to the slave device, that is, round-trip communication time. Means that they are equal.

従来の同期方式は、ネットワークの対称性が保証されている場合に正確な同期を実現できる。しかし、実際の運用上、ネットワークの負荷等によってはネットワークの対称性が保証されない場合もある。このため、実際には従来の同期方式では正確な同期を実現できない。   Conventional synchronization schemes can achieve accurate synchronization when network symmetry is guaranteed. However, in actual operation, network symmetry may not be guaranteed depending on the load on the network. Therefore, in practice, accurate synchronization cannot be realized by the conventional synchronization method.

この課題を解決する同期方式として、中継装置の処理時間を計測し、その計測結果を利用する同期方式がある(特許文献1)。   As a synchronization method for solving this problem, there is a synchronization method that measures the processing time of the relay device and uses the measurement result (Patent Document 1).

特開2010−62729号公報JP 2010-62729 A

しかしながら、上述した同期方式は、マスタ装置とスレーブ装置とが1対1で同期することを前提としているため、マスタ装置とスレーブ装置とが1対多で同期するような方式として利用することができない。   However, since the above-described synchronization method is based on the premise that the master device and the slave device are synchronized one-to-one, it cannot be used as a method in which the master device and the slave device are synchronized one-to-many. .

本発明は、例えば、ネットワークの対称性が崩れてもマスタ装置とスレーブ装置とが1対多で高精度に同期できるようにすることを目的とする。   An object of the present invention is to make it possible to synchronize a master device and a slave device with high accuracy in a one-to-many manner even when the symmetry of the network is lost.

本発明の同期システムは、端末装置と、前記端末装置に計測フレームを送信して前記端末装置から計測応答フレームを受信するマスタ装置と、前記マスタ装置と前記端末装置との間で通信される前記計測フレームと前記計測応答フレームとを所定の中継準備処理後に中継する1台以上の中継装置とを備える。
前記マスタ装置は、
前記計測フレームを送信すると共に、各中継装置が前記計測フレームの中継準備処理と前記計測応答フレームの中継準備処理とに要した中継準備時間を表す中継準備時間情報を含んだ計測応答フレームを受信するマスタ装置通信部と、
前記マスタ装置通信部が前記計測フレームを送信してから前記マスタ装置通信部が前記計測応答フレームを受信するまでの時間をマスタ装置通信時間として計測するマスタ装置計測部と、
前記マスタ装置計測部によって計測されたマスタ装置通信時間と前記計測応答フレームに含まれる前記中継準備時間情報とに基づいて前記マスタ装置通信時間から前記マスタ装置通信時間に含まれる中継準備時間を除いた時間をマスタ装置伝播時間として算出するマスタ装置算出部と、
現在時刻を基準時刻として含むと共に前記マスタ装置算出部によって算出されたマスタ装置伝播時間を含む通知フレームを生成するマスタ装置フレーム生成部とを備える。
前記マスタ装置通信部は、前記マスタ装置フレーム生成部によって生成された通知フレームを前記端末装置へ送信する。
各中継装置は、
前記計測フレームと前記計測応答フレームと前記通知フレームとを送受信する中継装置通信部と、
前記中継装置通信部が前記計測フレームを受信してから前記中継装置通信部が前記計測応答フレームを送信するまでの時間を中継装置通信時間として計測する中継装置計測部と、
前記中継装置計測部によって計測された中継装置通信時間と前記計測応答フレームに含まれる中継準備時間情報とに基づいて前記中継装置通信時間から前記中継装置通信時間に含まれる中継準備時間を除いた時間を中継装置伝播時間として算出し、算出した中継装置伝播時間と前記通知フレームに含まれるマスタ装置伝播時間とに基づいて前記マスタ装置が前記通知フレームを送信してから前記中継装置通信部が前記通知フレームを受信するまでに要する時間を通知伝播時間として算出し、算出した通知伝播時間と前記通知フレームに含まれる基準時刻とに基づいて前記基準時刻から前記通知伝播時間が経過した時刻を同期時刻として算出し、算出した同期時刻を内部時計に設定する中継装置同期部とを備える。
The synchronization system of the present invention includes a terminal device, a master device that transmits a measurement frame to the terminal device and receives a measurement response frame from the terminal device, and the master device and the terminal device that communicate with each other. And one or more relay devices that relay the measurement frame and the measurement response frame after a predetermined relay preparation process.
The master device is
While transmitting the measurement frame, each relay apparatus receives a measurement response frame including relay preparation time information indicating a relay preparation time required for the relay preparation process of the measurement frame and the relay preparation process of the measurement response frame A master device communication unit;
A master device measurement unit that measures a time from when the master device communication unit transmits the measurement frame until the master device communication unit receives the measurement response frame as a master device communication time;
Based on the master device communication time measured by the master device measurement unit and the relay preparation time information included in the measurement response frame, the relay preparation time included in the master device communication time is excluded from the master device communication time. A master device calculator that calculates time as a master device propagation time;
A master device frame generation unit that generates a notification frame including the current time as a reference time and including the master device propagation time calculated by the master device calculation unit.
The master device communication unit transmits the notification frame generated by the master device frame generation unit to the terminal device.
Each relay device
A relay device communication unit that transmits and receives the measurement frame, the measurement response frame, and the notification frame;
A relay device measuring unit that measures a time from when the relay device communication unit receives the measurement frame until the relay device communication unit transmits the measurement response frame as a relay device communication time;
Time obtained by removing the relay preparation time included in the relay device communication time from the relay device communication time based on the relay device communication time measured by the relay device measurement unit and the relay preparation time information included in the measurement response frame As the relay device propagation time, and based on the calculated relay device propagation time and the master device propagation time included in the notification frame, the relay device communication unit notifies the notification after the master device transmits the notification frame. The time required to receive the frame is calculated as the notification propagation time, and the time when the notification propagation time has elapsed from the reference time based on the calculated notification propagation time and the reference time included in the notification frame is used as the synchronization time. And a relay device synchronization unit that calculates and sets the calculated synchronization time in the internal clock.

本発明によれば、例えば、ネットワークの対称性が崩れてもマスタ装置とスレーブ装置(中継装置)とが1対多で高精度に同期できる。   According to the present invention, for example, even if the symmetry of the network is lost, the master device and the slave device (relay device) can be synchronized with high accuracy with a one-to-many relationship.

実施の形態1における同期システム100の構成図。1 is a configuration diagram of a synchronization system 100 according to Embodiment 1. FIG. 実施の形態1における通信フレームのフォーマットを示す図。FIG. 3 shows a format of a communication frame in the first embodiment. 実施の形態1におけるマスタ装置200の機能構成図。2 is a functional configuration diagram of a master device 200 according to Embodiment 1. FIG. 実施の形態1におけるスレーブ装置300の機能構成図。2 is a functional configuration diagram of a slave device 300 according to Embodiment 1. FIG. 実施の形態1における同期システム100の同期方法を示すフローチャート。3 is a flowchart illustrating a synchronization method of the synchronization system 100 according to the first embodiment. 実施の形態1における同期システム100の処理の具体例を示すシーケンス図。FIG. 3 is a sequence diagram illustrating a specific example of processing of the synchronization system 100 according to the first embodiment. 実施の形態1における同期システム100で記憶する計測時間の具体例を示す一覧表。7 is a list showing specific examples of measurement times stored in the synchronization system 100 according to the first embodiment. 実施の形態1におけるマスタ装置200およびスレーブ装置300のハードウェア資源の一例を示す図。2 is a diagram illustrating an example of hardware resources of a master device 200 and a slave device 300 according to Embodiment 1. FIG. 実施の形態2における同期システム100の構成図。FIG. 3 is a configuration diagram of a synchronization system 100 according to a second embodiment. 実施の形態3における通信フレームのフォーマットを示す図。FIG. 11 shows a format of a communication frame in the third embodiment. 実施の形態3におけるマスタ装置200の機能構成図。FIG. 10 is a functional configuration diagram of a master device 200 in a third embodiment. 実施の形態3におけるスレーブ装置300の機能構成図。FIG. 10 is a functional configuration diagram of a slave device 300 according to a third embodiment. 実施の形態3における同期システム100の同期方法を示すフローチャート。10 is a flowchart showing a synchronization method of the synchronization system 100 according to the third embodiment. 実施の形態3における同期システム100の処理の具体例を示すシーケンス図。FIG. 11 is a sequence diagram illustrating a specific example of processing of the synchronization system 100 according to the third embodiment. 実施の形態3における同期システム100の処理の具体例を示すシーケンス図。FIG. 11 is a sequence diagram illustrating a specific example of processing of the synchronization system 100 according to the third embodiment. 実施の形態3における同期システム100で記憶する計測時間の具体例を示す一覧表。10 is a list showing specific examples of measurement times stored in synchronization system 100 according to Embodiment 3. 実施の形態3における同期処理の一例を示す図である。FIG. 20 is a diagram illustrating an example of synchronization processing in the third embodiment. 実施の形態3における同期処理の一例を示す図である。FIG. 20 is a diagram illustrating an example of synchronization processing in the third embodiment.

実施の形態1.
マスタ装置と複数台のスレーブ装置とを同期する同期システムについて説明する。
Embodiment 1 FIG.
A synchronization system that synchronizes a master device and a plurality of slave devices will be described.

図1は、実施の形態1における同期システム100の構成図である。
実施の形態1における同期システム100の構成について、図1に基づいて説明する。
FIG. 1 is a configuration diagram of a synchronization system 100 according to the first embodiment.
The configuration of the synchronization system 100 in the first embodiment will be described with reference to FIG.

同期システム100は、1台のマスタ装置と3台のスレーブ装置A・B・Cとを備える。
マスタ装置は一つ以上の通信ポート101を持ち、スレーブ装置A・B・Cは二つ以上の通信ポート101を持ち、各通信ポート101には通信ケーブル102が接続される。
つまり、マスタ装置とスレーブ装置A・B・Cとは通信ケーブル102を用いてデイジーチェーン方式で接続されている。
The synchronization system 100 includes one master device and three slave devices A, B, and C.
The master device has one or more communication ports 101, the slave devices A, B, and C have two or more communication ports 101, and a communication cable 102 is connected to each communication port 101.
That is, the master device and the slave devices A, B, and C are connected by the daisy chain method using the communication cable 102.

マスタ装置とスレーブ装置A・B・Cとは、後述する計測フレーム111、計測応答フレーム112および通知フレーム113を通信して時刻を同期させる。   The master device and the slave devices A, B, and C communicate a measurement frame 111, a measurement response frame 112, and a notification frame 113, which will be described later, to synchronize time.

以下、マスタ装置を「マスタ装置200」と記し、末端に接続されたスレーブ装置Cを「末端のスレーブ装置300」と記し、マスタ装置とスレーブ装置Cとの間に接続されているスレーブ装置A・Bを「中間のスレーブ装置300」と記す。   Hereinafter, the master device is referred to as “master device 200”, the slave device C connected to the terminal is referred to as “terminal slave device 300”, and the slave device A connected between the master device and the slave device C. B is referred to as “intermediate slave device 300”.

図1に示す構成は同期システム100の構成の一例であり、スレーブ装置300の台数は2台または4台以上であっても構わない。
また、マスタ装置200と各スレーブ装置300との接続形態(トポロジ)は、デイジーチェーン方式によるライン構造以外の接続形態であっても構わない。例えば、ツリー状、スター状またはリング状の接続形態を用いて構わない。
The configuration shown in FIG. 1 is an example of the configuration of the synchronization system 100, and the number of slave devices 300 may be two or four or more.
Further, the connection form (topology) between the master apparatus 200 and each slave apparatus 300 may be a connection form other than the line structure based on the daisy chain method. For example, a tree-shaped, star-shaped or ring-shaped connection form may be used.

図2は、実施の形態1における通信フレームのフォーマットを示す図である。
実施の形態1で通信される計測フレーム111、計測応答フレーム112および通知フレーム113について、図2に基づいて説明する。
FIG. 2 is a diagram showing a format of a communication frame in the first embodiment.
The measurement frame 111, the measurement response frame 112, and the notification frame 113 communicated in the first embodiment will be described with reference to FIG.

計測フレーム111は、マスタ装置200によって生成される。
計測フレーム111は、マスタ装置200によって送信され、中間のスレーブ装置300によって中継(転送)され、末端のスレーブ装置300によって受信される。
The measurement frame 111 is generated by the master device 200.
The measurement frame 111 is transmitted by the master device 200, relayed (transferred) by the intermediate slave device 300, and received by the slave device 300 at the end.

計測フレーム111は、「宛先」「送信元」「フレーム種別」「先行中継時間」を含んだ通信データ(パケットともいう)である。
「宛先」には、末端のスレーブ装置300Cのアドレス情報(例えば、IPアドレス)が設定される。
「送信元」には、マスタ装置200のアドレス情報が設定される。
「フレーム種別」には、計測フレーム111を識別する識別子が設定される。
「先行中継時間」には、計測フレーム111を中継するための中継準備処理に要した中継準備時間の合計値(先行中継準備時間)が設定される。以下、計測フレーム111に設定された先行中継時間を「MFP」と記す。
The measurement frame 111 is communication data (also referred to as a packet) including “destination”, “transmission source”, “frame type”, and “preceding relay time”.
In “destination”, address information (eg, IP address) of the slave device 300C at the end is set.
In the “transmission source”, address information of the master device 200 is set.
In “Frame type”, an identifier for identifying the measurement frame 111 is set.
In the “preceding relay time”, a total value of relay preparation time (preceding relay preparation time) required for relay preparation processing for relaying the measurement frame 111 is set. Hereinafter, the preceding relay time set in the measurement frame 111 is referred to as “MFP”.

計測応答フレーム112は、末端のスレーブ装置300によって生成される。
計測応答フレーム112は、末端のスレーブ装置300によって送信され、中間のスレーブ装置300によって中継され、マスタ装置200によって受信される。
The measurement response frame 112 is generated by the slave device 300 at the end.
The measurement response frame 112 is transmitted by the slave device 300 at the end, relayed by the intermediate slave device 300, and received by the master device 200.

計測応答フレーム112は、「宛先」「送信元」「フレーム種別」「総中継時間」を含んだ通信データである。
「宛先」には、マスタ装置200のアドレス情報が設定される。
「送信元」には、末端のスレーブ装置300のアドレス情報が設定される。
「フレーム種別」には、計測応答フレーム112を識別する識別子が設定される。
「総中継時間」には、計測フレーム111の中継準備処理と計測応答フレーム112の中継準備処理とに要した中継準備時間の合計値(総中継準備時間、中継準備時間情報)が設定される。以下、計測応答フレーム112に設定された総中継時間を「TP」と記す。
The measurement response frame 112 is communication data including “destination”, “transmission source”, “frame type”, and “total relay time”.
In the “destination”, address information of the master device 200 is set.
In the “transmission source”, address information of the slave device 300 at the end is set.
In the “frame type”, an identifier for identifying the measurement response frame 112 is set.
In the “total relay time”, a total value of relay preparation time (total relay preparation time and relay preparation time information) required for the relay preparation process of the measurement frame 111 and the relay preparation process of the measurement response frame 112 is set. Hereinafter, the total relay time set in the measurement response frame 112 is referred to as “TP”.

通知フレーム113は、マスタ装置200によって生成される。
通知フレーム113は、マスタ装置200によって送信され、中間のスレーブ装置300によって中継され、末端のスレーブ装置300によって受信される。
The notification frame 113 is generated by the master device 200.
The notification frame 113 is transmitted by the master device 200, relayed by the intermediate slave device 300, and received by the slave device 300 at the end.

通知フレーム113は、「宛先」「送信元」「フレーム種別」「基準時刻」「補正後マスタ往復伝播遅延時間」「先行中継時間」を含んだ通信データである。
「宛先」には、末端のスレーブ装置300のアドレス情報が設定される。
「送信元」には、マスタ装置200のアドレス情報が設定される。
「フレーム種別」には、通知フレーム113を識別する識別子が設定される。
「基準時刻」には、通知フレーム113を送信するときの時刻が設定される。以下、通知フレーム113に設定された基準時刻を「Tm」と記す。
「補正後マスタ往復伝播遅延時間」には、マスタ装置200が計測フレーム111を送信してから計測応答フレーム112を受信するまでの時間から総中継時間TPを差し引いた時間(マスタ装置伝播時間)が設定される。以下、通知フレーム113に設定された補正後マスタ往復伝播遅延時間を「Dm」と記す。
「先行中継時間」には、通知フレーム113の中継準備処理に要した中継準備時間の合計値(通知中継準備時間)が設定される。以下、通知フレーム113に設定された先行中継時間を「SFP」と記す。
The notification frame 113 is communication data including “destination”, “transmission source”, “frame type”, “reference time”, “corrected master round-trip propagation delay time”, and “preceding relay time”.
In the “destination”, address information of the slave device 300 at the end is set.
In the “transmission source”, address information of the master device 200 is set.
In the “frame type”, an identifier for identifying the notification frame 113 is set.
In the “reference time”, a time when the notification frame 113 is transmitted is set. Hereinafter, the reference time set in the notification frame 113 is referred to as “Tm”.
In the “corrected master round-trip propagation delay time”, a time (master device propagation time) obtained by subtracting the total relay time TP from the time from when the master device 200 transmits the measurement frame 111 until the measurement response frame 112 is received. Is set. Hereinafter, the corrected master round-trip propagation delay time set in the notification frame 113 is referred to as “Dm”.
In the “preceding relay time”, the total value of the relay preparation time required for the relay preparation process of the notification frame 113 (notification relay preparation time) is set. Hereinafter, the preceding relay time set in the notification frame 113 is referred to as “SFP”.

図3は、実施の形態1におけるマスタ装置200の機能構成図である。
実施の形態1におけるマスタ装置200の機能構成について、図3に基づいて説明する。
FIG. 3 is a functional configuration diagram of master device 200 in the first embodiment.
A functional configuration of master device 200 in the first embodiment will be described with reference to FIG.

マスタ装置200は、マスタ装置通信部210、マスタ装置フレーム生成部220、マスタ装置算出部230、マスタ装置計測部240およびマスタ装置記憶部290を備える。   The master device 200 includes a master device communication unit 210, a master device frame generation unit 220, a master device calculation unit 230, a master device measurement unit 240, and a master device storage unit 290.

マスタ装置通信部210は、マスタ装置200の通信処理(マスタ装置通信処理)を行う。
例えば、マスタ装置通信部210は計測フレーム111を送信し、計測応答フレーム112を受信し、通知フレーム113を送信する。
The master device communication unit 210 performs communication processing (master device communication processing) of the master device 200.
For example, the master device communication unit 210 transmits the measurement frame 111, receives the measurement response frame 112, and transmits the notification frame 113.

マスタ装置計測部240は各種の時間を計測する(マスタ装置計測処理)。
例えば、マスタ装置計測部240は、マスタ装置通信部210が計測フレーム111を送信してからマスタ装置通信部210が計測応答フレーム112を受信するまでの時間を計測する。以下、この計測時間を「マスタ往復伝播遅延時間Dm’」(マスタ装置通信時間)という。
The master device measurement unit 240 measures various times (master device measurement processing).
For example, the master device measurement unit 240 measures the time from when the master device communication unit 210 transmits the measurement frame 111 to when the master device communication unit 210 receives the measurement response frame 112. Hereinafter, this measurement time is referred to as “master round-trip propagation delay time Dm ′” (master device communication time).

マスタ装置算出部230は各種の時間を算出する(マスタ装置算出処理)。
例えば、マスタ装置算出部230は、マスタ装置計測部240によって計測されたマスタ往復伝播遅延時間Dm’と計測応答フレーム112に含まれる総中継時間TP(中継準備時間情報、総中継準備時間)とに基づいて「補正後マスタ往復伝播遅延時間Dm」(マスタ装置伝播時間)を算出する。補正後マスタ往復伝播遅延時間Dmは、マスタ往復伝播遅延時間Dm’からマスタ往復伝播遅延時間Dm’に含まれる総中継時間TPを除いた時間である。
The master device calculation unit 230 calculates various times (master device calculation processing).
For example, the master device calculation unit 230 uses the master round trip propagation delay time Dm ′ measured by the master device measurement unit 240 and the total relay time TP (relay preparation time information, total relay preparation time) included in the measurement response frame 112. Based on this, the “corrected master round trip propagation delay time Dm” (master device propagation time) is calculated. The corrected master round-trip propagation delay time Dm is a time obtained by removing the total relay time TP included in the master round-trip propagation delay time Dm ′ from the master round-trip propagation delay time Dm ′.

マスタ装置フレーム生成部220は、計測フレーム111と通知フレーム113とを生成する(マスタ装置フレーム生成処理)。
例えば、マスタ装置フレーム生成部220は、現在時刻を基準時刻Tmとして含むと共にマスタ装置算出部230によって算出された補正後マスタ往復伝播遅延時間Dmを含む通知フレーム113を生成する。
The master device frame generation unit 220 generates a measurement frame 111 and a notification frame 113 (master device frame generation processing).
For example, the master device frame generation unit 220 generates the notification frame 113 including the current time as the reference time Tm and including the corrected master round-trip propagation delay time Dm calculated by the master device calculation unit 230.

マスタ装置記憶部290は、マスタ装置200が使用するデータを記憶する。
計測フレーム111、計測応答フレーム112および通知フレーム113は、マスタ装置記憶部290に記憶されるデータの一例である。
マスタ往復伝播遅延時間Dm’および補正後マスタ往復伝播遅延時間Dmは、マスタ装置記憶部290に記憶されるデータの一例である。
The master device storage unit 290 stores data used by the master device 200.
The measurement frame 111, the measurement response frame 112, and the notification frame 113 are examples of data stored in the master device storage unit 290.
The master round-trip propagation delay time Dm ′ and the corrected master round-trip propagation delay time Dm are examples of data stored in the master device storage unit 290.

図4は、実施の形態1におけるスレーブ装置300の機能構成図である。
実施の形態1におけるスレーブ装置300の機能構成について、図4に基づいて説明する。
FIG. 4 is a functional configuration diagram of the slave device 300 according to the first embodiment.
A functional configuration of slave device 300 in the first embodiment will be described with reference to FIG.

中間のスレーブ装置300(中継装置の一例)と末端のスレーブ装置300(端末装置の一例)とは、スレーブ装置通信部310、スレーブ装置フレーム処理部320、スレーブ装置算出部330、スレーブ装置計測部340およびスレーブ装置同期部350を備える。
また、各スレーブ装置300は、スレーブ装置記憶部390を備える。
The intermediate slave device 300 (an example of a relay device) and the end slave device 300 (an example of a terminal device) are a slave device communication unit 310, a slave device frame processing unit 320, a slave device calculation unit 330, and a slave device measurement unit 340. And a slave device synchronization unit 350.
Each slave device 300 includes a slave device storage unit 390.

スレーブ装置通信部310は、スレーブ装置300の通信処理(中継装置通信処理、端末装置通信処理)を行う。
例えば、中間のスレーブ装置300のスレーブ装置通信部310(中継装置通信部の一例)は、計測フレーム111と計測応答フレーム112と通知フレーム113とを送受信する。
末端のスレーブ装置300のスレーブ装置通信部310(端末装置通信部の一例)は、計測フレーム111を受信し、計測応答フレーム112を送信し、通知フレーム113を受信する。
The slave device communication unit 310 performs communication processing (relay device communication processing, terminal device communication processing) of the slave device 300.
For example, the slave device communication unit 310 (an example of the relay device communication unit) of the intermediate slave device 300 transmits and receives the measurement frame 111, the measurement response frame 112, and the notification frame 113.
The slave device communication unit 310 (an example of the terminal device communication unit) of the terminal slave device 300 receives the measurement frame 111, transmits the measurement response frame 112, and receives the notification frame 113.

スレーブ装置計測部340は、各種の時間を計測する(中継装置計測処理、端末装置計測処理)。   The slave device measurement unit 340 measures various times (relay device measurement processing, terminal device measurement processing).

例えば、中間のスレーブ装置300のスレーブ装置計測部340(中継装置計測部の一例)は、スレーブ往復伝播遅延時間Ds’を計測する。
また、スレーブ装置計測部340は計測フレーム111の中継準備時間、計測応答フレーム112の中継準備時間および通知フレーム113の中継準備時間を計測する。
スレーブ往復伝播遅延時間Ds’(中継装置通信時間)は、スレーブ装置通信部310が計測フレーム111を受信してからスレーブ装置通信部310が計測応答フレーム112を送信するまでの時間である。
計測フレーム111の中継準備時間は、スレーブ装置通信部310が計測フレーム111を受信してから計測フレーム111の中継準備処理が終了するまでの時間である。
計測応答フレーム112の中継準備時間は、スレーブ装置通信部310が計測応答フレーム112を受信してから計測応答フレーム112の中継準備処理が終了するまでの時間である。
通知フレーム113の中継準備時間は、スレーブ装置通信部310が通知フレーム113を受信してから通知フレーム113の中継準備処理が終了するまでの時間である。
For example, the slave device measurement unit 340 (an example of the relay device measurement unit) of the intermediate slave device 300 measures the slave round-trip propagation delay time Ds ′.
The slave device measurement unit 340 measures the relay preparation time of the measurement frame 111, the relay preparation time of the measurement response frame 112, and the relay preparation time of the notification frame 113.
The slave round trip propagation delay time Ds ′ (relay device communication time) is a time from when the slave device communication unit 310 receives the measurement frame 111 to when the slave device communication unit 310 transmits the measurement response frame 112.
The relay preparation time of the measurement frame 111 is a time from when the slave device communication unit 310 receives the measurement frame 111 to when the relay preparation process of the measurement frame 111 ends.
The relay preparation time of the measurement response frame 112 is a time from when the slave device communication unit 310 receives the measurement response frame 112 to when the relay preparation process of the measurement response frame 112 ends.
The relay preparation time of the notification frame 113 is a time from when the slave device communication unit 310 receives the notification frame 113 to when the relay preparation processing of the notification frame 113 ends.

例えば、末端のスレーブ装置300のスレーブ装置計測部340(端末装置計測部の一例)は、スレーブ往復伝播遅延時間Ds’を計測する。
スレーブ往復伝播遅延時間Ds’(端末装置遅延時間)は、スレーブ装置通信部310が計測フレーム111を受信してからスレーブ装置通信部310が計測応答フレーム112を送信するまでの時間である。
For example, the slave device measurement unit 340 (an example of the terminal device measurement unit) of the terminal slave device 300 measures the slave round-trip propagation delay time Ds ′.
The slave round trip propagation delay time Ds ′ (terminal device delay time) is a time from when the slave device communication unit 310 receives the measurement frame 111 to when the slave device communication unit 310 transmits the measurement response frame 112.

スレーブ装置算出部330は、各種の時間を算出する(中継装置算出処理)。
例えば、中間のスレーブ装置300のスレーブ装置算出部330(中継装置算出部の一例)は、新たな先行中継時間MFP、新たな総中継時間TPおよび新たな先行中継時間SFPを算出する。
新たな先行中継時間MFPは、スレーブ装置計測部340によって計測された計測フレーム111の中継準備時間と計測フレーム111に含まれる先行中継時間MFP(先行中継準備時間)とを合計した時間である。
新たな総中継時間TPは、スレーブ装置計測部340によって計測された計測応答フレーム112の中継準備時間と計測応答フレーム112に含まれる総中継時間TP(総中継準備時間)とを合計した時間である。
新たな先行中継時間SFPは、スレーブ装置計測部340によって計測された通知フレーム113の中継準備時間と通知フレーム113に含まれる先行中継時間SFP(通知中継準備時間)とを合計した時間である。
The slave device calculation unit 330 calculates various times (relay device calculation processing).
For example, the slave device calculation unit 330 (an example of the relay device calculation unit) of the intermediate slave device 300 calculates a new preceding relay time MFP, a new total relay time TP, and a new preceding relay time SFP.
The new preceding relay time MFP is the sum of the relay preparation time of the measurement frame 111 measured by the slave device measuring unit 340 and the preceding relay time MFP (preceding relay preparation time) included in the measurement frame 111.
The new total relay time TP is a time obtained by adding the relay preparation time of the measurement response frame 112 measured by the slave device measurement unit 340 and the total relay time TP (total relay preparation time) included in the measurement response frame 112. .
The new preceding relay time SFP is a total time of the relay preparation time of the notification frame 113 measured by the slave device measuring unit 340 and the preceding relay time SFP (notification relay preparation time) included in the notification frame 113.

スレーブ装置フレーム処理部320は、各種のフレーム処理(中継装置フレーム更新処理、端末装置フレーム生成処理)を行う。   The slave device frame processing unit 320 performs various types of frame processing (relay device frame update processing, terminal device frame generation processing).

例えば、中間のスレーブ装置300のスレーブ装置フレーム処理部320(中継装置フレーム更新部の一例)は、計測フレーム111に含まれる先行中継時間MFPを新たな先行中継時間MFPに更新する。
また、スレーブ装置フレーム処理部320は、計測応答フレーム112に含まれる総中継時間TPを新たな総中継時間TPに更新する。
また、スレーブ装置フレーム処理部320は、通知フレーム113に含まれる先行中継時間SFPを新たな先行中継時間SFPに更新する。
For example, the slave device frame processing unit 320 (an example of the relay device frame update unit) of the intermediate slave device 300 updates the preceding relay time MFP included in the measurement frame 111 to a new preceding relay time MFP.
In addition, the slave device frame processing unit 320 updates the total relay time TP included in the measurement response frame 112 to a new total relay time TP.
Further, the slave device frame processing unit 320 updates the preceding relay time SFP included in the notification frame 113 to a new preceding relay time SFP.

例えば、末端のスレーブ装置300のスレーブ装置フレーム処理部320(端末装置フレーム生成部の一例)は、スレーブ装置通信部310によって受信された計測フレーム111に基づいて計測フレーム111に含まれる先行中継時間MFPを総中継時間TPとして設定して計測応答フレーム112を生成する。   For example, the slave device frame processing unit 320 (an example of a terminal device frame generation unit) of the slave device 300 at the end uses the preceding relay time MFP included in the measurement frame 111 based on the measurement frame 111 received by the slave device communication unit 310. Is set as the total relay time TP, and the measurement response frame 112 is generated.

スレーブ装置同期部350は、スレーブ装置300の内部時計(図示省略)の時刻をマスタ装置200の内部時計の時刻に同期させる同期処理(中継装置同期処理、端末装置同期処理)を行う。   The slave device synchronization unit 350 performs synchronization processing (relay device synchronization processing, terminal device synchronization processing) for synchronizing the time of the internal clock (not shown) of the slave device 300 with the time of the internal clock of the master device 200.

例えば、中間のスレーブ装置300のスレーブ装置同期部350(中継装置同期部の一例)は、以下のように同期処理を行う。
スレーブ装置同期部350は、スレーブ装置計測部340によって計測されたスレーブ往復伝播遅延時間Ds’と計測応答フレーム112に含まれる総中継時間TP(総中継準備時間、中継準備時間情報)とに基づいて補正後スレーブ往復伝播遅延時間Ds(中継装置伝播時間)を算出する。補正後スレーブ往復伝播遅延時間Dsは、スレーブ往復伝播遅延時間Ds’からスレーブ往復伝播遅延時間Ds’に含まれる中継準備時間を除いた時間である。
スレーブ装置同期部350は、補正後スレーブ往復伝播遅延時間Dsと通知フレーム113に含まれる補正後マスタ往復伝播遅延時間Dm(マスタ装置伝播時間)とに基づいて通知伝播時間を算出する。通知伝播時間は、マスタ装置200が通知フレーム113を送信してからマスタ装置通信部210が通知フレーム113を受信するまでに要する時間である。
スレーブ装置同期部350は、通知伝播時間と通知フレーム113に含まれる基準時刻Tmとに基づいて基準時刻Tmから通知伝播時間が経過した時刻を補正値As(同期時刻)として算出する。
スレーブ装置同期部350は、補正値Asを内部時計に設定する。
For example, the slave device synchronization unit 350 (an example of the relay device synchronization unit) of the intermediate slave device 300 performs the synchronization process as follows.
The slave device synchronization unit 350 is based on the slave round trip propagation delay time Ds ′ measured by the slave device measurement unit 340 and the total relay time TP (total relay preparation time and relay preparation time information) included in the measurement response frame 112. The corrected slave round-trip propagation delay time Ds (relay device propagation time) is calculated. The corrected slave round trip propagation delay time Ds is a time obtained by subtracting the relay preparation time included in the slave round trip propagation delay time Ds ′ from the slave round trip propagation delay time Ds ′.
The slave device synchronization unit 350 calculates the notification propagation time based on the corrected slave round-trip propagation delay time Ds and the corrected master round-trip propagation delay time Dm (master device propagation time) included in the notification frame 113. The notification propagation time is a time required from when the master device 200 transmits the notification frame 113 to when the master device communication unit 210 receives the notification frame 113.
Based on the notification propagation time and the reference time Tm included in the notification frame 113, the slave device synchronization unit 350 calculates a time when the notification propagation time has elapsed from the reference time Tm as a correction value As (synchronization time).
The slave device synchronization unit 350 sets the correction value As in the internal clock.

例えば、スレーブ装置同期部350は、以下のように補正値Asを算出する。
スレーブ装置同期部350は、総中継時間TPから先行中継時間MFPを減算した時間を往復中継準備時間として算出する。
スレーブ装置同期部350は、算出した往復中継準備時間をスレーブ往復伝播遅延時間Ds’から減算した時間を補正後スレーブ往復伝播遅延時間Dsとして算出する。
スレーブ装置同期部350は、算出した補正後スレーブ往復伝播遅延時間Dsを通知フレーム113に含まれる補正後マスタ往復伝播遅延時間Dmから減算する。スレーブ装置同期部350は減算して得られた時間を半分にした時間を通知伝播時間として算出する。
スレーブ装置同期部350は、算出した通知伝播時間と通知フレーム113に含まれる先行中継時間SFPとを通知フレーム113に含まれる基準時刻Tmに加算した時刻を補正値Asとして算出する。
For example, the slave device synchronization unit 350 calculates the correction value As as follows.
Slave device synchronization unit 350 calculates a time obtained by subtracting preceding relay time MFP from total relay time TP as a round-trip relay preparation time.
The slave device synchronization unit 350 calculates a corrected slave round-trip propagation delay time Ds by subtracting the calculated round-trip relay preparation time from the slave round-trip propagation delay time Ds ′.
The slave device synchronization unit 350 subtracts the calculated corrected slave round trip propagation delay time Ds from the corrected master round trip propagation delay time Dm included in the notification frame 113. The slave device synchronization unit 350 calculates a notification propagation time by halving the time obtained by subtraction.
The slave device synchronization unit 350 calculates, as the correction value As, a time obtained by adding the calculated notification propagation time and the preceding relay time SFP included in the notification frame 113 to the reference time Tm included in the notification frame 113.

例えば、末端のスレーブ装置300のスレーブ装置同期部350(端末装置同期部の一例)は、以下のように同期処理を行う。
スレーブ装置同期部350は、スレーブ装置計測部340によって計測されたスレーブ往復伝播遅延時間Ds’と通知フレーム113とに基づいてマスタ装置200と同期する時刻を補正値As(端末装置時刻)として算出する。
スレーブ装置同期部350は、算出した補正値Asを内部時計に設定する。
For example, the slave device synchronization unit 350 (an example of the terminal device synchronization unit) of the terminal slave device 300 performs the synchronization process as follows.
The slave device synchronization unit 350 calculates the time synchronized with the master device 200 as the correction value As (terminal device time) based on the slave round trip propagation delay time Ds ′ measured by the slave device measurement unit 340 and the notification frame 113. .
The slave device synchronization unit 350 sets the calculated correction value As in the internal clock.

例えば、スレーブ装置同期部350は、以下のように補正値Asを算出する。
スレーブ装置同期部350は、通知フレーム113に含まれる補正後マスタ往復伝播遅延時間Dmからスレーブ往復伝播遅延時間Ds’を減算し、減算して得られた時間を半分にした時間を通知伝播時間として算出する。
スレーブ装置同期部350は、算出した通知伝播時間と通知フレーム113に含まれる先行中継時間SFPとを通知フレーム113に含まれる基準時刻Tmに加算した時刻を補正値Asとして算出する。
For example, the slave device synchronization unit 350 calculates the correction value As as follows.
The slave device synchronization unit 350 subtracts the slave round-trip propagation delay time Ds ′ from the corrected master round-trip propagation delay time Dm included in the notification frame 113, and sets the time obtained by halving the time obtained by subtraction as the notification propagation time. calculate.
The slave device synchronization unit 350 calculates, as the correction value As, a time obtained by adding the calculated notification propagation time and the preceding relay time SFP included in the notification frame 113 to the reference time Tm included in the notification frame 113.

スレーブ装置記憶部390は、スレーブ装置300が使用するデータを記憶する(先行中継準備時間記憶部、総中継準備時間記憶部の一例)。
計測フレーム111、計測応答フレーム112および通知フレーム113は、スレーブ装置記憶部390に記憶されるデータの一例である。
スレーブ往復伝播遅延時間Ds’、補正後スレーブ往復伝播遅延時間Ds、先行中継時間MFP、先行中継時間SFPおよび総中継時間TPは、スレーブ装置記憶部390に記憶されるデータの一例である。
The slave device storage unit 390 stores data used by the slave device 300 (an example of a preceding relay preparation time storage unit and a total relay preparation time storage unit).
The measurement frame 111, the measurement response frame 112, and the notification frame 113 are examples of data stored in the slave device storage unit 390.
The slave round-trip propagation delay time Ds ′, the corrected slave round-trip propagation delay time Ds, the preceding relay time MFP, the preceding relay time SFP, and the total relay time TP are examples of data stored in the slave device storage unit 390.

図5は、実施の形態1における同期システム100の同期方法を示すフローチャートである。
実施の形態1における同期システム100の同期方法について、図5に基づいて説明する。
FIG. 5 is a flowchart showing a synchronization method of synchronization system 100 in the first embodiment.
A synchronization method of synchronization system 100 in the first embodiment will be described with reference to FIG.

まず、同期システム100の同期方法の概要について説明する。   First, an overview of the synchronization method of the synchronization system 100 will be described.

マスタ装置200は、計測フレーム111を末端のスレーブ装置300へ送信する(S110)。
中間のスレーブ装置300は、先行中継時間MFPを更新して計測フレーム111を中継する(S120)。
末端のスレーブ装置300は、総中継時間TPとして先行中継時間MFPを計測応答フレーム112に設定し、計測応答フレーム112をマスタ装置200へ送信する(S130)。
中間のスレーブ装置300は、総中継時間TPを更新して計測応答フレーム112を中継する(S140)。
マスタ装置200は計測応答フレーム112を受信し、総中継時間TPに基づいて補正後マスタ往復伝搬遅延時間Dmを算出し、補正後マスタ往復伝搬遅延時間Dmを設定した通知フレーム113を末端のスレーブ装置300へ送信する(S150)。
中間のスレーブ装置300は通知フレーム113を受信し、通知フレーム113に基づいて同期し、先行中継時間SFPを更新して通知フレーム113を中継する(S160)。
末端のスレーブ装置300は、通知フレーム113に基づいて同期する(S170)。
The master device 200 transmits the measurement frame 111 to the terminal slave device 300 (S110).
The intermediate slave device 300 updates the preceding relay time MFP and relays the measurement frame 111 (S120).
The slave device 300 at the end sets the preceding relay time MFP in the measurement response frame 112 as the total relay time TP, and transmits the measurement response frame 112 to the master device 200 (S130).
The intermediate slave device 300 updates the total relay time TP and relays the measurement response frame 112 (S140).
The master device 200 receives the measurement response frame 112, calculates a corrected master round-trip propagation delay time Dm based on the total relay time TP, and sets the notification frame 113 in which the corrected master round-trip propagation delay time Dm is set as a slave device at the end. It transmits to 300 (S150).
The intermediate slave device 300 receives the notification frame 113, synchronizes based on the notification frame 113, updates the preceding relay time SFP, and relays the notification frame 113 (S160).
The slave device 300 at the end synchronizes based on the notification frame 113 (S170).

次に、同期システム100の同期方法の詳細について説明する。   Next, details of the synchronization method of the synchronization system 100 will be described.

S110において、マスタ装置200のマスタ装置フレーム生成部220は、末端のスレーブ装置300を宛先とする計測フレーム111(図2参照)を生成する(計測フレーム生成処理)。
このとき、マスタ装置フレーム生成部220は、先行中継時間MFPとして初期値「0」を計測フレーム111に設定する。
In S110, the master device frame generation unit 220 of the master device 200 generates the measurement frame 111 (see FIG. 2) destined for the slave device 300 at the end (measurement frame generation processing).
At this time, master device frame generation unit 220 sets initial value “0” in measurement frame 111 as preceding relay time MFP.

マスタ装置通信部210は、マスタ装置フレーム生成部220によって生成された計測フレーム111を送信する(計測フレーム送信処理)。   The master device communication unit 210 transmits the measurement frame 111 generated by the master device frame generation unit 220 (measurement frame transmission process).

マスタ装置計測部240は、マスタ装置通信部210が計測フレーム111を送信したときにDm’カウンタを起動する。
Dm’カウンタとは、マスタ往復伝搬遅延時間Dm’を計測するためのカウンタ(またはタイマ、以下同様)である。カウンタとは、時間を計測する機能(またはハードウェア)である。
S110の後、S120に進む。
The master device measurement unit 240 activates the Dm ′ counter when the master device communication unit 210 transmits the measurement frame 111.
The Dm ′ counter is a counter (or timer, the same applies hereinafter) for measuring the master round-trip propagation delay time Dm ′. The counter is a function (or hardware) for measuring time.
It progresses to S120 after S110.

S120において、中間のスレーブ装置300のスレーブ装置通信部310は計測フレーム111を受信する(計測フレーム受信処理)。   In S120, the slave device communication unit 310 of the intermediate slave device 300 receives the measurement frame 111 (measurement frame reception process).

スレーブ装置計測部340は、スレーブ装置通信部310が計測フレーム111を受信した場合、Ds’カウンタとMRTカウンタとを起動する。
Ds’カウンタとは、スレーブ往復伝搬遅延時間Ds’を計測するためのカウンタである。
MRTカウンタとは、計測フレーム111の中継準備処理に要した時間(中継準備時間)を計測するためのカウンタである。
When the slave device communication unit 310 receives the measurement frame 111, the slave device measurement unit 340 activates the Ds ′ counter and the MRT counter.
The Ds ′ counter is a counter for measuring the slave round-trip propagation delay time Ds ′.
The MRT counter is a counter for measuring the time (relay preparation time) required for the relay preparation process of the measurement frame 111.

スレーブ装置フレーム処理部320は、計測フレーム111の中継準備処理として、例えば以下のような処理を実行する。
スレーブ装置フレーム処理部320は、計測フレーム111を処理することができるタイミングまで待機する。例えば、スレーブ装置フレーム処理部320は、計測フレーム111より優先度が高い割込みフレームが発生した場合、割込みフレームに対する処理が終了するまで待機する。
スレーブ装置フレーム処理部320は、計測フレーム111の処理タイミングになった場合、計測フレーム111を送信するために必要な処理のうち先行中継時間MFPを更新する処理を除いた残りの処理を実行する。
スレーブ装置フレーム処理部320は、計測フレーム111に設定されている先行中継時間MFPをスレーブ装置記憶部390に記憶する(先行中継準備時間記憶処理)。
The slave device frame processing unit 320 executes, for example, the following processing as relay preparation processing for the measurement frame 111.
The slave device frame processing unit 320 waits until the measurement frame 111 can be processed. For example, when an interrupt frame having a higher priority than the measurement frame 111 is generated, the slave device frame processing unit 320 waits until processing for the interrupt frame is completed.
When the measurement timing of the measurement frame 111 is reached, the slave device frame processing unit 320 executes the remaining processes except for the process of updating the preceding relay time MFP among the processes necessary for transmitting the measurement frame 111.
Slave device frame processing unit 320 stores the preceding relay time MFP set in measurement frame 111 in slave device storage unit 390 (preceding relay preparation time storage processing).

スレーブ装置計測部340は、スレーブ装置フレーム処理部320による計測フレーム111の中継準備処理が終了したときにMRTカウンタを停止する(中継準備時間計測処理)。   The slave device measurement unit 340 stops the MRT counter when the slave device frame processing unit 320 completes the relay preparation processing of the measurement frame 111 (relay preparation time measurement processing).

スレーブ装置フレーム処理部320は、計測フレーム111に設定されている先行中継時間MFPにMRTカウンタによって計測された中継準備時間を加算した合計時間を新たな先行中継時間MFPとして算出する。
そして、スレーブ装置フレーム処理部320は、計測フレーム111に設定されている先行中継時間MFPを新たな先行中継時間MFPに更新する(計測フレーム更新処理)。
The slave device frame processing unit 320 calculates a total time obtained by adding the relay preparation time measured by the MRT counter to the preceding relay time MFP set in the measurement frame 111 as a new preceding relay time MFP.
Then, slave device frame processing unit 320 updates the preceding relay time MFP set in measurement frame 111 to a new preceding relay time MFP (measurement frame update process).

スレーブ装置通信部310は、スレーブ装置フレーム処理部320によって更新された計測フレーム111を送信する(計測フレーム送信処理)。
S120の後、S130に進む。
The slave device communication unit 310 transmits the measurement frame 111 updated by the slave device frame processing unit 320 (measurement frame transmission processing).
It progresses to S130 after S120.

S130において、末端のスレーブ装置300のスレーブ装置通信部310は計測フレーム111を受信する(計測フレーム受信処理)。   In S130, the slave device communication unit 310 of the slave device 300 at the end receives the measurement frame 111 (measurement frame reception process).

スレーブ装置計測部340は、スレーブ装置通信部310が計測フレーム111を受信した場合、Ds’カウンタを起動する。   When the slave device communication unit 310 receives the measurement frame 111, the slave device measurement unit 340 activates the Ds ′ counter.

スレーブ装置フレーム処理部320は、計測フレーム111を処理することができるタイミングまで待機する。
スレーブ装置フレーム処理部320は、計測フレーム111の処理タイミングになった場合、計測フレーム111に設定されている先行中継時間MFPをスレーブ装置記憶部390に記憶する。
さらに、スレーブ装置フレーム処理部320は、マスタ装置200を宛先とする計測応答フレーム112(図2参照)を生成する。このとき、スレーブ装置フレーム処理部320は、計測フレーム111に設定されている先行中継時間MFPを総中継時間TPとして計測応答フレーム112に設定する。
The slave device frame processing unit 320 waits until the measurement frame 111 can be processed.
When the measurement timing of the measurement frame 111 is reached, the slave device frame processing unit 320 stores the preceding relay time MFP set in the measurement frame 111 in the slave device storage unit 390.
Further, the slave device frame processing unit 320 generates a measurement response frame 112 (see FIG. 2) destined for the master device 200. At this time, the slave device frame processing unit 320 sets the preceding relay time MFP set in the measurement frame 111 to the measurement response frame 112 as the total relay time TP.

スレーブ装置通信部310は、スレーブ装置フレーム処理部320によって生成された計測応答フレーム112を送信する(計測応答フレーム送信処理)。   The slave device communication unit 310 transmits the measurement response frame 112 generated by the slave device frame processing unit 320 (measurement response frame transmission processing).

スレーブ装置計測部340は、スレーブ装置フレーム処理部320が計測応答フレーム112を生成したときに(またはスレーブ装置通信部310が計測応答フレーム112を送信したときに)、Ds’カウンタを停止する。
そして、スレーブ装置計測部340は、Ds’カウンタによって計測されたスレーブ往復伝搬遅延時間Ds’をスレーブ装置記憶部390に記憶する。
S130の後、S140に進む。
When the slave device frame processing unit 320 generates the measurement response frame 112 (or when the slave device communication unit 310 transmits the measurement response frame 112), the slave device measurement unit 340 stops the Ds ′ counter.
Then, the slave device measurement unit 340 stores the slave round-trip propagation delay time Ds ′ measured by the Ds ′ counter in the slave device storage unit 390.
It progresses to S140 after S130.

S140において、中間のスレーブ装置300のスレーブ装置通信部310は計測応答フレーム112を受信する(計測応答フレーム受信処理)。   In S140, the slave device communication unit 310 of the intermediate slave device 300 receives the measurement response frame 112 (measurement response frame reception process).

スレーブ装置計測部340は、スレーブ装置通信部310が計測応答フレーム112を受信した場合、RRTカウンタを起動する。
RRTカウンタとは、計測応答フレーム112の中継準備処理に要した時間(中継準備時間)を計測するためのカウンタである。
When the slave device communication unit 310 receives the measurement response frame 112, the slave device measurement unit 340 activates the RRT counter.
The RRT counter is a counter for measuring the time (relay preparation time) required for the relay preparation process of the measurement response frame 112.

スレーブ装置フレーム処理部320は、計測応答フレーム112の中継準備処理として、例えば以下のような処理を実行する。
スレーブ装置フレーム処理部320は、計測応答フレーム112を処理することができるタイミングまで待機する。
スレーブ装置フレーム処理部320は、計測応答フレーム112の処理タイミングになった場合、計測応答フレーム112を送信するために必要な処理のうち総中継時間TPを更新する処理を除いた残りの処理を実行する。
さらに、スレーブ装置フレーム処理部320は、計測応答フレーム112に設定されている総中継時間TPをスレーブ装置記憶部390に記憶する(総中継準備時間記憶処理)。
The slave device frame processing unit 320 executes, for example, the following processing as relay preparation processing for the measurement response frame 112.
The slave device frame processing unit 320 waits until the measurement response frame 112 can be processed.
When the measurement timing of the measurement response frame 112 is reached, the slave device frame processing unit 320 executes the remaining processes except for the process of updating the total relay time TP among the processes necessary for transmitting the measurement response frame 112. To do.
Further, the slave device frame processing unit 320 stores the total relay time TP set in the measurement response frame 112 in the slave device storage unit 390 (total relay preparation time storage processing).

スレーブ装置計測部340は、スレーブ装置フレーム処理部320による計測応答フレーム112の中継準備処理が終了したときにRRTカウンタを停止する(中継準備時間計測処理)。   The slave device measurement unit 340 stops the RRT counter when the relay preparation processing of the measurement response frame 112 by the slave device frame processing unit 320 is completed (relay preparation time measurement processing).

スレーブ装置フレーム処理部320は、計測応答フレーム112に設定されている総中継時間TPにRRTカウンタによって計測された中継準備時間を加算した合計時間を新たな総中継時間TPとして算出する。
そして、スレーブ装置フレーム処理部320は、計測応答フレーム112に設定されている総中継時間TPを新たな総中継時間TPに更新する(計測応答フレーム更新処理)。
The slave device frame processing unit 320 calculates a total time obtained by adding the relay preparation time measured by the RRT counter to the total relay time TP set in the measurement response frame 112 as a new total relay time TP.
Then, the slave device frame processing unit 320 updates the total relay time TP set in the measurement response frame 112 to a new total relay time TP (measurement response frame update process).

スレーブ装置通信部310は、スレーブ装置フレーム処理部320によって更新された計測応答フレーム112を送信する(計測応答フレーム送信処理)。   The slave device communication unit 310 transmits the measurement response frame 112 updated by the slave device frame processing unit 320 (measurement response frame transmission processing).

スレーブ装置計測部340は、スレーブ装置フレーム処理部320による計測応答フレーム112の中継準備処理が終了した場合(またはスレーブ装置通信部310が計測応答フレーム112を送信した場合)、計測フレーム111を受信したとき(S120)に起動したDs’カウンタを停止する(中継装置通信時間計測処理)。
そして、スレーブ装置計測部340は、Ds’カウンタによって計測されたスレーブ往復伝搬遅延時間Ds’をスレーブ装置記憶部390に記憶する。
S140の後、S150に進む。
The slave device measurement unit 340 receives the measurement frame 111 when the relay preparation processing of the measurement response frame 112 by the slave device frame processing unit 320 is completed (or when the slave device communication unit 310 transmits the measurement response frame 112). The Ds ′ counter started at the time (S120) is stopped (relay device communication time measurement process).
Then, the slave device measurement unit 340 stores the slave round-trip propagation delay time Ds ′ measured by the Ds ′ counter in the slave device storage unit 390.
After S140, the process proceeds to S150.

S150において、マスタ装置200のマスタ装置通信部210は計測応答フレーム112を受信する(計測応答フレーム受信処理)。   In S150, the master device communication unit 210 of the master device 200 receives the measurement response frame 112 (measurement response frame reception process).

マスタ装置計測部240は、マスタ装置通信部210が計測応答フレーム112を受信した場合、計測フレーム111を送信したとき(S110)に起動したDm’カウンタを停止する(マスタ装置通信時間計測処理)。
そして、マスタ装置計測部240は、Dm’カウンタによって計測されたマスタ往復伝搬遅延時間Dm’をマスタ装置記憶部290に記憶する。
When the master device communication unit 210 receives the measurement response frame 112, the master device measurement unit 240 stops the Dm ′ counter activated when the measurement frame 111 is transmitted (S110) (master device communication time measurement process).
Then, the master device measurement unit 240 stores the master round-trip propagation delay time Dm ′ measured by the Dm ′ counter in the master device storage unit 290.

マスタ装置算出部230は、Dm’カウンタによって計測されたマスタ往復伝搬遅延時間Dm’とマスタ装置通信部210によって受信された計測応答フレーム112とに基づいて補正後マスタ往復伝搬遅延時間Dmを算出する。
補正後マスタ往復伝搬遅延時間Dmは、マスタ往復伝搬遅延時間Dm’から計測応答フレーム112内の総中継時間TPを減算した時間である。
以下に、補正後マスタ往復伝搬遅延時間Dmの算出式(1−1)を示す。
The master device calculation unit 230 calculates the corrected master round-trip propagation delay time Dm based on the master round-trip propagation delay time Dm ′ measured by the Dm ′ counter and the measurement response frame 112 received by the master device communication unit 210. .
The corrected master round-trip propagation delay time Dm is a time obtained by subtracting the total relay time TP in the measurement response frame 112 from the master round-trip propagation delay time Dm ′.
The calculation formula (1-1) for the corrected master round-trip propagation delay time Dm is shown below.

Figure 2012175567
Figure 2012175567

マスタ装置フレーム生成部220は、末端のスレーブ装置300を宛先とする通知フレーム113(図2参照)を生成する(通知フレーム生成処理)。
このとき、マスタ装置フレーム生成部220は、内部時計から現在時刻を取得し、取得した現在時刻を基準時刻Tmとして通知フレーム113に設定する。
また、マスタ装置フレーム生成部220は、マスタ装置算出部230によって算出された補正後マスタ往復伝搬遅延時間Dmを通知フレーム113に設定する。
また、マスタ装置フレーム生成部220は、先行中継時間SFPとして初期値「0」を通知フレーム113に設定する。
The master device frame generation unit 220 generates a notification frame 113 (see FIG. 2) destined for the terminal slave device 300 (notification frame generation processing).
At this time, the master device frame generation unit 220 acquires the current time from the internal clock, and sets the acquired current time in the notification frame 113 as the reference time Tm.
Further, the master device frame generation unit 220 sets the corrected master round-trip propagation delay time Dm calculated by the master device calculation unit 230 in the notification frame 113.
Further, the master device frame generation unit 220 sets an initial value “0” in the notification frame 113 as the preceding relay time SFP.

マスタ装置通信部210は、マスタ装置フレーム生成部220によって生成された通知フレーム113を送信する(通知フレーム送信処理)。
S150の後、S160に進む。
The master device communication unit 210 transmits the notification frame 113 generated by the master device frame generation unit 220 (notification frame transmission processing).
After S150, the process proceeds to S160.

S160において、中間のスレーブ装置300のスレーブ装置通信部310は通知フレーム113を受信する(通知フレーム受信処理)。   In S160, the slave device communication unit 310 of the intermediate slave device 300 receives the notification frame 113 (notification frame reception process).

スレーブ装置同期部350は、スレーブ装置通信部310が通知フレーム113を受信した場合、通知フレーム113から基準時刻Tmと補正後マスタ往復伝搬遅延時間Dmと先行中継時間SFPとを取得する。
さらに、スレーブ装置同期部350は、スレーブ装置記憶部390から先行中継時間MFPと総中継時間TPとスレーブ往復伝搬遅延時間Ds’を取得する。
When the slave device communication unit 310 receives the notification frame 113, the slave device synchronization unit 350 acquires the reference time Tm, the corrected master round-trip propagation delay time Dm, and the preceding relay time SFP from the notification frame 113.
Furthermore, the slave device synchronization unit 350 acquires the preceding relay time MFP, the total relay time TP, and the slave round-trip propagation delay time Ds ′ from the slave device storage unit 390.

次に、スレーブ装置同期部350は、総中継時間TPから先行中継時間MFPを減算した時間を往復中継準備時間として算出する。
スレーブ装置同期部350は、スレーブ往復伝搬遅延時間Ds’から往復中継準備時間を減算した時間を補正後スレーブ往復伝搬遅延時間Dsとして算出する。
スレーブ装置同期部350は、補正後マスタ往復伝搬遅延時間Dmから補正後スレーブ往復伝搬遅延時間Dsを減算した時間を半分にした時間を通知伝播時間として算出する。
スレーブ装置同期部350は、基準時刻Tmから通知伝播時間と先行中継時間SFPとの合計時間だけ経過後の時刻を補正値Asとして算出する。
Next, slave device synchronization section 350 calculates a time obtained by subtracting preceding relay time MFP from total relay time TP as a round-trip relay preparation time.
The slave device synchronization unit 350 calculates the corrected slave round trip propagation delay time Ds by subtracting the round trip relay preparation time from the slave round trip propagation delay time Ds ′.
The slave device synchronization unit 350 calculates, as the notification propagation time, a time obtained by halving the time obtained by subtracting the corrected slave round-trip propagation delay time Ds from the corrected master round-trip propagation delay time Dm.
The slave device synchronization unit 350 calculates the time after the total time of the notification propagation time and the preceding relay time SFP from the reference time Tm as the correction value As.

そして、スレーブ装置同期部350は、算出した補正値Asを現在時刻として内部時計に設定する(同期処理)。   Then, the slave device synchronization unit 350 sets the calculated correction value As as the current time in the internal clock (synchronization process).

以下に、補正後スレーブ往復伝搬遅延時間Dsの算出式(1−2)と補正値Asの算出式(1−3)とを示す。   The calculation formula (1-2) for the corrected slave round-trip propagation delay time Ds and the calculation formula (1-3) for the correction value As are shown below.

Figure 2012175567
Figure 2012175567

スレーブ装置計測部340は、スレーブ装置通信部310が通知フレーム113を受信した場合、NRTカウンタを起動する。
NRTカウンタとは、通知フレーム113の中継準備処理に要した時間(中継準備時間)を計測するためのカウンタである。
When the slave device communication unit 310 receives the notification frame 113, the slave device measurement unit 340 activates the NRT counter.
The NRT counter is a counter for measuring the time required for relay preparation processing of the notification frame 113 (relay preparation time).

スレーブ装置フレーム処理部320は、通知フレーム113の中継準備処理として、例えば以下のような処理を実行する。
スレーブ装置フレーム処理部320は、通知フレーム113を処理することができるタイミングまで待機する。
スレーブ装置フレーム処理部320は、通知フレーム113の処理タイミングになった場合、通知フレーム113を送信するために必要な処理のうち先行中継時間SFPを更新する処理を除いた残りの処理を実行する。
The slave device frame processing unit 320 executes, for example, the following processing as relay preparation processing for the notification frame 113.
The slave device frame processing unit 320 waits until the notification frame 113 can be processed.
When the processing timing of the notification frame 113 comes, the slave device frame processing unit 320 executes the remaining processes except for the process of updating the preceding relay time SFP among the processes necessary for transmitting the notification frame 113.

スレーブ装置計測部340は、スレーブ装置フレーム処理部320による通知フレーム113の中継準備処理が終了したときにNRTカウンタを停止する(中継準備時間計測処理)。   The slave device measuring unit 340 stops the NRT counter when the slave device frame processing unit 320 finishes the relay preparation processing of the notification frame 113 (relay preparation time measurement processing).

スレーブ装置フレーム処理部320は、通知フレーム113に設定されている先行中継時間SFPにNRTカウンタによって計測された中継準備時間を加算した合計時間を新たな先行中継時間SFPとして算出する。
そして、スレーブ装置フレーム処理部320は、通知フレーム113に設定されている先行中継時間SFPを新たな先行中継時間SFPに更新する(通知フレーム更新処理)。
The slave device frame processing unit 320 calculates a total time obtained by adding the relay preparation time measured by the NRT counter to the preceding relay time SFP set in the notification frame 113 as a new preceding relay time SFP.
Then, the slave device frame processing unit 320 updates the preceding relay time SFP set in the notification frame 113 to a new preceding relay time SFP (notification frame update processing).

スレーブ装置通信部310は、スレーブ装置フレーム処理部320によって更新された通知フレーム113を送信する(通知フレーム送信処理)。
S160の後、S170に進む。
The slave device communication unit 310 transmits the notification frame 113 updated by the slave device frame processing unit 320 (notification frame transmission processing).
After S160, the process proceeds to S170.

S170において、末端のスレーブ装置300のスレーブ装置通信部310は、通知フレーム113を受信する(通知フレーム受信処理)。   In S170, the slave device communication unit 310 of the terminal slave device 300 receives the notification frame 113 (notification frame reception processing).

スレーブ装置同期部350は、スレーブ装置通信部310によって受信された通知フレーム113に基づいて補正値Asを算出し、算出した補正値Asを現在時刻として内部時計に設定する(同期処理)。
補正値Asの算出方法は、中間のスレーブ装置300による算出方法と同じである(S160参照)。
S170により、同期システム100の同期方法の処理は終了する。
The slave device synchronization unit 350 calculates the correction value As based on the notification frame 113 received by the slave device communication unit 310, and sets the calculated correction value As as the current time in the internal clock (synchronization process).
The calculation method of the correction value As is the same as the calculation method by the intermediate slave device 300 (see S160).
By S170, the processing of the synchronization method of the synchronization system 100 ends.

上記の同期方法の処理において、各フレームを受信したスレーブ装置300は、受信したフレームの宛先が自スレーブ装置300であれば末端のスレーブ装置300であると判定し、受信したフレームの宛先が自スレーブ装置300でなければ中間のスレーブ装置300であると判定する。
また、スレーブ装置300は、受信したフレームのフレーム種別を参照して計測フレーム111と計測応答フレーム112と通知フレーム113とのいずれのフレームを受信したかを判定する。
In the processing of the synchronization method described above, the slave device 300 that has received each frame determines that the received frame is the end slave device 300 if the destination of the received frame is the own slave device 300, and the destination of the received frame is the own slave. If it is not the device 300, it is determined that it is an intermediate slave device 300.
In addition, the slave device 300 determines which of the measurement frame 111, the measurement response frame 112, and the notification frame 113 has been received with reference to the frame type of the received frame.

図6は、実施の形態1における同期システム100の処理の具体例を示すシーケンス図である。
図7は、実施の形態1における同期システム100で記憶する計測時間の具体例を示す一覧表である。
実施の形態1における同期システム100の処理の具体例について、図6と図7とに基づいて説明する。
FIG. 6 is a sequence diagram illustrating a specific example of processing of the synchronization system 100 according to the first embodiment.
FIG. 7 is a list showing specific examples of measurement times stored in the synchronization system 100 according to the first embodiment.
A specific example of the processing of the synchronization system 100 according to the first embodiment will be described with reference to FIGS. 6 and 7.

図6において、同期システム100は、マスタ装置と中間のスレーブ装置A・Bと末端のスレーブ装置Cとを備える。   In FIG. 6, the synchronization system 100 includes a master device, intermediate slave devices A and B, and a terminal slave device C.

(1)マスタ装置は、先行中継時間MFPの初期値「0」を設定した計測フレーム111を生成し、生成した計測フレーム111を末端のスレーブ装置C宛てに送信する。 (1) The master device generates the measurement frame 111 in which the initial value “0” of the preceding relay time MFP is set, and transmits the generated measurement frame 111 to the slave device C at the end.

(2)中間のスレーブ装置Aは、計測フレーム111を受信する。
(3)しかし、計測フレーム111より優先度が高い割込みフレームが発生したため、スレーブ装置Aは計測フレーム111より先に割込みフレームを処理する。
(4)スレーブ装置Aは、計測フレーム111に設定されている先行中継時間MFP「0」を記憶する(図7参照)。
また、スレーブ装置Aは、計測フレーム111を受信してから計測フレーム111の中継準備が終了するまでの中継準備時間「α1」を計測する。
そして、スレーブ装置Aは、中継準備時間「α1」を加算した先行中継時間MFP「(0+)α1」を計測フレーム111に設定し、計測フレーム111を送信する。
(2) The intermediate slave device A receives the measurement frame 111.
(3) However, since an interrupt frame having a higher priority than the measurement frame 111 is generated, the slave device A processes the interrupt frame before the measurement frame 111.
(4) The slave device A stores the preceding relay time MFP “0” set in the measurement frame 111 (see FIG. 7).
Further, the slave device A measures the relay preparation time “α1” from when the measurement frame 111 is received until the relay preparation of the measurement frame 111 is completed.
Then, the slave device A sets the preceding relay time MFP “(0+) α1” to which the relay preparation time “α1” is added to the measurement frame 111, and transmits the measurement frame 111.

(5)中間のスレーブ装置Bは、計測フレーム111を受信する。
(6)スレーブ装置Bは、計測フレーム111に設定されている先行中継時間MFP「α1」を記憶する(図7参照)。
また、スレーブ装置Bは、計測フレーム111を受信してから計測フレーム111の中継準備が終了するまでの中継準備時間「α2」を計測する。
そして、スレーブ装置Bは、中継準備時間「α2」を加算した先行中継時間MFP「α1+α2」を計測フレーム111に設定し、計測フレーム111を送信する。
(5) The intermediate slave device B receives the measurement frame 111.
(6) The slave device B stores the preceding relay time MFP “α1” set in the measurement frame 111 (see FIG. 7).
Further, the slave device B measures the relay preparation time “α2” from when the measurement frame 111 is received until the relay preparation of the measurement frame 111 is completed.
Then, the slave device B sets the preceding relay time MFP “α1 + α2” obtained by adding the relay preparation time “α2” to the measurement frame 111, and transmits the measurement frame 111.

(7)末端のスレーブ装置Cは、計測フレーム111を受信する。
(8)スレーブ装置Cは、計測フレーム111に設定されている先行中継時間MFP「α1+α2」を記憶する(図7参照)。
そして、スレーブ装置Cは、先行中継時間MFP「α1+α2」を総中継時間TPとして設定した計測応答フレーム112を生成し、生成した計測応答フレーム112をマスタ装置宛てに送信する。
また、スレーブ装置Cは、計測フレーム111を受信してから計測応答フレーム112を送信するまでの時間「Ds3’」を計測し、計測した時間「Ds3’」をマスタ往復伝搬遅延時間Dm’として記憶する(図7参照)。
(7) The terminal slave device C receives the measurement frame 111.
(8) The slave device C stores the preceding relay time MFP “α1 + α2” set in the measurement frame 111 (see FIG. 7).
Then, slave device C generates measurement response frame 112 in which preceding relay time MFP “α1 + α2” is set as total relay time TP, and transmits the generated measurement response frame 112 to the master device.
Further, the slave device C measures the time “Ds3 ′” from the reception of the measurement frame 111 to the transmission of the measurement response frame 112, and stores the measured time “Ds3 ′” as the master round-trip propagation delay time Dm ′. (See FIG. 7).

(9)中間のスレーブ装置Bは、計測応答フレーム112を受信する。
(10)スレーブ装置Bは、計測応答フレーム112を受信してから計測応答フレーム112の中継準備が終了するまでの中継準備時間「β1」を計測する。
そして、スレーブ装置Bは、中継準備時間「β1」を加算した総中継時間TP「α1+α2+β1」を計測応答フレーム112に設定し、計測応答フレーム112を送信する。
また、スレーブ装置Bは、総中継時間TP「α1+α2+β1」を記憶する(図7参照)。
さらに、スレーブ装置Bは、計測フレーム111を受信してから計測応答フレーム112を送信するまでの時間「Ds2’」を補正後スレーブ往復伝搬遅延時間Dsとして記憶する(図7参照)。
(9) The intermediate slave device B receives the measurement response frame 112.
(10) The slave device B measures the relay preparation time “β1” from when the measurement response frame 112 is received until the relay preparation of the measurement response frame 112 is completed.
Then, the slave device B sets the total relay time TP “α1 + α2 + β1” obtained by adding the relay preparation time “β1” to the measurement response frame 112, and transmits the measurement response frame 112.
Further, the slave device B stores the total relay time TP “α1 + α2 + β1” (see FIG. 7).
Furthermore, the slave device B stores the time “Ds2 ′” from the reception of the measurement frame 111 to the transmission of the measurement response frame 112 as a corrected slave round-trip propagation delay time Ds (see FIG. 7).

(11)中間のスレーブ装置Aは、計測応答フレーム112を受信する。
(12)スレーブ装置Aは、計測応答フレーム112を受信してから計測応答フレーム112の中継準備が終了するまでの中継準備時間「β2」を計測する。
そして、スレーブ装置Aは、中継準備時間「β2」を加算した総中継時間TP「α1+α2+β1+β2」を計測応答フレーム112に設定し、計測応答フレーム112を送信する。
また、スレーブ装置Aは、総中継時間TP「α1+α2+β1+β2」を記憶する(図7参照)。
さらに、スレーブ装置Aは、計測フレーム111を受信してから計測応答フレーム112を送信するまでの時間「Ds1’」を補正後スレーブ往復伝搬遅延時間Dsとして記憶する(図7参照)。
(11) The intermediate slave device A receives the measurement response frame 112.
(12) The slave device A measures the relay preparation time “β2” from when the measurement response frame 112 is received until the relay preparation of the measurement response frame 112 is completed.
Then, the slave device A sets the total relay time TP “α1 + α2 + β1 + β2” obtained by adding the relay preparation time “β2” to the measurement response frame 112, and transmits the measurement response frame 112.
Further, the slave device A stores the total relay time TP “α1 + α2 + β1 + β2” (see FIG. 7).
Furthermore, the slave device A stores the time “Ds1 ′” from the reception of the measurement frame 111 to the transmission of the measurement response frame 112 as a corrected slave round-trip propagation delay time Ds (see FIG. 7).

(13)マスタ装置は、計測応答フレーム112を受信する。
マスタ装置は、計測応答フレーム112に設定されている総中継時間TPを記憶する(図7参照)。
さらに、マスタ装置は、計測フレーム111を送信してから計測応答フレーム112を受信するまでの時間「Dm’」をマスタ往復伝搬遅延時間Dm’として記憶する(図7参照)。
(14)マスタ装置は、マスタ往復伝搬遅延時間Dm’と総中継時間TPとを用いて補正後マスタ往復伝搬遅延時間Dmを算出する(下記式(1−4)参照)。
マスタ装置は、基準時刻Tm(現在時刻)と補正後マスタ往復伝搬遅延時間Dmと先行中継時間SFPの初期値「0」とを設定して通知フレーム113を生成し、生成した通知フレーム113を末端のスレーブ装置C宛てに送信する。
(13) The master device receives the measurement response frame 112.
The master device stores the total relay time TP set in the measurement response frame 112 (see FIG. 7).
Further, the master device stores a time “Dm ′” from the transmission of the measurement frame 111 to the reception of the measurement response frame 112 as the master round-trip propagation delay time Dm ′ (see FIG. 7).
(14) The master device calculates the corrected master round-trip propagation delay time Dm using the master round-trip propagation delay time Dm ′ and the total relay time TP (see the following formula (1-4)).
The master device sets the reference time Tm (current time), the corrected master round-trip propagation delay time Dm, and the initial value “0” of the preceding relay time SFP, generates the notification frame 113, and terminates the generated notification frame 113. To the slave device C.

(15)中間のスレーブ装置Aは、通知フレーム113を受信する。
スレーブ装置Aは、通知フレーム113の設定値(Tm、Dm、SFP「0」)と記憶済みの計測値(MFP「0」、TP「α1+α2+β1+β2」)(図7参照)とを用いて補正値As1を算出する(下記式(1−5)参照)。
そして、スレーブ装置Aは、算出した補正値As1を現在時刻として設定してマスタ装置と同期する。
(16)通知フレーム113より優先度が高い割込みフレームが発生した場合、スレーブ装置Aは、通知フレーム113より先に割込みフレームを処理する。
(17)スレーブ装置Aは、通知フレーム113を受信してから通知フレーム113の中継準備が終了するまでの中継準備時間「γ1」を計測する
そして、スレーブ装置Aは、中継準備時間「γ1」を加算した先行中継時間SFP「(0+)γ1」を通知フレーム113に設定し、通知フレーム113を送信する。
(15) The intermediate slave device A receives the notification frame 113.
The slave device A uses the setting value (Tm, Dm, SFP “0”) of the notification frame 113 and the stored measurement value (MFP “0”, TP “α1 + α2 + β1 + β2”) (see FIG. 7) (see FIG. 7). Is calculated (see the following formula (1-5)).
Then, the slave device A sets the calculated correction value As1 as the current time and synchronizes with the master device.
(16) When an interrupt frame having a higher priority than the notification frame 113 is generated, the slave device A processes the interrupt frame before the notification frame 113.
(17) The slave device A measures the relay preparation time “γ1” from when the notification frame 113 is received until the relay preparation of the notification frame 113 ends. Then, the slave device A calculates the relay preparation time “γ1”. The added preceding relay time SFP “(0+) γ1” is set in the notification frame 113, and the notification frame 113 is transmitted.

(18)中間のスレーブ装置Bは、通知フレーム113を受信する。
スレーブ装置Bは、通知フレーム113の設定値(Tm、Dm、SFP「γ1」)と記憶済みの計測値(MFP「α1」、TP「α1+α2+β1」)(図7参照)とを用いて補正値As2を算出する(下記式(1−6)参照)。
そして、スレーブ装置Bは、算出した補正値As2を現在時刻として設定してマスタ装置と同期する。
(19)スレーブ装置Bは、通知フレーム113を受信してから通知フレーム113の中継準備がするまでの中継準備時間「γ2」を計測する
そして、スレーブ装置Bは、中継準備時間「γ2」を加算した先行中継時間SFP「γ1+γ2」を通知フレーム113に設定し、通知フレーム113を送信する。
(18) The intermediate slave device B receives the notification frame 113.
The slave device B uses the set value (Tm, Dm, SFP “γ1”) of the notification frame 113 and the stored measurement value (MFP “α1”, TP “α1 + α2 + β1”) (see FIG. 7) (see FIG. 7). Is calculated (see the following formula (1-6)).
Then, the slave device B sets the calculated correction value As2 as the current time and synchronizes with the master device.
(19) The slave device B measures the relay preparation time “γ2” from when the notification frame 113 is received until the relay preparation of the notification frame 113 is performed. Then, the slave device B adds the relay preparation time “γ2”. The preceding relay time SFP “γ1 + γ2” is set in the notification frame 113, and the notification frame 113 is transmitted.

(20)末端のスレーブ装置Cは、通知フレーム113を受信する。
スレーブ装置Cは、通知フレーム113の設定値(Tm、Dm、SFP「γ1+γ2」)と記憶済みの計測値(MFP「α1+α2」、TP「α1+α2」)(図7参照)とを用いて補正値As3を算出する(下記式(1−7)参照)。
そして、スレーブ装置Cは、算出した補正値As3を現在時刻として設定してマスタ装置と同期する。
(20) The slave device C at the end receives the notification frame 113.
The slave device C uses the set value (Tm, Dm, SFP “γ1 + γ2”) of the notification frame 113 and the stored measurement values (MFP “α1 + α2”, TP “α1 + α2”) (see FIG. 7) (see FIG. 7). Is calculated (see the following formula (1-7)).
Then, the slave device C sets the calculated correction value As3 as the current time and synchronizes with the master device.

Figure 2012175567
Figure 2012175567

上記の同期方法では複数の中継準備時間を合計した合計時間を各フレームに設定しているが、合計時間ではなく各中継準備時間を各フレームに設定しても構わない。
例えば、スレーブ装置A・Bは計測フレーム111または計測応答フレーム112に各々の中継準備時間「α1」「α2」「β1」「β2」を設定する。そして、マスタ装置が各中継準備時間を合計して総中継時間TP「α1+α2+β1+β2」を算出する。
In the above synchronization method, the total time obtained by summing a plurality of relay preparation times is set for each frame, but each relay preparation time may be set for each frame instead of the total time.
For example, the slave apparatuses A and B set the relay preparation times “α1”, “α2”, “β1”, and “β2” in the measurement frame 111 or the measurement response frame 112, respectively. Then, the master device calculates the total relay time TP “α1 + α2 + β1 + β2” by summing up the relay preparation times.

図8は、実施の形態1におけるマスタ装置200およびスレーブ装置300のハードウェア資源の一例を示す図である。
図8において、マスタ装置200およびスレーブ装置300は、CPU901(Central Processing Unit)を備えている。CPU901は、バス902を介してROM903、RAM904、通信ボード905、ディスプレイ装置911、キーボード912、マウス913、ドライブ装置914、磁気ディスク装置920と接続され、これらのハードウェアデバイスを制御する。ドライブ装置914は、FD(Flexible Disk Drive)、CD(Compact Disc)、DVD(Digital Versatile Disc)などの記憶媒体を読み書きする装置である。
FIG. 8 is a diagram illustrating an example of hardware resources of the master device 200 and the slave device 300 according to the first embodiment.
In FIG. 8, the master device 200 and the slave device 300 include a CPU 901 (Central Processing Unit). The CPU 901 is connected to the ROM 903, the RAM 904, the communication board 905, the display device 911, the keyboard 912, the mouse 913, the drive device 914, and the magnetic disk device 920 via the bus 902, and controls these hardware devices. The drive device 914 is a device that reads and writes a storage medium such as an FD (Flexible Disk Drive), a CD (Compact Disc), and a DVD (Digital Versatile Disc).

通信ボード905は、有線または無線で、LAN(Local Area Network)、インターネット、電話回線などの通信網に接続している。   The communication board 905 is wired or wirelessly connected to a communication network such as a LAN (Local Area Network), the Internet, or a telephone line.

磁気ディスク装置920には、OS921(オペレーティングシステム)、プログラム群922、ファイル群923が記憶されている。   The magnetic disk device 920 stores an OS 921 (operating system), a program group 922, and a file group 923.

プログラム群922には、実施の形態において「〜部」として説明する機能を実行するプログラムが含まれる。プログラムは、CPU901により読み出され実行される。すなわち、プログラムは、「〜部」としてコンピュータを機能させるものであり、また「〜部」の手順や方法をコンピュータに実行させるものである。   The program group 922 includes programs that execute the functions described as “units” in the embodiments. The program is read and executed by the CPU 901. That is, the program causes the computer to function as “to part”, and causes the computer to execute the procedures and methods of “to part”.

ファイル群923には、実施の形態において説明する「〜部」で使用される各種データ(入力、出力、判定結果、計算結果、処理結果など)が含まれる。   The file group 923 includes various data (input, output, determination result, calculation result, processing result, etc.) used in “˜part” described in the embodiment.

実施の形態において構成図およびフローチャートに含まれている矢印は主としてデータや信号の入出力を示す。   In the embodiment, arrows included in the configuration diagrams and flowcharts mainly indicate input and output of data and signals.

実施の形態において「〜部」として説明するものは「〜回路」、「〜装置」、「〜機器」であってもよく、また「〜ステップ」、「〜手順」、「〜処理」であってもよい。すなわち、「〜部」として説明するものは、ファームウェア、ソフトウェア、ハードウェアまたはこれらの組み合わせのいずれで実装されても構わない。   In the embodiment, what is described as “to part” may be “to circuit”, “to apparatus”, and “to device”, and “to step”, “to procedure”, and “to processing”. May be. That is, what is described as “to part” may be implemented by any of firmware, software, hardware, or a combination thereof.

実施の形態2.
マスタ装置と各スレーブ装置とがツリー構造で接続する同期システム100について説明する。
マスタ装置またはスレーブ装置の機能構成や、同期システム100の同期方法については実施の形態1と同じである。
Embodiment 2. FIG.
A synchronization system 100 in which a master device and each slave device are connected in a tree structure will be described.
The functional configuration of the master device or the slave device and the synchronization method of the synchronization system 100 are the same as those in the first embodiment.

図9は、実施の形態2における同期システム100の構成図である。
実施の形態2における同期システム100の構成について、図9に基づいて説明する。
FIG. 9 is a configuration diagram of the synchronization system 100 according to the second embodiment.
The configuration of the synchronization system 100 according to the second embodiment will be described with reference to FIG.

同期システム100の接続形態は、マスタ装置とスレーブ装置A−Cとから成るライン1と、マスタ装置とスレーブ装置A・D−Fとから成るライン2とを含んだツリー構造であってよい。ライン1とライン2とはツリー構造の枝部分を構成する。
スレーブ装置Aはライン1用の通信ポート101とライン2用の通信ポート101とを含む三つの通信ポート101を有する。
The connection form of the synchronization system 100 may be a tree structure including a line 1 composed of a master device and slave devices AC and a line 2 composed of a master device and slave devices A and DF. Line 1 and line 2 constitute a branch portion of a tree structure.
The slave device A has three communication ports 101 including a communication port 101 for line 1 and a communication port 101 for line 2.

この場合、実施の形態1で説明した同期方法をライン1とライン2とで別々に実行する。
ライン1で同期方法を実行することによりスレーブ装置A−Cがマスタ装置と同期し、ライン2で同期方法を実行することによりスレーブ装置A・D−Fがマスタ装置と同期する。
つまり、マスタ装置と全てのスレーブ装置とを同期させることができる。
In this case, the synchronization method described in the first embodiment is executed separately for line 1 and line 2.
By executing the synchronization method at line 1, slave device A-C synchronizes with the master device, and by executing the synchronization method at line 2, slave devices A and DF synchronize with the master device.
That is, the master device and all the slave devices can be synchronized.

実施の形態3.
実施の形態1と異なる同期方法について説明する。
以後、実施の形態1、2と異なる事項について主に説明する。説明を省略する事項については実施の形態1、2と同様である。
Embodiment 3 FIG.
A synchronization method different from the first embodiment will be described.
Hereinafter, items different from the first and second embodiments will be mainly described. Matters whose description is omitted are the same as in the first and second embodiments.

同期システム100の構成は、実施の形態1(図1参照)または実施の形態2(図9参照)と同様である。   The configuration of the synchronization system 100 is the same as that of the first embodiment (see FIG. 1) or the second embodiment (see FIG. 9).

図10は、実施の形態3における通信フレームのフォーマットを示す図である。
実施の形態3で通信される計測フレーム121、計測応答フレーム122、通知フレーム123、計測補助フレーム124および通知補助フレーム125について、図10に基づいて説明する。
FIG. 10 is a diagram showing a format of a communication frame in the third embodiment.
A measurement frame 121, a measurement response frame 122, a notification frame 123, a measurement auxiliary frame 124, and a notification auxiliary frame 125 communicated in the third embodiment will be described with reference to FIG.

計測フレーム121、通知フレーム123および通知補助フレーム125はマスタ装置200によって生成され、マスタ装置200によって送信され、中間のスレーブ装置300によって中継され、末端のスレーブ装置300によって受信される。
計測応答フレーム122および計測補助フレーム124は末端のスレーブ装置300によって生成され、スレーブ装置300によって送信され、中間のスレーブ装置300によって中継され、マスタ装置200によって受信される。
The measurement frame 121, the notification frame 123, and the notification auxiliary frame 125 are generated by the master device 200, transmitted by the master device 200, relayed by the intermediate slave device 300, and received by the terminal slave device 300.
The measurement response frame 122 and the measurement auxiliary frame 124 are generated by the slave device 300 at the end, transmitted by the slave device 300, relayed by the intermediate slave device 300, and received by the master device 200.

各フレームは、「宛先」「送信元」「フレーム種別」を有する。
計測フレーム121、通知フレーム123および通知補助フレーム125の「宛先」には末端のスレーブ装置300のアドレス情報が設定される。また、「送信元」にはマスタ装置200のアドレス情報が設定される。「フレーム種別」にはフレーム毎に当該フレームを識別する識別子が設定される。
Each frame has “destination”, “transmission source”, and “frame type”.
In the “destination” of the measurement frame 121, the notification frame 123, and the notification auxiliary frame 125, the address information of the terminal slave device 300 is set. Further, the address information of the master device 200 is set in the “transmission source”. In the “frame type”, an identifier for identifying the frame is set for each frame.

計測応答フレーム122および計測補助フレーム124の「宛先」にはマスタ装置200のアドレス情報が設定される。また、「送信元」には末端のスレーブ装置300のアドレス情報が設定される。「フレーム種別」にはフレーム毎に当該フレームを識別する識別子が設定される。   Address information of the master device 200 is set in “destination” of the measurement response frame 122 and the measurement auxiliary frame 124. Further, the address information of the slave device 300 at the end is set in the “transmission source”. In the “frame type”, an identifier for identifying the frame is set for each frame.

さらに、計測補助フレーム124は「往復中継時間」を有する。
「往復中継時間」には、計測フレーム121の中継処理と計測応答フレーム122の中継処理とに要した中継処理時間の合計値(往復中継処理時間)が設定される。以下、計測補助フレーム124に設定された往復中継時間を「RTP」と記す。
Further, the measurement auxiliary frame 124 has a “round trip time”.
In the “round trip time”, a total value (round trip relay processing time) of the relay processing time required for the relay processing of the measurement frame 121 and the relay processing of the measurement response frame 122 is set. Hereinafter, the round-trip relay time set in the measurement auxiliary frame 124 is referred to as “RTP”.

また、通知補助フレーム125は「基準時刻」「補正後マスタ往復伝搬遅延時間」「先行中継時間」を有する。
「基準時刻」には、通知フレーム123を送信したときの時刻が設定される。以下、通知補助フレーム125に設定された基準時刻を「Tm」と記す。
「補正後マスタ往復伝搬遅延時間」には、マスタ装置200が計測フレーム121を送信してから計測応答フレーム122を受信するまでの時間から往復中継時間RTPを差し引いた時間(マスタ装置伝播時間)が設定される。以下、通知補助フレーム125に設定された補正後マスタ往復伝播遅延時間を「Dm」と記す。
「先行中継時間」には、通知フレーム123の中継処理に要した中継処理時間の合計値(通知中継処理時間)が設定される。以下、通知補助フレーム125に設定された先行中継時間を「SFP」と記す。
The notification auxiliary frame 125 has “reference time”, “corrected master round-trip propagation delay time”, and “preceding relay time”.
In “reference time”, the time when the notification frame 123 is transmitted is set. Hereinafter, the reference time set in the notification auxiliary frame 125 is referred to as “Tm”.
In the “corrected master round trip propagation delay time”, a time (master device propagation time) obtained by subtracting the round trip relay time RTP from the time from when the master device 200 transmits the measurement frame 121 until the measurement response frame 122 is received. Is set. Hereinafter, the corrected master round-trip propagation delay time set in the notification auxiliary frame 125 is referred to as “Dm”.
In the “preceding relay time”, the total value of the relay processing time required for the relay processing of the notification frame 123 (notification relay processing time) is set. Hereinafter, the preceding relay time set in the notification auxiliary frame 125 is referred to as “SFP”.

図11は、実施の形態3におけるマスタ装置200の機能構成図である。
実施の形態1におけるマスタ装置200の機能構成について、図11に基づいて説明する。
FIG. 11 is a functional configuration diagram of the master device 200 according to the third embodiment.
A functional configuration of master device 200 in the first embodiment will be described with reference to FIG.

マスタ装置200は、マスタ装置通信部210、マスタ装置フレーム生成部220、マスタ装置算出部230、マスタ装置計測部240およびマスタ装置記憶部290を備える。   The master device 200 includes a master device communication unit 210, a master device frame generation unit 220, a master device calculation unit 230, a master device measurement unit 240, and a master device storage unit 290.

マスタ装置通信部210は、マスタ装置200の通信処理(マスタ装置通信処理)を行う。
例えば、マスタ装置通信部210は計測フレーム121と通知フレーム123と通知補助フレーム125とを送信し、計測応答フレーム122と計測補助フレーム124とを受信する。
The master device communication unit 210 performs communication processing (master device communication processing) of the master device 200.
For example, the master device communication unit 210 transmits the measurement frame 121, the notification frame 123, and the notification auxiliary frame 125, and receives the measurement response frame 122 and the measurement auxiliary frame 124.

マスタ装置計測部240は各種の時間を計測する(マスタ装置計測処理)。
例えば、マスタ装置計測部240は、マスタ装置通信部210が計測フレーム121を送信してからマスタ装置通信部210が計測応答フレーム122を受信するまでの時間を計測する。以下、この計測時間を「マスタ往復伝搬遅延時間Dm’」(マスタ装置通信時間)という。
The master device measurement unit 240 measures various times (master device measurement processing).
For example, the master device measurement unit 240 measures the time from when the master device communication unit 210 transmits the measurement frame 121 to when the master device communication unit 210 receives the measurement response frame 122. Hereinafter, this measurement time is referred to as “master round-trip propagation delay time Dm ′” (master device communication time).

マスタ装置算出部230は各種の時間を算出する(マスタ装置算出処理)。
例えば、マスタ装置算出部230は、計測補助フレーム124に含まれる往復中継時間RTP(中継処理時間情報、往復中継処理時間)とマスタ装置計測部240によって計測されたマスタ往復伝搬遅延時間Dm’とに基づいて「補正後マスタ往復伝搬遅延時間Dm」(マスタ装置伝播時間)を算出する。補正後マスタ往復伝搬遅延時間Dmは、マスタ往復伝搬遅延時間Dm’からマスタ往復伝搬遅延時間Dm’に含まれる往復中継時間RTPを除いた時間である。
The master device calculation unit 230 calculates various times (master device calculation processing).
For example, the master device calculation unit 230 uses the round trip relay time RTP (relay processing time information, round trip relay processing time) included in the measurement auxiliary frame 124 and the master round trip propagation delay time Dm ′ measured by the master device measurement unit 240. Based on this, the “corrected master round trip propagation delay time Dm” (master device propagation time) is calculated. The corrected master round-trip propagation delay time Dm is a time obtained by removing the round-trip relay time RTP included in the master round-trip propagation delay time Dm ′ from the master round-trip propagation delay time Dm ′.

マスタ装置フレーム生成部220は、計測フレーム121と通知フレーム123と通知補助フレーム125とを生成する(マスタ装置フレーム生成処理)。
例えば、マスタ装置フレーム生成部220は、マスタ装置通信部210が通知フレーム123を送信した時刻を基準時刻Tm(マスタ装置時刻)として含むと共にマスタ装置算出部230によって算出された補正後マスタ往復伝搬遅延時間Dmを含む通知補助フレーム125を生成する。
The master device frame generation unit 220 generates a measurement frame 121, a notification frame 123, and a notification auxiliary frame 125 (master device frame generation processing).
For example, the master device frame generation unit 220 includes the time when the master device communication unit 210 transmits the notification frame 123 as the reference time Tm (master device time), and the corrected master round-trip propagation delay calculated by the master device calculation unit 230. A notification auxiliary frame 125 including the time Dm is generated.

マスタ装置記憶部290は、マスタ装置200が使用するデータを記憶する。
各フレーム(符号121−125)はマスタ装置記憶部290に記憶されるデータの一例である。
マスタ往復伝搬遅延時間Dm’、補正後マスタ往復伝搬遅延時間Dmおよび基準時刻Tmは、マスタ装置記憶部290に記憶されるデータの一例である。
The master device storage unit 290 stores data used by the master device 200.
Each frame (reference numerals 121 to 125) is an example of data stored in the master device storage unit 290.
The master round-trip propagation delay time Dm ′, the corrected master round-trip propagation delay time Dm, and the reference time Tm are examples of data stored in the master device storage unit 290.

図12は、実施の形態3におけるスレーブ装置300の機能構成図である。
実施の形態3におけるスレーブ装置300の機能構成について、図12に基づいて説明する。
FIG. 12 is a functional configuration diagram of the slave device 300 according to the third embodiment.
A functional configuration of slave device 300 according to the third embodiment will be described with reference to FIG.

中間のスレーブ装置300(中継装置の一例)と末端のスレーブ装置300(端末装置の一例)とは、スレーブ装置通信部310、スレーブ装置フレーム処理部320、スレーブ装置算出部330、スレーブ装置計測部340およびスレーブ装置同期部350を備える。
また、各スレーブ装置300は、スレーブ装置記憶部390を備える。
The intermediate slave device 300 (an example of a relay device) and the end slave device 300 (an example of a terminal device) are a slave device communication unit 310, a slave device frame processing unit 320, a slave device calculation unit 330, and a slave device measurement unit 340. And a slave device synchronization unit 350.
Each slave device 300 includes a slave device storage unit 390.

スレーブ装置通信部310は、スレーブ装置300の通信処理(中継装置通信処理、端末装置通信処理)を行う。
例えば、中間のスレーブ装置300のスレーブ装置通信部310(中継装置通信部の一例)は、計測フレーム121、計測応答フレーム122、通知フレーム123、計測補助フレーム124および通知補助フレーム125を送受信する。
末端のスレーブ装置300のスレーブ装置通信部310(端末装置通信部の一例)は、計測フレーム121と通知フレーム123と通知補助フレーム125とを受信し、計測応答フレーム122と計測補助フレーム124とを送信する。
The slave device communication unit 310 performs communication processing (relay device communication processing, terminal device communication processing) of the slave device 300.
For example, the slave device communication unit 310 (an example of the relay device communication unit) of the intermediate slave device 300 transmits and receives the measurement frame 121, the measurement response frame 122, the notification frame 123, the measurement auxiliary frame 124, and the notification auxiliary frame 125.
The slave device communication unit 310 (an example of a terminal device communication unit) of the terminal slave device 300 receives the measurement frame 121, the notification frame 123, and the notification auxiliary frame 125, and transmits the measurement response frame 122 and the measurement auxiliary frame 124. To do.

スレーブ装置計測部340は、各種の時間を計測する(中継装置計測処理、端末装置計測処理)。   The slave device measurement unit 340 measures various times (relay device measurement processing, terminal device measurement processing).

例えば、中間のスレーブ装置300のスレーブ装置計測部340(中継装置計測部の一例)は、スレーブ往復伝搬遅延時間Ds’を計測する。
また、スレーブ装置計測部340は、計測フレーム121の中継処理時間、計測応答フレーム122の中継処理時間および通知フレーム123の中継処理時間を計測する。
スレーブ往復伝搬遅延時間Ds’(中継装置通信時間)は、スレーブ装置通信部310が計測フレーム121を受信してからスレーブ装置通信部310が計測応答フレーム122を送信するまでの時間である。
計測フレーム121の中継処理時間は、スレーブ装置計測部340が計測フレーム121を受信してから計測フレーム121を送信するまでの時間である。
計測応答フレーム122の中継処理時間は、スレーブ装置通信部310が計測応答フレーム122を受信してから計測応答フレーム122を送信するまでの時間である。
通知フレーム123の中継処理時間は、スレーブ装置通信部310が通知フレーム123を受信してから通知フレーム123を送信するまでの時間である。
For example, the slave device measurement unit 340 (an example of the relay device measurement unit) of the intermediate slave device 300 measures the slave round-trip propagation delay time Ds ′.
The slave device measurement unit 340 measures the relay processing time of the measurement frame 121, the relay processing time of the measurement response frame 122, and the relay processing time of the notification frame 123.
The slave round-trip propagation delay time Ds ′ (relay device communication time) is a time from when the slave device communication unit 310 receives the measurement frame 121 to when the slave device communication unit 310 transmits the measurement response frame 122.
The relay processing time of the measurement frame 121 is a time from when the slave device measurement unit 340 receives the measurement frame 121 to when the measurement frame 121 is transmitted.
The relay processing time of the measurement response frame 122 is the time from when the slave device communication unit 310 receives the measurement response frame 122 until the measurement response frame 122 is transmitted.
The relay processing time of the notification frame 123 is a time from when the slave device communication unit 310 receives the notification frame 123 to when the notification frame 123 is transmitted.

例えば、末端のスレーブ装置300のスレーブ装置計測部340(端末装置計測部の一例)は、スレーブ往復伝搬遅延時間Ds’を計測する。
スレーブ往復伝搬遅延時間Ds’(端末装置遅延時間)は、スレーブ装置通信部310が計測フレーム121を受信してからスレーブ装置計測部340が計測応答フレーム122を送信するまでの時間である。
For example, the slave device measurement unit 340 (an example of the terminal device measurement unit) of the terminal slave device 300 measures the slave round-trip propagation delay time Ds ′.
The slave round trip propagation delay time Ds ′ (terminal device delay time) is a time from when the slave device communication unit 310 receives the measurement frame 121 to when the slave device measurement unit 340 transmits the measurement response frame 122.

スレーブ装置算出部330は、各種の時間を算出する(中継装置算出処理)。
例えば、中間のスレーブ装置300のスレーブ装置算出部330(中継装置算出部の一例)は、新たな往復中継時間RTPと新たな先行中継時間SFPとを算出する。
新たな往復中継時間RTPは、計測応答フレーム122に含まれる往復中継時間RTP(往復中継処理時間)と計測フレーム121の中継処理時間と計測応答フレーム122の中継処理時間とを合計した時間である。
新たな先行中継時間SFPは、通知補助フレーム125に含まれる先行中継時間SFP(通知中継処理時間)と通知フレーム123の中継処理時間とを合計した時間である。
The slave device calculation unit 330 calculates various times (relay device calculation processing).
For example, the slave device calculation unit 330 (an example of the relay device calculation unit) of the intermediate slave device 300 calculates a new round trip relay time RTP and a new preceding relay time SFP.
The new round trip relay time RTP is the total of the round trip relay time RTP (round trip relay processing time) included in the measurement response frame 122, the relay processing time of the measurement frame 121, and the relay processing time of the measurement response frame 122.
The new preceding relay time SFP is the sum of the preceding relay time SFP (notification relay processing time) included in the notification auxiliary frame 125 and the relay processing time of the notification frame 123.

スレーブ装置フレーム処理部320は、各種のフレーム処理(中継装置フレーム更新処理、端末装置フレーム生成処理)を行う。   The slave device frame processing unit 320 performs various types of frame processing (relay device frame update processing, terminal device frame generation processing).

例えば、中間のスレーブ装置300のスレーブ装置フレーム処理部320(中継装置フレーム更新部の一例)は、計測補助フレーム124に含まれる往復中継時間RTPを新たな往復中継時間RTPに更新する。
また、スレーブ装置フレーム処理部320は、通知補助フレーム125に含まれる先行中継時間SFPを新たな先行中継時間SFPに更新する。
For example, the slave device frame processing unit 320 (an example of the relay device frame update unit) of the intermediate slave device 300 updates the round trip relay time RTP included in the measurement auxiliary frame 124 to a new round trip relay time RTP.
In addition, the slave device frame processing unit 320 updates the preceding relay time SFP included in the notification auxiliary frame 125 to a new preceding relay time SFP.

例えば、末端のスレーブ装置300のスレーブ装置フレーム処理部320(端末装置フレーム生成部の一例)は、往復中継時間RTPとして初期値「0」を設定して計測補助フレーム124を生成する。   For example, the slave device frame processing unit 320 (an example of the terminal device frame generation unit) of the terminal slave device 300 sets the initial value “0” as the round trip relay time RTP and generates the measurement auxiliary frame 124.

スレーブ装置同期部350は、スレーブ装置300の内部時計(図示省略)の時刻をマスタ装置200の内部時計の時刻に同期させる同期処理(中継装置同期処理、端末装置同期処理)を行う。   The slave device synchronization unit 350 performs synchronization processing (relay device synchronization processing, terminal device synchronization processing) for synchronizing the time of the internal clock (not shown) of the slave device 300 with the time of the internal clock of the master device 200.

例えば、中間のスレーブ装置300のスレーブ装置同期部350(中継装置同期部の一例)は、以下のように同期処理を行う。
スレーブ装置同期部350は、スレーブ装置計測部340によって計測されたスレーブ往復伝搬遅延時間Ds’と計測補助フレーム124に含まれる往復中継時間RTPとに基づいて補正後スレーブ往復伝搬遅延時間Dsを算出する。補正後スレーブ往復伝搬遅延時間Dsは、スレーブ往復伝搬遅延時間Ds’からスレーブ往復伝搬遅延時間Ds’に含まれる中継処理時間を除いた時間である。
スレーブ装置同期部350は、補正後スレーブ往復伝搬遅延時間Dsと通知補助フレーム125に含まれる補正後マスタ往復伝搬遅延時間Dmとに基づいて通知伝播時間を算出する。通知伝播時間は、マスタ装置200が通知フレーム123を送信してからスレーブ装置通信部310が通知フレーム123を受信するまでに要する時間である。
スレーブ装置同期部350は、算出した通知伝播時間と通知補助フレーム125に含まれる基準時刻Tmとスレーブ装置通信部310が通知フレーム123を受信したタイムスタンプ時刻Ts(中継装置時刻)とに基づいてマスタ装置200との時刻差を補正値As(補正時間)として算出する。
スレーブ装置同期部350は、算出した補正値Asだけ内部時計の時刻を変更する。
For example, the slave device synchronization unit 350 (an example of the relay device synchronization unit) of the intermediate slave device 300 performs the synchronization process as follows.
The slave device synchronization unit 350 calculates the corrected slave round trip propagation delay time Ds based on the slave round trip propagation delay time Ds ′ measured by the slave device measurement unit 340 and the round trip relay time RTP included in the measurement auxiliary frame 124. . The corrected slave round-trip propagation delay time Ds is a time obtained by removing the relay processing time included in the slave round-trip propagation delay time Ds ′ from the slave round-trip propagation delay time Ds ′.
The slave device synchronization unit 350 calculates the notification propagation time based on the corrected slave round-trip propagation delay time Ds and the corrected master round-trip propagation delay time Dm included in the notification auxiliary frame 125. The notification propagation time is a time required from when the master device 200 transmits the notification frame 123 to when the slave device communication unit 310 receives the notification frame 123.
The slave device synchronization unit 350 determines the master based on the calculated notification propagation time, the reference time Tm included in the notification auxiliary frame 125, and the time stamp time Ts (relay device time) at which the slave device communication unit 310 received the notification frame 123. The time difference from the device 200 is calculated as a correction value As (correction time).
The slave device synchronization unit 350 changes the time of the internal clock by the calculated correction value As.

例えば、中間のスレーブ装置同期部350は、以下のように補正値Asを算出する。
スレーブ装置同期部350は、スレーブ往復伝搬遅延時間Ds’から往復中継時間RTPを減算した時間を補正後スレーブ往復伝搬遅延時間Dsとして算出する。
スレーブ装置同期部350は、算出した補正後スレーブ往復伝搬遅延時間Dsを通知補助フレーム125に含まれる補正後マスタ往復伝搬遅延時間Dmから減算し、減算して得られた時間を半分にした時間を通知伝播時間として算出する。
スレーブ装置同期部350は、通知補助フレーム125に含まれる基準時刻Tmとスレーブ装置記憶部390に記憶されたタイムスタンプ時刻Tsとの時刻差を誤差時間として算出する。
スレーブ装置同期部350は、算出した誤差時間に通知伝播時間と通知補助フレーム125に含まれる先行中継時間SFPとを加算した時間を補正値Asとして算出する。
For example, the intermediate slave device synchronization unit 350 calculates the correction value As as follows.
The slave device synchronization unit 350 calculates the corrected slave round trip propagation delay time Ds by subtracting the round trip relay time RTP from the slave round trip propagation delay time Ds ′.
The slave device synchronization unit 350 subtracts the calculated corrected slave round-trip propagation delay time Ds from the corrected master round-trip propagation delay time Dm included in the notification auxiliary frame 125, and halves the time obtained by the subtraction. Calculate as notification propagation time.
The slave device synchronization unit 350 calculates the time difference between the reference time Tm included in the notification auxiliary frame 125 and the time stamp time Ts stored in the slave device storage unit 390 as an error time.
The slave device synchronization unit 350 calculates, as the correction value As, a time obtained by adding the notification propagation time and the preceding relay time SFP included in the notification auxiliary frame 125 to the calculated error time.

例えば、末端のスレーブ装置300のスレーブ装置同期部350(端末装置同期部の一例)は、以下のように同期処理を行う。
スレーブ装置同期部350は、スレーブ装置計測部340によって計測されたスレーブ往復伝搬遅延時間Ds’とスレーブ装置記憶部390に記憶されたタイムスタンプ時刻Ts(端末装置時刻)とスレーブ装置通信部310によって受信される通知補助フレーム125とに基づいてマスタ装置200との時刻差を補正値As(補正時間)として算出する。
スレーブ装置同期部350は、算出した補正値Asだけ内部時計の時刻を変更する。
For example, the slave device synchronization unit 350 (an example of the terminal device synchronization unit) of the terminal slave device 300 performs the synchronization process as follows.
The slave device synchronization unit 350 receives the slave round trip propagation delay time Ds ′ measured by the slave device measurement unit 340, the time stamp time Ts (terminal device time) stored in the slave device storage unit 390, and the slave device communication unit 310. The time difference from the master device 200 is calculated as a correction value As (correction time) based on the notification auxiliary frame 125 that is transmitted.
The slave device synchronization unit 350 changes the time of the internal clock by the calculated correction value As.

例えば、末端のスレーブ装置同期部350は、以下のように補正値Asを算出する。
スレーブ装置同期部350は、通知補助フレーム125に含まれる補正後マスタ往復伝搬遅延時間Dmからスレーブ往復伝搬遅延時間Ds’を減算し、減算して得られた時間を半分にした時間を通知伝播時間として算出する。
スレーブ装置同期部350は、通知補助フレーム125に含まれる基準時刻Tmとスレーブ装置記憶部390に記憶されたタイムスタンプ時刻Tsとの時刻差を誤差時間として算出する。
スレーブ装置同期部350は、算出した誤差時間に通知伝播時間と通知補助フレーム125に含まれる先行中継時間SFPとを加算した時間を補正値Asとして算出する。
For example, the slave device synchronization unit 350 at the end calculates the correction value As as follows.
The slave device synchronization unit 350 subtracts the slave round-trip propagation delay time Ds ′ from the corrected master round-trip propagation delay time Dm included in the notification auxiliary frame 125, and subtracts the time obtained by subtraction from the notification round-trip propagation delay time Ds ′. Calculate as
The slave device synchronization unit 350 calculates the time difference between the reference time Tm included in the notification auxiliary frame 125 and the time stamp time Ts stored in the slave device storage unit 390 as an error time.
The slave device synchronization unit 350 calculates, as the correction value As, a time obtained by adding the notification propagation time and the preceding relay time SFP included in the notification auxiliary frame 125 to the calculated error time.

スレーブ装置記憶部390は、スレーブ装置300が使用するデータを記憶する(個別中継処理時間記憶部、往復中継処理時間記憶部、中継装置時刻記憶部、端末装置時刻記憶部の一例)。
各フレーム(符号121−125)はスレーブ装置記憶部390に記憶されるデータの一例である。
スレーブ往復伝搬遅延時間Ds’、補正後スレーブ往復伝搬遅延時間Ds、往復中継時間RTP、先行中継時間SFPおよびタイムスタンプ時刻Tsは、スレーブ装置記憶部390に記憶されるデータの一例である。
The slave device storage unit 390 stores data used by the slave device 300 (an example of an individual relay processing time storage unit, a round-trip relay processing time storage unit, a relay device time storage unit, and a terminal device time storage unit).
Each frame (reference numerals 121 to 125) is an example of data stored in the slave device storage unit 390.
The slave round-trip propagation delay time Ds ′, the corrected slave round-trip propagation delay time Ds, the round-trip relay time RTP, the preceding relay time SFP and the time stamp time Ts are examples of data stored in the slave device storage unit 390.

図13は、実施の形態3における同期システム100の同期方法を示すフローチャートである。
実施の形態3における同期システム100の同期方法について、図13に基づいて説明する。
FIG. 13 is a flowchart showing a synchronization method of synchronization system 100 in the third embodiment.
A synchronization method of synchronization system 100 according to the third embodiment will be described with reference to FIG.

まず、同期システム100の同期方法の概要について説明する。   First, an overview of the synchronization method of the synchronization system 100 will be described.

マスタ装置200は、計測フレーム121を末端のスレーブ装置300へ送信する(S210)。
中間のスレーブ装置300は計測フレーム121を中継する(S211)。
末端のスレーブ装置300は計測フレーム121を受信し、計測応答フレーム122をマスタ装置200へ送信する(S220)。
中間のスレーブ装置300は計測応答フレーム122を中継する(S221)。
マスタ装置200は計測応答フレーム122を受信し、通知フレーム123を末端のスレーブ装置300へ送信する(S230)。
中間のスレーブ装置300は通知フレーム123を中継する(S231)。
末端のスレーブ装置300は通知フレーム123を受信し、計測補助フレーム124をマスタ装置200へ送信する(S240)。
中間のスレーブ装置300は、往復中継時間RTPを更新して計測補助フレーム124を中継する(S241)。
マスタ装置200は計測補助フレーム124を受信し、往復中継時間RTPに基づいて補正後マスタ往復伝搬遅延時間Dmを算出し、補正後マスタ往復伝搬遅延時間Dmを設定した通知補助フレーム125を末端のスレーブ装置300へ送信する(S250)。
中間のスレーブ装置300は通知補助フレーム125を受信し、通知補助フレーム125に基づいて同期し、先行中継時間SFPを更新して通知補助フレーム125を中継する(S260)。
末端のスレーブ装置300は通知補助フレーム125を受信し、受信した通知補助フレーム125に基づいて同期する(S270)。
The master device 200 transmits the measurement frame 121 to the slave device 300 at the end (S210).
The intermediate slave device 300 relays the measurement frame 121 (S211).
The slave device 300 at the end receives the measurement frame 121 and transmits a measurement response frame 122 to the master device 200 (S220).
The intermediate slave device 300 relays the measurement response frame 122 (S221).
The master device 200 receives the measurement response frame 122 and transmits a notification frame 123 to the slave device 300 at the end (S230).
The intermediate slave device 300 relays the notification frame 123 (S231).
The slave device 300 at the end receives the notification frame 123 and transmits the measurement auxiliary frame 124 to the master device 200 (S240).
The intermediate slave device 300 updates the round trip relay time RTP and relays the measurement auxiliary frame 124 (S241).
The master device 200 receives the measurement auxiliary frame 124, calculates the corrected master round-trip propagation delay time Dm based on the round-trip relay time RTP, and sets the corrected master round-trip propagation delay time Dm as the terminal auxiliary slave 125. It transmits to the apparatus 300 (S250).
The intermediate slave device 300 receives the notification auxiliary frame 125, synchronizes based on the notification auxiliary frame 125, updates the preceding relay time SFP, and relays the notification auxiliary frame 125 (S260).
The slave device 300 at the end receives the notification auxiliary frame 125 and synchronizes based on the received notification auxiliary frame 125 (S270).

次に、同期システム100の同期方法の詳細について説明する。   Next, details of the synchronization method of the synchronization system 100 will be described.

S210において、マスタ装置200のマスタ装置フレーム生成部220は、末端のスレーブ装置300を宛先とする計測フレーム121(図10参照)を生成する(計測フレーム生成処理)。
マスタ装置通信部210は、マスタ装置フレーム生成部220によって生成された計測フレーム121を送信する(計測フレーム送信処理)。
In S210, the master device frame generation unit 220 of the master device 200 generates a measurement frame 121 (see FIG. 10) destined for the terminal slave device 300 (measurement frame generation processing).
The master device communication unit 210 transmits the measurement frame 121 generated by the master device frame generation unit 220 (measurement frame transmission process).

マスタ装置計測部240は、マスタ装置通信部210が計測フレーム121を送信したときにDm’カウンタを起動する。
S210の後、S211に進む。
The master device measurement unit 240 activates the Dm ′ counter when the master device communication unit 210 transmits the measurement frame 121.
It progresses to S211 after S210.

S211において、中間のスレーブ装置300のスレーブ装置通信部310は計測フレーム121を受信する(計測フレーム受信処理)。   In S211, the slave device communication unit 310 of the intermediate slave device 300 receives the measurement frame 121 (measurement frame reception process).

スレーブ装置計測部340は、スレーブ装置通信部310が計測フレーム121を受信した場合、Ds’カウンタとMRTカウンタとを起動する。   When the slave device communication unit 310 receives the measurement frame 121, the slave device measurement unit 340 activates the Ds ′ counter and the MRT counter.

スレーブ装置フレーム処理部320は計測フレーム121を処理することができるタイミングまで待機し、スレーブ装置通信部310は計測フレーム121を送信する(計測フレーム送信処理)。   The slave device frame processing unit 320 waits until the measurement frame 121 can be processed, and the slave device communication unit 310 transmits the measurement frame 121 (measurement frame transmission processing).

スレーブ装置計測部340は、スレーブ装置通信部310が計測フレーム121を送信したときにMRTカウンタを停止する(中継処理時間計測処理)。
スレーブ装置計測部340は、MRTカウンタによって計測された時間を計測フレーム121の中継処理時間としてスレーブ装置記憶部390に記憶する(中継処理時間記憶処理)。
S211の後、S220に進む。
The slave device measurement unit 340 stops the MRT counter when the slave device communication unit 310 transmits the measurement frame 121 (relay processing time measurement process).
The slave device measurement unit 340 stores the time measured by the MRT counter in the slave device storage unit 390 as the relay processing time of the measurement frame 121 (relay processing time storage processing).
After S211, the process proceeds to S220.

S220において、末端のスレーブ装置300のスレーブ装置通信部310は計測フレーム121を受信する(計測フレーム受信処理)。
スレーブ装置フレーム処理部320は、スレーブ装置通信部310が計測フレーム121を受信した場合、マスタ装置200を宛先とする計測応答フレーム122(図10参照)を生成する(計測応答フレーム生成処理)。
スレーブ装置通信部310は、スレーブ装置フレーム処理部320によって生成された計測応答フレーム122を送信する(計測応答フレーム送信処理)。
In S220, the slave device communication unit 310 of the terminal slave device 300 receives the measurement frame 121 (measurement frame reception process).
When the slave device communication unit 310 receives the measurement frame 121, the slave device frame processing unit 320 generates a measurement response frame 122 (see FIG. 10) destined for the master device 200 (measurement response frame generation processing).
The slave device communication unit 310 transmits the measurement response frame 122 generated by the slave device frame processing unit 320 (measurement response frame transmission processing).

スレーブ装置計測部340は、スレーブ装置通信部310が計測フレーム121を受信した場合、Ds’カウンタを起動する。
スレーブ装置計測部340は、スレーブ装置通信部310が計測応答フレーム122を送信したときにDs’カウンタを停止し、Ds’カウンタによって計測されたスレーブ往復伝搬遅延時間Ds’をスレーブ装置記憶部390に記憶する。
S220の後、S221に進む。
When the slave device communication unit 310 receives the measurement frame 121, the slave device measurement unit 340 activates the Ds ′ counter.
The slave device measurement unit 340 stops the Ds ′ counter when the slave device communication unit 310 transmits the measurement response frame 122, and stores the slave round-trip propagation delay time Ds ′ measured by the Ds ′ counter in the slave device storage unit 390. Remember.
It progresses to S221 after S220.

S221において、中間のスレーブ装置300のスレーブ装置通信部310は計測応答フレーム122を受信する(計測応答フレーム受信処理)。   In S221, the slave device communication unit 310 of the intermediate slave device 300 receives the measurement response frame 122 (measurement response frame reception process).

スレーブ装置計測部340は、スレーブ装置通信部310が計測応答フレーム122を受信した場合、RRTカウンタを起動する。   When the slave device communication unit 310 receives the measurement response frame 122, the slave device measurement unit 340 activates the RRT counter.

スレーブ装置フレーム処理部320は計測応答フレーム122を処理することができるタイミングまで待機し、スレーブ装置通信部310は計測応答フレーム122を送信する(計測応答フレーム送信処理)。   The slave device frame processing unit 320 waits until the measurement response frame 122 can be processed, and the slave device communication unit 310 transmits the measurement response frame 122 (measurement response frame transmission processing).

スレーブ装置計測部340は、スレーブ装置通信部310が計測応答フレーム122を送信したときにRRTカウンタとDs’カウンタとを停止する(中継処理時間計測処理、中継装置通信時間計測処理)。
スレーブ装置計測部340は、RRTカウンタによって計測された時間を計測応答フレーム122の中継処理時間としてスレーブ装置記憶部390に記憶する(中継処理時間記憶処理)。
スレーブ装置計測部340は、Ds’カウンタによって計測されたスレーブ往復伝搬遅延時間Ds’をスレーブ装置記憶部390に記憶する(中継装置通信時間記憶処理)。
S221の後、S230に進む。
The slave device measurement unit 340 stops the RRT counter and the Ds ′ counter when the slave device communication unit 310 transmits the measurement response frame 122 (relay processing time measurement processing, relay device communication time measurement processing).
The slave device measurement unit 340 stores the time measured by the RRT counter in the slave device storage unit 390 as the relay processing time of the measurement response frame 122 (relay processing time storage processing).
The slave device measurement unit 340 stores the slave round-trip propagation delay time Ds ′ measured by the Ds ′ counter in the slave device storage unit 390 (relay device communication time storage process).
It progresses to S230 after S221.

S230において、マスタ装置200のマスタ装置通信部210は計測応答フレーム122を受信する(計測応答フレーム受信処理)。   In S230, the master device communication unit 210 of the master device 200 receives the measurement response frame 122 (measurement response frame reception process).

マスタ装置計測部240は、マスタ装置通信部210が計測応答フレーム122を受信した場合、Dm’カウンタを停止する(マスタ装置通信時間計測処理)。
マスタ装置計測部240は、Dm’カウンタによって計測されたマスタ往復伝搬遅延時間Dm’をマスタ装置記憶部290に記憶する(マスタ装置通信時間記憶処理)。
When the master device communication unit 210 receives the measurement response frame 122, the master device measurement unit 240 stops the Dm ′ counter (master device communication time measurement process).
The master device measurement unit 240 stores the master round-trip propagation delay time Dm ′ measured by the Dm ′ counter in the master device storage unit 290 (master device communication time storage process).

マスタ装置フレーム生成部220は、マスタ装置通信部210が計測応答フレーム122を受信した場合、末端のスレーブ装置300を宛先とする通知フレーム123(図10参照)を生成する(通知フレーム生成処理)。
マスタ装置通信部210は、マスタ装置フレーム生成部220によって生成された通知フレーム123を送信する(通知フレーム送信処理)。
マスタ装置通信部210は、通知フレーム123を送信した時刻を基準時刻Tmとしてスレーブ装置記憶部390に記憶する(マスタ装置時刻記憶処理)。
S230の後、S231に進む。
When the master device communication unit 210 receives the measurement response frame 122, the master device frame generation unit 220 generates a notification frame 123 (see FIG. 10) destined for the terminal slave device 300 (notification frame generation processing).
The master device communication unit 210 transmits the notification frame 123 generated by the master device frame generation unit 220 (notification frame transmission processing).
The master device communication unit 210 stores the time at which the notification frame 123 is transmitted as the reference time Tm in the slave device storage unit 390 (master device time storage process).
It progresses to S231 after S230.

S231において、中間のスレーブ装置300のスレーブ装置通信部310は通知フレーム123を受信する(通知フレーム受信処理)。
スレーブ装置通信部310は、通知フレーム123を受信した時刻をタイムスタンプ時刻Tsとしてスレーブ装置記憶部390に記憶する(中継装置時刻記憶処理)。
In S231, the slave device communication unit 310 of the intermediate slave device 300 receives the notification frame 123 (notification frame reception process).
The slave device communication unit 310 stores the time at which the notification frame 123 is received as the time stamp time Ts in the slave device storage unit 390 (relay device time storage process).

スレーブ装置計測部340は、スレーブ装置通信部310が通知フレーム123を受信した場合、NRTカウンタを起動する。   When the slave device communication unit 310 receives the notification frame 123, the slave device measurement unit 340 activates the NRT counter.

スレーブ装置フレーム処理部320は通知フレーム123を処理することができるタイミングまで待機し、スレーブ装置通信部310は通知フレーム123を送信する(通知フレーム送信処理)。   The slave device frame processing unit 320 waits until the notification frame 123 can be processed, and the slave device communication unit 310 transmits the notification frame 123 (notification frame transmission processing).

スレーブ装置計測部340は、スレーブ装置通信部310が計測応答フレーム122を送信したときにNRTカウンタを停止する(中継処理時間計測処理)。
スレーブ装置計測部340は、NRTカウンタによって計測された時間を通知フレーム123の中継処理時間としてスレーブ装置記憶部390に記憶する(中継処理時間記憶処理)。
S231の後、S240に進む。
The slave device measurement unit 340 stops the NRT counter when the slave device communication unit 310 transmits the measurement response frame 122 (relay processing time measurement process).
The slave device measurement unit 340 stores the time measured by the NRT counter in the slave device storage unit 390 as the relay processing time of the notification frame 123 (relay processing time storage processing).
It progresses to S240 after S231.

S240において、末端のスレーブ装置300のスレーブ装置通信部310は通知フレーム123を受信する(通知フレーム受信処理)。
スレーブ装置通信部310は、通知フレーム123を受信した時刻をタイムスタンプ時刻Tsとしてスレーブ装置記憶部390に記憶する(端末装置時刻記憶処理)。
In S240, the slave device communication unit 310 of the terminal slave device 300 receives the notification frame 123 (notification frame reception process).
The slave device communication unit 310 stores the time at which the notification frame 123 is received as the time stamp time Ts in the slave device storage unit 390 (terminal device time storage process).

スレーブ装置フレーム処理部320は、スレーブ装置通信部310が通知フレーム123を受信した場合、マスタ装置200を宛先とする計測補助フレーム124(図10参照)を生成する(計測補助フレーム生成処理)。このとき、スレーブ装置フレーム処理部320は、往復中継時間RTPとして初期値「0」を計測補助フレーム124に設定する。
スレーブ装置通信部310は、スレーブ装置フレーム処理部320によって生成された計測補助フレーム124を送信する(計測補助フレーム生成処理)。
S240の後、S241に進む。
When the slave device communication unit 310 receives the notification frame 123, the slave device frame processing unit 320 generates a measurement auxiliary frame 124 (see FIG. 10) destined for the master device 200 (measurement auxiliary frame generation processing). At this time, the slave device frame processing unit 320 sets an initial value “0” in the measurement auxiliary frame 124 as the round trip relay time RTP.
The slave device communication unit 310 transmits the measurement auxiliary frame 124 generated by the slave device frame processing unit 320 (measurement auxiliary frame generation processing).
It progresses to S241 after S240.

S241において、中間のスレーブ装置300のスレーブ装置通信部310は計測補助フレーム124を受信する(計測補助フレーム受信処理)。   In S241, the slave device communication unit 310 of the intermediate slave device 300 receives the measurement auxiliary frame 124 (measurement auxiliary frame reception process).

スレーブ装置フレーム処理部320は、計測補助フレーム124を処理することができるタイミングまで待機する。
そして、スレーブ装置フレーム処理部320は、計測補助フレーム124から往復中継時間RTPを取得し、スレーブ装置記憶部390から計測フレーム121の中継処理時間と計測応答フレーム122の中継処理時間とを取得する。
The slave device frame processing unit 320 waits until a timing at which the measurement auxiliary frame 124 can be processed.
Then, the slave device frame processing unit 320 acquires the round trip relay time RTP from the measurement auxiliary frame 124, and acquires the relay processing time of the measurement frame 121 and the relay processing time of the measurement response frame 122 from the slave device storage unit 390.

次に、スレーブ装置フレーム処理部320は、往復中継時間RTPと計測フレーム121の中継処理時間と計測応答フレーム122の中継処理時間とを合計した時間を新たな往復中継時間RTPとして算出する。
スレーブ装置フレーム処理部320は、算出した往復中継時間RTP(新たな往復中継時間RTP)をスレーブ装置記憶部390に記憶する。
また、スレーブ装置フレーム処理部320は、計測補助フレーム124に設定されている往復中継時間RTPを新たな往復中継時間RTPに更新する(計測補助フレーム更新処理)。
Next, the slave device frame processing unit 320 calculates a total time of the round trip relay time RTP, the relay processing time of the measurement frame 121, and the relay processing time of the measurement response frame 122 as a new round trip relay time RTP.
The slave device frame processing unit 320 stores the calculated round trip relay time RTP (new round trip relay time RTP) in the slave device storage unit 390.
Further, the slave device frame processing unit 320 updates the round trip relay time RTP set in the measurement auxiliary frame 124 to a new round trip relay time RTP (measurement auxiliary frame update processing).

スレーブ装置通信部310は、スレーブ装置フレーム処理部320によって更新された計測補助フレーム124を送信する(計測補助フレーム送信処理)。
S241の後、S250に進む。
The slave device communication unit 310 transmits the measurement auxiliary frame 124 updated by the slave device frame processing unit 320 (measurement auxiliary frame transmission processing).
It progresses to S250 after S241.

S250において、マスタ装置200のマスタ装置通信部210は計測補助フレーム124を受信する(計測補助フレーム受信処理)。   In S250, the master device communication unit 210 of the master device 200 receives the measurement auxiliary frame 124 (measurement auxiliary frame reception process).

マスタ装置算出部230は、計測補助フレーム124から往復中継時間RTPを取得し、スレーブ装置記憶部390からマスタ往復伝搬遅延時間Dm’を取得する。
マスタ装置算出部230は、マスタ往復伝搬遅延時間Dm’から往復中継時間RTPを減算して補正後マスタ往復伝搬遅延時間Dmを算出する。
以下に、補正後マスタ往復伝搬遅延時間Dmの算出式(3−1)を示す。
The master device calculation unit 230 acquires the round trip relay time RTP from the measurement auxiliary frame 124, and acquires the master round trip propagation delay time Dm ′ from the slave device storage unit 390.
The master device calculation unit 230 calculates the corrected master round trip propagation delay time Dm by subtracting the round trip relay time RTP from the master round trip propagation delay time Dm ′.
The calculation formula (3-1) for the corrected master round-trip propagation delay time Dm is shown below.

Figure 2012175567
Figure 2012175567

マスタ装置フレーム生成部220は、末端のスレーブ装置300を宛先とする通知補助フレーム125(図10参照)を生成する(通知補助フレーム生成処理)。
このとき、マスタ装置フレーム生成部220は、マスタ装置記憶部290から基準時刻Tmを取得し、取得した基準時刻Tmを通知補助フレーム125に設定する。
また、マスタ装置フレーム生成部220は、マスタ装置算出部230によって算出された補正後マスタ往復伝搬遅延時間Dmを通知補助フレーム125に設定する。
また、マスタ装置フレーム生成部220は、先行中継時間SFPとして初期値「0」を通知補助フレーム125に設定する。
The master device frame generation unit 220 generates a notification auxiliary frame 125 (see FIG. 10) destined for the terminal slave device 300 (notification auxiliary frame generation processing).
At this time, the master device frame generation unit 220 acquires the reference time Tm from the master device storage unit 290 and sets the acquired reference time Tm in the notification auxiliary frame 125.
The master device frame generation unit 220 sets the corrected master round-trip propagation delay time Dm calculated by the master device calculation unit 230 in the notification auxiliary frame 125.
Further, the master device frame generation unit 220 sets the initial value “0” in the notification auxiliary frame 125 as the preceding relay time SFP.

マスタ装置通信部210は、マスタ装置フレーム生成部220によって生成された通知補助フレーム125を送信する(通知補助フレーム送信処理)。
S250の後、S260に進む。
The master device communication unit 210 transmits the notification auxiliary frame 125 generated by the master device frame generation unit 220 (notification auxiliary frame transmission processing).
It progresses to S260 after S250.

S260において、中間のスレーブ装置300のスレーブ装置通信部310は通知補助フレーム125を受信する(通知補助フレーム受信処理)。   In S260, the slave device communication unit 310 of the intermediate slave device 300 receives the notification auxiliary frame 125 (notification auxiliary frame reception processing).

スレーブ装置同期部350は、スレーブ装置通信部310が通知補助フレーム125を受信した場合、通知補助フレーム125から基準時刻Tmと補正後マスタ往復伝搬遅延時間Dmと先行中継時間SFPとを取得する。
さらに、スレーブ装置同期部350は、スレーブ装置記憶部390からスレーブ往復伝搬遅延時間Ds’と往復中継時間RTPとタイムスタンプ時刻Tsとを取得する。
When the slave device communication unit 310 receives the notification auxiliary frame 125, the slave device synchronization unit 350 acquires the reference time Tm, the corrected master round-trip propagation delay time Dm, and the preceding relay time SFP from the notification auxiliary frame 125.
Furthermore, the slave device synchronization unit 350 acquires the slave round trip propagation delay time Ds ′, the round trip relay time RTP, and the time stamp time Ts from the slave device storage unit 390.

次に、スレーブ装置同期部350は、スレーブ往復伝搬遅延時間Ds’から往復中継時間RTPを減算した時間を補正後スレーブ往復伝搬遅延時間Dsとして算出する。   Next, the slave device synchronization unit 350 calculates a corrected slave round trip propagation delay time Ds by subtracting the round trip relay time RTP from the slave round trip propagation delay time Ds ′.

次に、スレーブ装置同期部350は、基準時刻Tmとタイムスタンプ時刻Tsとの時刻差を誤差時間として算出する。
スレーブ装置同期部350は、補正後マスタ往復伝搬遅延時間Dmから補正後スレーブ往復伝搬遅延時間Dsを減算した時間を半分にした時間を通知伝播時間として算出する。
スレーブ装置同期部350は、誤差時間に通知伝播時間と先行中継時間SFPとを加算した時間を補正値Asとして算出する。
Next, the slave device synchronization unit 350 calculates a time difference between the reference time Tm and the time stamp time Ts as an error time.
The slave device synchronization unit 350 calculates, as the notification propagation time, a time obtained by halving the time obtained by subtracting the corrected slave round-trip propagation delay time Ds from the corrected master round-trip propagation delay time Dm.
The slave device synchronization unit 350 calculates a time obtained by adding the notification propagation time and the preceding relay time SFP to the error time as the correction value As.

そして、スレーブ装置同期部350は、内部時計から現在時刻を取得し、取得した現在時刻に補正値Asを加算した時刻を同期時刻として算出し、算出した同期時刻を内部時計に設定する(同期処理)。   Then, the slave device synchronization unit 350 acquires the current time from the internal clock, calculates the time obtained by adding the correction value As to the acquired current time as the synchronization time, and sets the calculated synchronization time in the internal clock (synchronization processing) ).

例えば、スレーブ装置300の時刻(Ts)がマスタ装置200の時刻(Tm)より早い時刻(前の時刻)である場合、補正値Asはプラスの値になり、スレーブ装置300の時刻がマスタ装置200の時刻よりも遅い時刻(後の時刻)である場合、補正値Asはマイナスの値になる。
そして、この補正値Asをスレーブ装置300の現在時刻に加算することによりスレーブ装置300の現在時刻をマスタ装置200の現在時刻に合わせることができる。
スレーブ装置300の時刻が早い時刻である場合、補正値As(プラスの値)を加算することにより、スレーブ装置300の時刻が「プラス補正」されるためである。
また、スレーブ装置300の時刻が遅い時刻である場合、補正値As(マイナスの値)を加算することにより、スレーブ装置300の時刻が「マイナス補正」されるためである。
For example, when the time (Ts) of the slave device 300 is earlier (previous time) than the time (Tm) of the master device 200, the correction value As is a positive value, and the time of the slave device 300 is the master device 200. When the time is later than (time after), the correction value As is a negative value.
Then, by adding this correction value As to the current time of the slave device 300, the current time of the slave device 300 can be matched with the current time of the master device 200.
This is because when the time of the slave device 300 is early, the time of the slave device 300 is “plus-corrected” by adding the correction value As (plus value).
Further, when the time of the slave device 300 is late, the time of the slave device 300 is “negatively corrected” by adding the correction value As (a negative value).

以下に、補正後スレーブ往復伝搬遅延時間Dsの算出式(3−2)と補正値Asの算出式(3−3)とを示す。   The calculation formula (3-2) for the corrected slave round-trip propagation delay time Ds and the calculation formula (3-3) for the correction value As are shown below.

Figure 2012175567
Figure 2012175567

スレーブ装置フレーム処理部320は、通知補助フレーム125を処理することができるタイミングまで待機する。
その後、スレーブ装置フレーム処理部320は、通知補助フレーム125から先行中継時間SFPを取得し、スレーブ装置記憶部390から通知フレーム123の中継処理時間を取得する。
The slave device frame processing unit 320 waits until the notification auxiliary frame 125 can be processed.
Thereafter, the slave device frame processing unit 320 acquires the preceding relay time SFP from the notification auxiliary frame 125 and acquires the relay processing time of the notification frame 123 from the slave device storage unit 390.

スレーブ装置フレーム処理部320は、先行中継時間SFPに通知フレーム123の中継処理時間を加算した合計時間を新たな先行中継時間SFPとして算出する。
そして、スレーブ装置フレーム処理部320は、通知補助フレーム125に設定されている先行中継時間SFPを新たな先行中継時間SFPに更新する(通知中継処理時間更新処理)。
The slave device frame processing unit 320 calculates a total time obtained by adding the relay processing time of the notification frame 123 to the preceding relay time SFP as a new preceding relay time SFP.
Then, the slave device frame processing unit 320 updates the preceding relay time SFP set in the notification auxiliary frame 125 to a new preceding relay time SFP (notification relay processing time update processing).

スレーブ装置通信部310は、スレーブ装置フレーム処理部320によって更新された通知補助フレーム125を送信する(通知補助フレーム送信処理)。
S260の後、S270に進む。
The slave device communication unit 310 transmits the notification auxiliary frame 125 updated by the slave device frame processing unit 320 (notification auxiliary frame transmission processing).
It progresses to S270 after S260.

S270において、末端のスレーブ装置300のスレーブ装置通信部310は通知補助フレーム125を受信する(通知補助フレーム受信処理)。   In S270, the slave device communication unit 310 of the terminal slave device 300 receives the notification auxiliary frame 125 (notification auxiliary frame reception processing).

スレーブ装置同期部350は、スレーブ装置通信部310によって受信された通知補助フレーム125に基づいて補正値Asを算出し、算出した補正値Asに基づいて内部時計の時刻を変更する(同期処理)。
補正値Asの算出方法および内部時計の時刻の変更方法は、中間のスレーブ装置300による方法と同じである(S260参照)。
S270により、同期システム100の同期方法の処理は終了する。
The slave device synchronization unit 350 calculates the correction value As based on the notification auxiliary frame 125 received by the slave device communication unit 310, and changes the time of the internal clock based on the calculated correction value As (synchronization processing).
The method of calculating the correction value As and the method of changing the time of the internal clock are the same as the method by the intermediate slave device 300 (see S260).
By S270, the process of the synchronization method of the synchronization system 100 ends.

図14、図15は、実施の形態3における同期システム100の処理の具体例を示すシーケンス図である。
図16は、実施の形態3における同期システム100で記憶する計測時間の具体例を示す一覧表である。
実施の形態3における同期システム100の処理の具体例について、図14から図16に基づいて説明する。
14 and 15 are sequence diagrams illustrating specific examples of processing of the synchronization system 100 according to the third embodiment.
FIG. 16 is a list showing specific examples of measurement times stored in the synchronization system 100 according to the third embodiment.
A specific example of processing of the synchronization system 100 according to the third embodiment will be described with reference to FIGS.

図14において、同期システム100は、マスタ装置と中間のスレーブ装置A・Bと末端のスレーブ装置Cとを備える。   14, the synchronization system 100 includes a master device, intermediate slave devices A and B, and a terminal slave device C.

(1)マスタ装置は、スレーブ装置Cを宛先とする計測フレーム121を生成し、生成した計測フレーム121を送信する。 (1) The master device generates a measurement frame 121 destined for the slave device C, and transmits the generated measurement frame 121.

(2)中間のスレーブ装置Aは、計測フレーム121を受信する。
(3)しかし、計測フレーム121より優先度が高い割込みフレームが発生したため、スレーブ装置Aは計測フレーム121より先に割込みフレームを処理する。
(4)スレーブ装置Aは、計測フレーム121を送信する。
また、スレーブ装置Aは、計測フレーム121を受信してから送信するまでの中継処理時間「α1」を記憶する(図16参照)。
(2) The intermediate slave device A receives the measurement frame 121.
(3) However, since an interrupt frame having a higher priority than the measurement frame 121 is generated, the slave device A processes the interrupt frame before the measurement frame 121.
(4) The slave device A transmits the measurement frame 121.
Further, the slave device A stores the relay processing time “α1” from the reception of the measurement frame 121 to the transmission (see FIG. 16).

(5)中間のスレーブ装置Bは計測フレーム121を受信し、受信した計測フレーム121を送信する。
また、スレーブ装置Bは、計測フレーム121を受信してから送信するまでの中継処理時間「α2」を記憶する(図16参照)。
(5) The intermediate slave device B receives the measurement frame 121 and transmits the received measurement frame 121.
Further, the slave device B stores the relay processing time “α2” from when the measurement frame 121 is received to when it is transmitted (see FIG. 16).

(6)末端のスレーブ装置Cは計測フレーム121を受信する。
(7)スレーブ装置Cはマスタ装置を宛先とする計測応答フレーム122を生成し、生成した計測応答フレーム122を送信する。
また、スレーブ装置Cは計測フレーム121を受信してから計測応答フレーム122を送信するまでの時間「Ds3’」をスレーブ往復伝搬遅延時間Ds’として記憶する(図16参照)。
(6) The slave device C at the end receives the measurement frame 121.
(7) The slave device C generates a measurement response frame 122 destined for the master device, and transmits the generated measurement response frame 122.
Further, the slave device C stores the time “Ds3 ′” from the reception of the measurement frame 121 to the transmission of the measurement response frame 122 as the slave round-trip propagation delay time Ds ′ (see FIG. 16).

(8)中間のスレーブ装置Bは、計測応答フレーム122を受信する。
(9)スレーブ装置Bは、計測応答フレーム122を送信する。
また、スレーブ装置Bは、計測応答フレーム122を受信してから送信するまでの中継処理時間「β1」を記憶する(図16参照)。
さらに、スレーブ装置Bは、計測フレーム121を受信してから計測応答フレーム122を送信するまでの時間「Ds2’」をスレーブ往復伝搬遅延時間Ds’として記憶する(図16参照)。
(8) The intermediate slave device B receives the measurement response frame 122.
(9) The slave device B transmits the measurement response frame 122.
Further, the slave device B stores the relay processing time “β1” from the reception of the measurement response frame 122 to the transmission (see FIG. 16).
Furthermore, the slave device B stores the time “Ds2 ′” from the reception of the measurement frame 121 to the transmission of the measurement response frame 122 as the slave round-trip propagation delay time Ds ′ (see FIG. 16).

(10)中間のスレーブ装置Aは計測応答フレーム122を受信し、受信した計測応答フレーム122を送信する。
また、スレーブ装置Aは、計測応答フレーム122を受信してから送信するまでの中継処理時間「β2」を記憶する(図16参照)。
さらに、スレーブ装置Bは、計測フレーム121を受信してから計測応答フレーム122を送信するまでの時間「Ds1’」をスレーブ往復伝搬遅延時間Ds’として記憶する(図16参照)。
(10) The intermediate slave device A receives the measurement response frame 122 and transmits the received measurement response frame 122.
Further, the slave device A stores the relay processing time “β2” from the reception of the measurement response frame 122 to the transmission (see FIG. 16).
Furthermore, the slave device B stores the time “Ds1 ′” from the reception of the measurement frame 121 to the transmission of the measurement response frame 122 as the slave round-trip propagation delay time Ds ′ (see FIG. 16).

(11)マスタ装置は計測応答フレーム122を受信する。
また、マスタ装置は、計測フレーム121を送信してから計測応答フレーム122を受信するまでの時間「Dm’」をマスタ往復伝搬遅延時間Dm’として記憶する(図16参照)。
(12)マスタ装置は末端のスレーブ装置Cを宛先とする通知フレーム123を生成し、生成した通知フレーム123を送信する。
また、マスタ装置は通知フレーム123を送信したときの時刻「Tm」を基準時刻Tmとして記憶する(図16参照)。
(11) The master device receives the measurement response frame 122.
Further, the master device stores the time “Dm ′” from the transmission of the measurement frame 121 to the reception of the measurement response frame 122 as the master round-trip propagation delay time Dm ′ (see FIG. 16).
(12) The master device generates a notification frame 123 whose destination is the terminal slave device C, and transmits the generated notification frame 123.
Further, the master device stores the time “Tm” when the notification frame 123 is transmitted as the reference time Tm (see FIG. 16).

(13)中間のスレーブ装置Aは、通知フレーム123を受信する。
また、スレーブ装置Aは、通知フレーム123を受信したときの時刻「Ts1」をタイムスタンプ時刻Tsとして記憶する(図16参照)。
(14)スレーブ装置Aは、通知フレーム123を送信する。
また、スレーブ装置Aは、通知フレーム123を受信してから送信するまでの中継処理時間「γ1」を計測し、計測した中継処理時間「γ1」を記憶する。
(13) The intermediate slave device A receives the notification frame 123.
Further, the slave device A stores the time “Ts1” when the notification frame 123 is received as the time stamp time Ts (see FIG. 16).
(14) The slave device A transmits the notification frame 123.
Further, the slave device A measures the relay processing time “γ1” from when the notification frame 123 is received until it is transmitted, and stores the measured relay processing time “γ1”.

(15)中間のスレーブ装置Bは通知フレーム123を受信し、受信した通知フレーム123を送信する。
また、スレーブ装置Bは、通知フレーム123を受信したときの時刻「Ts2」をタイムスタンプ時刻Tsとして記憶する(図16参照)。
さらに、スレーブ装置Bは、通知フレーム123を受信してから送信するまでの中継処理時間「γ2」を計測し、計測した中継処理時間「γ2」を記憶する。
(15) The intermediate slave device B receives the notification frame 123 and transmits the received notification frame 123.
Further, the slave device B stores the time “Ts2” when the notification frame 123 is received as the time stamp time Ts (see FIG. 16).
Furthermore, the slave device B measures the relay processing time “γ2” from when the notification frame 123 is received until it is transmitted, and stores the measured relay processing time “γ2”.

(16)末端のスレーブ装置Cは通知フレーム123を受信する。
また、スレーブ装置Cは、通知フレーム123を受信したときの時刻「Ts3」をタイムスタンプ時刻Tsとして記憶する(図16参照)。
(16) The slave device C at the end receives the notification frame 123.
Further, the slave device C stores the time “Ts3” when the notification frame 123 is received as the time stamp time Ts (see FIG. 16).

図15に基づいて続きを説明する。   A continuation is demonstrated based on FIG.

(17)スレーブ装置Cは、往復中継時間RTPの初期値「0」を設定した計測補助フレーム124を生成し、生成した計測補助フレーム124をマスタ装置宛てに送信する。
また、スレーブ装置Cは、往復中継時間RTP「0」を記憶する。
(17) The slave device C generates the measurement auxiliary frame 124 in which the initial value “0” of the round trip relay time RTP is set, and transmits the generated measurement auxiliary frame 124 to the master device.
In addition, the slave device C stores the round trip relay time RTP “0”.

(18)中間のスレーブ装置Bは、計測補助フレーム124を受信する。
(19)スレーブ装置Bは、計測フレーム121の中継処理時間「α2」と計測応答フレーム122の中継処理時間「β1」(図16参照)と計測補助フレーム124内の往復中継時間RTP「0」との合計時間「α2+β1」を算出する。
そして、スレーブ装置Bは、算出した合計時間「α1+β1」を往復中継時間RTPとして計測補助フレーム124に設定し、計測補助フレーム124を送信する。
また、スレーブ装置Bは、往復中継時間RTP「α2+β1」を記憶する。
(18) The intermediate slave device B receives the measurement auxiliary frame 124.
(19) The slave device B receives the relay processing time “α2” of the measurement frame 121, the relay processing time “β1” (see FIG. 16) of the measurement response frame 122, and the round trip relay time RTP “0” in the measurement auxiliary frame 124. The total time “α2 + β1” is calculated.
Then, the slave device B sets the calculated total time “α1 + β1” as the round trip relay time RTP in the measurement auxiliary frame 124, and transmits the measurement auxiliary frame 124.
Further, the slave device B stores the round-trip relay time RTP “α2 + β1”.

(20)中間のスレーブ装置Aは、計測補助フレーム124を受信する。
(21)スレーブ装置Aは、計測フレーム121の中継処理時間「α1」と計測応答フレーム122の中継処理時間「β2」(図16参照)と計測補助フレーム124内の往復中継時間RTP「α2+β1」との合計時間「α1+α2+β1+β2」を算出する(図16参照)。
そして、スレーブ装置Aは、算出した合計時間「α1+α2+β1+β2」を往復中継時間RTPとして計測補助フレーム124に設定し、計測補助フレーム124を送信する。
また、スレーブ装置Aは、往復中継時間RTP「α1+α2+β1+β2」を記憶する(図16参照)。
(20) The intermediate slave device A receives the measurement auxiliary frame 124.
(21) The slave device A receives the relay processing time “α1” of the measurement frame 121, the relay processing time “β2” (see FIG. 16) of the measurement response frame 122, and the round-trip relay time RTP “α2 + β1” in the measurement auxiliary frame 124. The total time “α1 + α2 + β1 + β2” is calculated (see FIG. 16).
Then, the slave device A sets the calculated total time “α1 + α2 + β1 + β2” as the round trip relay time RTP in the measurement auxiliary frame 124, and transmits the measurement auxiliary frame 124.
Further, the slave device A stores the round-trip relay time RTP “α1 + α2 + β1 + β2” (see FIG. 16).

(22)マスタ装置は、計測補助フレーム124を受信する。
マスタ装置は、計測補助フレーム124に設定されている往復中継時間RTPを記憶する(図16参照)。
(23)マスタ装置は、マスタ往復伝搬遅延時間Dm’と往復中継時間RTP「α1+α2+β1+β2」とを用いて補正後マスタ往復伝搬遅延時間Dmを算出する(下記式(3−4)参照)。
マスタ装置は、基準時刻Tmと補正後マスタ往復伝搬遅延時間Dmと先行中継時間SFPの初期値「0」とを設定して通知補助フレーム125を生成し、生成した通知補助フレーム125を末端のスレーブ装置C宛てに送信する。
(22) The master device receives the measurement auxiliary frame 124.
The master device stores the round trip relay time RTP set in the measurement auxiliary frame 124 (see FIG. 16).
(23) The master device calculates the corrected master round-trip propagation delay time Dm using the master round-trip propagation delay time Dm ′ and the round-trip relay time RTP “α1 + α2 + β1 + β2” (see the following formula (3-4)).
The master apparatus sets the reference time Tm, the corrected master round-trip propagation delay time Dm, and the initial value “0” of the preceding relay time SFP to generate the notification auxiliary frame 125, and the generated notification auxiliary frame 125 is used as the terminal slave. Transmit to device C.

(24)中間のスレーブ装置Aは、通知補助フレーム125を受信する。
スレーブ装置Aは、通知補助フレーム125の設定値(Tm、Dm、SFP「0」)と記憶済みの計測値(Ds1’、α1+α2+β1+β2、Ts1)(図16参照)とを用いて補正値As1を算出する(下記式(3−5)参照)。
そして、スレーブ装置Aは、内部時計の時刻を補正値As1だけ経過後の時刻に更新してマスタ装置と同期する。
(25)スレーブ装置Aは、通知フレーム123の中継準備時間「γ1」(図16参照)を加算した先行中継時間SFP「(0+)γ1」を通知補助フレーム125に設定し、通知補助フレーム125を送信する。
(24) The intermediate slave device A receives the notification auxiliary frame 125.
The slave device A calculates the correction value As1 using the set values (Tm, Dm, SFP “0”) of the notification auxiliary frame 125 and the stored measurement values (Ds1 ′, α1 + α2 + β1 + β2, Ts1) (see FIG. 16). (Refer to the following formula (3-5)).
Then, the slave device A synchronizes with the master device by updating the time of the internal clock to the time after the correction value As1 has elapsed.
(25) The slave device A sets the preceding relay time SFP “(0+) γ1” obtained by adding the relay preparation time “γ1” (see FIG. 16) of the notification frame 123 to the notification auxiliary frame 125, and sets the notification auxiliary frame 125 to Send.

(26)中間のスレーブ装置Bは、通知補助フレーム125を受信する。
スレーブ装置Bは、通知補助フレーム125の設定値(Tm、Dm、SFP「γ1」)と記憶済みの計測値(Ds2’、α2+β1、Ts2)(図16参照)とを用いて補正値As2を算出する(下記式(3−6)参照)。
そして、スレーブ装置Bは、内部時計の時刻を補正値As2を加算した時刻に更新してマスタ装置と同期する。
(27)スレーブ装置Bは、通知フレーム123の中継準備時間「γ2」(図16参照)を加算した先行中継時間SFP「γ1+γ2」を通知補助フレーム125に設定し、通知補助フレーム125を送信する。
(26) The intermediate slave device B receives the notification auxiliary frame 125.
The slave device B calculates the correction value As2 using the set values (Tm, Dm, SFP “γ1”) of the notification auxiliary frame 125 and the stored measurement values (Ds2 ′, α2 + β1, Ts2) (see FIG. 16). (Refer to the following formula (3-6)).
Then, the slave device B updates the time of the internal clock to the time obtained by adding the correction value As2, and synchronizes with the master device.
(27) The slave device B sets the preceding relay time SFP “γ1 + γ2” obtained by adding the relay preparation time “γ2” (see FIG. 16) of the notification frame 123 to the notification auxiliary frame 125, and transmits the notification auxiliary frame 125.

(28)末端のスレーブ装置Cは、通知補助フレーム125を受信する。
スレーブ装置Cは、通知補助フレーム125の設定値(Tm、Dm、SFP「γ1+γ2」)と記憶済みの計測値(Ds3’、RTP「0」、Ts3)(図16参照)とを用いて補正値As3を算出する(下記式(3−7)参照)。
そして、スレーブ装置Cは、内部時計の時刻を補正値As3を加算した時刻に更新してマスタ装置と同期する。
(28) The slave device C at the end receives the notification auxiliary frame 125.
The slave device C uses the set values (Tm, Dm, SFP “γ1 + γ2”) of the notification auxiliary frame 125 and the stored measurement values (Ds3 ′, RTP “0”, Ts3) (see FIG. 16) to correct the correction values. As3 is calculated (see the following formula (3-7)).
Then, the slave device C updates the time of the internal clock to the time obtained by adding the correction value As3 and synchronizes with the master device.

Figure 2012175567
Figure 2012175567

図17、図18は、実施の形態3における同期処理の一例を示す図である。
図17に示すように、スレーブ装置Bの時刻がマスタ装置の時刻より「80」だけ早い時刻(前の時刻)である場合、補正値Asとして「80」が算出される。この補正値As「80」をスレーブ装置Bの時刻に加算することにより、スレーブ装置Bの時刻を「80」だけ遅い時刻(後の時刻)に補正し、スレーブ装置Bの時刻をマスタ装置の時刻に合わせることができる。
図18に示すように、スレーブ装置Bの時刻がマスタ装置の時刻より「20」だけ遅い時刻である場合、補正値Asとして「−20」が算出される。この補正値As「−20」をスレーブ装置Bの時刻に加算することにより、スレーブ装置Bの時刻を「20」だけ早い時刻に補正し、スレーブ装置Bの時刻をマスタ装置の時刻に合わせることができる。
17 and 18 are diagrams illustrating an example of the synchronization processing in the third embodiment.
As shown in FIG. 17, when the time of the slave device B is “80” earlier than the time of the master device (previous time), “80” is calculated as the correction value As. By adding this correction value As “80” to the time of the slave device B, the time of the slave device B is corrected to a time later by “80” (later time), and the time of the slave device B is changed to the time of the master device. Can be adapted to
As illustrated in FIG. 18, when the time of the slave device B is “20” later than the time of the master device, “−20” is calculated as the correction value As. By adding this correction value As “−20” to the time of the slave device B, the time of the slave device B is corrected by “20” earlier, and the time of the slave device B is adjusted to the time of the master device. it can.

上記の同期方法では複数の中継処理時間を合計した合計時間を各フレームに設定しているが、合計時間ではなく各中継処理時間を各フレームに設定しても構わない。
例えば、スレーブ装置A・Bは計測補助フレーム124に各々の中継処理時間「α1」「α2」「β1」「β2」を設定する。そして、マスタ装置が各中継処理時間を合計して往復中継時間RTP「α1+α2+β1+β2」を算出する。
In the above synchronization method, the total time obtained by summing up a plurality of relay processing times is set for each frame, but each relay processing time may be set for each frame instead of the total time.
For example, the slave devices A and B set the relay processing times “α 1”, “α 2”, “β 1”, and “β 2” in the measurement auxiliary frame 124. Then, the master device calculates the round trip time RTP “α1 + α2 + β1 + β2” by summing up the relay processing times.

以上により、実施の形態3の説明を終了する。   This is the end of the description of the third embodiment.

100 同期システム、101 通信ポート、102 通信ケーブル、111 計測フレーム、112 計測応答フレーム、113 通知フレーム、121 計測フレーム、122 計測応答フレーム、123 通知フレーム、124 計測補助フレーム、125 通知補助フレーム、200 マスタ装置、210 マスタ装置通信部、220 マスタ装置フレーム生成部、230 マスタ装置算出部、240 マスタ装置計測部、290 マスタ装置記憶部、300 スレーブ装置、310 スレーブ装置通信部、320 スレーブ装置フレーム処理部、330 スレーブ装置算出部、340 スレーブ装置計測部、350 スレーブ装置同期部、390 スレーブ装置記憶部、901 CPU、902 バス、903 ROM、904 RAM、905 通信ボード、911 ディスプレイ装置、912 キーボード、913 マウス、914 ドライブ装置、920 磁気ディスク装置、921 OS、922 プログラム群、923 ファイル群。   100 synchronization system, 101 communication port, 102 communication cable, 111 measurement frame, 112 measurement response frame, 113 notification frame, 121 measurement frame, 122 measurement response frame, 123 notification frame, 124 measurement auxiliary frame, 125 notification auxiliary frame, 200 master Device, 210 master device communication unit, 220 master device frame generation unit, 230 master device calculation unit, 240 master device measurement unit, 290 master device storage unit, 300 slave device, 310 slave device communication unit, 320 slave device frame processing unit, 330 Slave device calculation unit, 340 Slave device measurement unit, 350 Slave device synchronization unit, 390 Slave device storage unit, 901 CPU, 902 bus, 903 ROM, 904 RAM, 905 communication Board, 911 display device, 912 keyboard, 913 mouse, 914 drive device, 920 magnetic disk device, 921 OS, 922 program group, 923 file group.

Claims (12)

端末装置と、前記端末装置に計測フレームを送信して前記端末装置から計測応答フレームを受信するマスタ装置と、前記マスタ装置と前記端末装置との間で通信される前記計測フレームと前記計測応答フレームとを所定の中継準備処理後に中継する1台以上の中継装置とを備える同期システムにおいて、
前記マスタ装置は、
前記計測フレームを送信すると共に、各中継装置が前記計測フレームの中継準備処理と前記計測応答フレームの中継準備処理とに要した中継準備時間を表す中継準備時間情報を含んだ計測応答フレームを受信するマスタ装置通信部と、
前記マスタ装置通信部が前記計測フレームを送信してから前記マスタ装置通信部が前記計測応答フレームを受信するまでの時間をマスタ装置通信時間として計測するマスタ装置計測部と、
前記マスタ装置計測部によって計測されたマスタ装置通信時間と前記計測応答フレームに含まれる前記中継準備時間情報とに基づいて前記マスタ装置通信時間から前記マスタ装置通信時間に含まれる中継準備時間を除いた時間をマスタ装置伝播時間として算出するマスタ装置算出部と、
現在時刻を基準時刻として含むと共に前記マスタ装置算出部によって算出されたマスタ装置伝播時間を含む通知フレームを生成するマスタ装置フレーム生成部とを備え、
前記マスタ装置通信部は、前記マスタ装置フレーム生成部によって生成された通知フレームを前記端末装置へ送信し、
各中継装置は、
前記計測フレームと前記計測応答フレームと前記通知フレームとを送受信する中継装置通信部と、
前記中継装置通信部が前記計測フレームを受信してから前記中継装置通信部が前記計測応答フレームを送信するまでの時間を中継装置通信時間として計測する中継装置計測部と、
前記中継装置計測部によって計測された中継装置通信時間と前記計測応答フレームに含まれる中継準備時間情報とに基づいて前記中継装置通信時間から前記中継装置通信時間に含まれる中継準備時間を除いた時間を中継装置伝播時間として算出し、算出した中継装置伝播時間と前記通知フレームに含まれるマスタ装置伝播時間とに基づいて前記マスタ装置が前記通知フレームを送信してから前記中継装置通信部が前記通知フレームを受信するまでに要する時間を通知伝播時間として算出し、算出した通知伝播時間と前記通知フレームに含まれる基準時刻とに基づいて前記基準時刻から前記通知伝播時間が経過した時刻を同期時刻として算出し、算出した同期時刻を内部時計に設定する中継装置同期部とを備えることを特徴とする同期システム。
A terminal device; a master device that transmits a measurement frame to the terminal device and receives a measurement response frame from the terminal device; and the measurement frame and the measurement response frame communicated between the master device and the terminal device In a synchronous system comprising one or more relay devices that relay the above after a predetermined relay preparation process,
The master device is
While transmitting the measurement frame, each relay apparatus receives a measurement response frame including relay preparation time information indicating a relay preparation time required for the relay preparation process of the measurement frame and the relay preparation process of the measurement response frame A master device communication unit;
A master device measurement unit that measures a time from when the master device communication unit transmits the measurement frame until the master device communication unit receives the measurement response frame as a master device communication time;
Based on the master device communication time measured by the master device measurement unit and the relay preparation time information included in the measurement response frame, the relay preparation time included in the master device communication time is excluded from the master device communication time. A master device calculator that calculates time as a master device propagation time;
A master device frame generation unit that generates a notification frame that includes the current time as a reference time and includes the master device propagation time calculated by the master device calculation unit;
The master device communication unit transmits the notification frame generated by the master device frame generation unit to the terminal device,
Each relay device
A relay device communication unit that transmits and receives the measurement frame, the measurement response frame, and the notification frame;
A relay device measuring unit that measures a time from when the relay device communication unit receives the measurement frame until the relay device communication unit transmits the measurement response frame as a relay device communication time;
Time obtained by removing the relay preparation time included in the relay device communication time from the relay device communication time based on the relay device communication time measured by the relay device measurement unit and the relay preparation time information included in the measurement response frame As the relay device propagation time, and based on the calculated relay device propagation time and the master device propagation time included in the notification frame, the relay device communication unit notifies the notification after the master device transmits the notification frame. The time required to receive the frame is calculated as the notification propagation time, and the time when the notification propagation time has elapsed from the reference time based on the calculated notification propagation time and the reference time included in the notification frame is used as the synchronization time. A synchronization system comprising: a relay device synchronization unit that calculates and sets the calculated synchronization time in an internal clock
前記計測フレームは、前記計測フレームの中継準備処理に要した中継準備時間の合計値を示す先行中継準備時間を含み、
前記計測応答フレームは、前記計測フレームの中継準備処理と前記計測応答フレームの中継準備処理とに要した中継準備時間の合計値を示す総中継準備時間を前記中継準備時間情報として含み、
前記マスタ装置フレーム生成部は、前記先行中継準備時間として初期値「0」を設定して前記計測フレームを生成し、
前記マスタ装置通信部は、前記マスタ装置フレーム生成部によって生成された計測フレームを送信し、
各中継装置の中継装置通信部は、前記マスタ装置と他の中継装置とのいずれかから送信された計測フレームを受信し、
各中継装置は、さらに、
前記中継装置通信部によって受信された計測フレームに基づいて前記計測フレームに含まれる先行中継準備時間を記憶する先行中継準備時間記憶部を備え、
前記中継装置計測部は、前記中継装置通信部が前記計測フレームを受信してから前記計測フレームの中継準備処理が終了するまでの時間を前記計測フレームの中継準備時間として計測し、
前記中継装置計測部によって計測された前記計測フレームの中継準備時間と前記計測フレームに含まれる先行中継準備時間とを合計した時間を新たな先行中継準備時間として算出する中継装置算出部と、
前記中継装置算出部によって算出された新たな先行中継準備時間に基づいて前記計測フレームに含まれる先行中継準備時間を新たな先行中継準備時間に更新する中継装置フレーム更新部とを備え、
前記中継装置通信部は、前記中継装置フレーム更新部によって更新された計測フレームを送信し、
前記端末装置は、
前記計測フレームを中継する最後の中継装置から送信された計測フレームを受信する端末装置通信部と、
前記端末装置通信部によって受信された計測フレームに基づいて前記計測フレームに含まれる先行中継準備時間を前記総中継準備時間として設定して前記計測応答フレームを生成する端末装置フレーム生成部とを備え、
前記端末装置通信部は、前記端末装置フレーム生成部によって生成された計測応答フレームを送信し、
各中継装置の中継装置通信部は、前記端末装置と他の中継装置とのいずれかから送信された計測応答フレームを受信し、
前記中継装置計測部は、前記中継装置通信部が前記計測応答フレームを受信してから前記計測応答フレームの中継準備処理が終了するまでの時間を前記計測応答フレームの中継準備時間として計測し、
前記中継装置算出部は、前記中継装置計測部によって計測された前記計測応答フレームの中継準備時間と前記計測応答フレームに含まれる総中継準備時間とを合計した時間を新たな総中継準備時間として算出し、
前記中継装置フレーム更新部は、前記中継装置算出部によって算出された新たな総中継準備時間に基づいて前記計測応答フレームに含まれる総中継準備時間を新たな総中継準備時間に更新し、
前記中継装置通信部は、前記中継装置フレーム更新部によって更新された計測応答フレームを送信し、
各中継装置は、さらに、
前記中継装置算出部によって算出された新たな総中継準備時間を記憶する総中継準備時間記憶部を備え、
前記マスタ装置通信部は、前記計測フレームを中継する先頭の中継装置から送信された計測応答フレームを受信し、
前記マスタ装置算出部は、前記マスタ装置通信部によって受信された計測応答フレームと前記マスタ装置計測部によって計測されたマスタ装置通信時間とに基づいて、前記マスタ装置通信時間から前記計測応答フレームに含まれる総中継準備時間を除算した時間を前記マスタ装置伝播時間として算出し、
前記マスタ装置フレーム生成部は、初期値「0」を通知中継準備時間として含めて前記通知フレームを生成し、
前記マスタ装置通信部は、前記マスタ装置フレーム生成部によって生成された通知フレームを送信し、
各中継装置の中継装置通信部は、前記マスタ装置と他の中継装置とのいずれかから送信された通知フレームを受信し、
前記中継装置計測部は、前記中継装置通信部が前記通知フレームを受信してから前記通知フレームの中継準備処理が終了するまでの時間を前記通知フレームの中継準備時間として計測し、
前記中継装置算出部は、前記中継装置計測部によって計測された前記通知フレームの中継準備時間と前記通知フレームに含まれる通知中継準備時間とを合計した時間を新たな通知中継準備時間として算出し、
前記中継装置フレーム更新部は、前記中継装置算出部によって算出された新たな通知中継準備時間に基づいて前記通知フレームに含まれる通知中継準備時間を新たな通知中継準備時間に更新し、
前記中継装置通信部は、前記中継装置フレーム更新部によって更新された通知フレームを送信し、
前記中継装置同期部は、前記中継装置計測部によって計測された中継装置通信時間と前記総中継時間記憶部に記憶された総中継準備時間と前記先行中継準備時間記憶部に記憶された先行中継準備時間とに基づいて前記中継装置伝播時間を算出し、算出した中継装置伝播時間と前記中継装置通信部によって受信された通知フレームとに基づいて前記同期時刻を算出し、算出した同期時刻を前記内部時計に設定する
ことを特徴とする請求項1記載の同期システム。
The measurement frame includes a preceding relay preparation time indicating a total value of relay preparation time required for relay preparation processing of the measurement frame,
The measurement response frame includes, as the relay preparation time information, a total relay preparation time indicating a total value of relay preparation times required for the relay preparation processing of the measurement frame and the relay preparation processing of the measurement response frame,
The master device frame generation unit sets the initial value “0” as the preceding relay preparation time, generates the measurement frame,
The master device communication unit transmits the measurement frame generated by the master device frame generation unit,
The relay device communication unit of each relay device receives a measurement frame transmitted from either the master device or another relay device,
Each relay device further
A preceding relay preparation time storage unit that stores the preceding relay preparation time included in the measurement frame based on the measurement frame received by the relay device communication unit;
The relay device measurement unit measures the time from when the relay device communication unit receives the measurement frame to when the relay frame preparation process ends, as the relay frame preparation time,
A relay device calculation unit that calculates a total time of the relay preparation time of the measurement frame measured by the relay device measurement unit and the preceding relay preparation time included in the measurement frame as a new preceding relay preparation time;
A relay device frame update unit that updates the preceding relay preparation time included in the measurement frame to a new preceding relay preparation time based on the new preceding relay preparation time calculated by the relay device calculation unit;
The relay device communication unit transmits the measurement frame updated by the relay device frame update unit,
The terminal device
A terminal device communication unit that receives the measurement frame transmitted from the last relay device that relays the measurement frame;
A terminal device frame generation unit configured to generate the measurement response frame by setting the preceding relay preparation time included in the measurement frame as the total relay preparation time based on the measurement frame received by the terminal device communication unit;
The terminal device communication unit transmits the measurement response frame generated by the terminal device frame generation unit;
The relay device communication unit of each relay device receives a measurement response frame transmitted from either the terminal device or another relay device,
The relay device measurement unit measures the time from when the relay device communication unit receives the measurement response frame to when the relay preparation process of the measurement response frame ends as a relay preparation time of the measurement response frame,
The relay device calculation unit calculates a total time of the relay preparation time of the measurement response frame measured by the relay device measurement unit and the total relay preparation time included in the measurement response frame as a new total relay preparation time And
The relay device frame update unit updates the total relay preparation time included in the measurement response frame to a new total relay preparation time based on the new total relay preparation time calculated by the relay device calculation unit,
The relay device communication unit transmits the measurement response frame updated by the relay device frame update unit,
Each relay device further
A total relay preparation time storage unit for storing a new total relay preparation time calculated by the relay device calculation unit;
The master device communication unit receives a measurement response frame transmitted from a leading relay device that relays the measurement frame,
The master device calculation unit is included in the measurement response frame from the master device communication time based on the measurement response frame received by the master device communication unit and the master device communication time measured by the master device measurement unit. Calculated as the master device propagation time by dividing the total relay preparation time
The master device frame generation unit includes the initial value “0” as a notification relay preparation time to generate the notification frame,
The master device communication unit transmits the notification frame generated by the master device frame generation unit,
The relay device communication unit of each relay device receives a notification frame transmitted from either the master device or another relay device,
The relay device measurement unit measures the time from when the relay device communication unit receives the notification frame to when the relay frame preparation process ends, as the relay frame preparation time of the notification frame,
The relay device calculation unit calculates a total time of the relay preparation time of the notification frame measured by the relay device measurement unit and the notification relay preparation time included in the notification frame as a new notification relay preparation time,
The relay device frame update unit updates the notification relay preparation time included in the notification frame to a new notification relay preparation time based on the new notification relay preparation time calculated by the relay device calculation unit,
The relay device communication unit transmits the notification frame updated by the relay device frame update unit,
The relay device synchronization unit includes the relay device communication time measured by the relay device measurement unit, the total relay preparation time stored in the total relay time storage unit, and the preceding relay preparation stored in the preceding relay preparation time storage unit. The relay device propagation time is calculated based on the time, the synchronization time is calculated based on the calculated relay device propagation time and the notification frame received by the relay device communication unit, and the calculated synchronization time is The synchronization system according to claim 1, wherein the synchronization system is set to a clock.
前記中継装置同期部は、
前記総中継準備時間から前記先行中継準備時間を減算した時間を往復中継準備時間として算出し、
算出した往復中継準備時間を前記中継装置通信時間から減算した時間を前記中継装置伝播時間として算出し、
算出した中継装置伝播時間を前記通知フレームに含まれるマスタ装置伝播時間から減算し、減算して得られた時間を半分にした時間を前記通知伝播時間として算出し、
算出した通知伝播時間と前記通知フレームに含まれる通知中継準備時間とを前記通知フレームに含まれる基準時刻に加算した時刻を前記同期時刻として算出する
ことを特徴とする請求項2記載の同期システム。
The relay device synchronization unit
Calculate the time obtained by subtracting the preceding relay preparation time from the total relay preparation time as the round-trip relay preparation time,
A time obtained by subtracting the calculated round trip relay preparation time from the relay device communication time is calculated as the relay device propagation time;
Subtracting the calculated relay device propagation time from the master device propagation time included in the notification frame, to calculate the time obtained by halving the time obtained by subtraction as the notification propagation time,
The synchronization system according to claim 2, wherein a time obtained by adding the calculated notification propagation time and the notification relay preparation time included in the notification frame to a reference time included in the notification frame is calculated as the synchronization time.
前記端末装置は、さらに、
前記端末装置通信部が前記計測フレームを受信してから前記端末装置通信部が前記計測応答フレームを送信するまでの時間を端末装置遅延時間として計測する端末装置計測部と、
前記端末装置計測部によって計測された端末装置遅延時間と前記通知フレームとに基づいて前記マスタ装置と同期する時刻を端末装置時刻として算出し、算出した端末装置時刻を内部時計に設定する端末装置同期部とを備える
ことを特徴とする請求項3記載の同期システム。
The terminal device further includes:
A terminal device measurement unit that measures a time from when the terminal device communication unit receives the measurement frame until the terminal device communication unit transmits the measurement response frame as a terminal device delay time;
A terminal device synchronization that calculates a time synchronized with the master device based on the terminal device delay time measured by the terminal device measurement unit and the notification frame as a terminal device time, and sets the calculated terminal device time in an internal clock The synchronization system according to claim 3, further comprising a unit.
前記端末装置同期部は、
前記通知フレームに含まれるマスタ装置伝播時間から前記端末装置遅延時間を減算し、減算して得られた時間を半分にした時間を通知伝播時間として算出し、
算出した通知伝播時間と前記通知フレームに含まれる通知中継準備時間とを前記通知フレームに含まれる基準時刻に加算した時刻を前記端末装置時刻として算出する
ことを特徴とする請求項4記載の同期システム。
The terminal device synchronization unit is
Subtracting the terminal device delay time from the master device propagation time included in the notification frame, to calculate the time obtained by halving the time obtained by subtraction as the notification propagation time,
5. The synchronization system according to claim 4, wherein a time obtained by adding the calculated notification propagation time and the notification relay preparation time included in the notification frame to the reference time included in the notification frame is calculated as the terminal device time. .
端末装置と、前記端末装置に計測フレームを送信して前記端末装置から計測応答フレームを受信するマスタ装置と、前記マスタ装置と前記端末装置との間で通信される前記計測フレームと前記計測応答フレームとを所定の中継準備処理後に中継する1台以上の中継装置とを備える同期システムの同期方法において、
前記マスタ装置は、
前記計測フレームを送信すると共に、各中継装置が前記計測フレームの中継準備処理と前記計測応答フレームの中継準備処理とに要した中継準備時間を表す中継準備時間情報を含んだ計測応答フレームを受信し、
前記計測フレームを送信してから前記計測応答フレームを受信するまでの時間をマスタ装置通信時間として計測し、
前記マスタ装置通信時間と前記計測応答フレームに含まれる前記中継準備時間情報とに基づいて前記マスタ装置通信時間から前記マスタ装置通信時間に含まれる中継準備時間を除いた時間をマスタ装置伝播時間として算出し、
現在時刻を基準時刻として含むと共に前記マスタ装置伝播時間を含む通知フレームを生成し、
前記通知フレームを前記端末装置へ送信し、
各中継装置は、
前記計測フレームと前記計測応答フレームと前記通知フレームとを送受信し、
前記計測フレームを受信してから前記計測応答フレームを送信するまでの時間を中継装置通信時間として計測し、
前記中継装置通信時間と前記計測応答フレームに含まれる中継準備時間情報とに基づいて前記中継装置通信時間から前記中継装置通信時間に含まれる中継準備時間を除いた時間を中継装置伝播時間として算出し、算出した中継装置伝播時間と前記通知フレームに含まれるマスタ装置伝播時間とに基づいて前記マスタ装置が前記通知フレームを送信してから自中継装置が前記通知フレームを受信するまでに要する時間を通知伝播時間として算出し、算出した通知伝播時間と前記通知フレームに含まれる基準時刻とに基づいて前記基準時刻から前記通知伝播時間が経過した時刻を同期時刻として算出し、算出した同期時刻を内部時計に設定する
ことを特徴とする同期システムの同期方法。
A terminal device; a master device that transmits a measurement frame to the terminal device and receives a measurement response frame from the terminal device; and the measurement frame and the measurement response frame communicated between the master device and the terminal device In a synchronization method of a synchronization system comprising one or more relay devices that relay the above after a predetermined relay preparation process,
The master device is
While transmitting the measurement frame, each relay device receives a measurement response frame including relay preparation time information indicating a relay preparation time required for the relay preparation processing of the measurement frame and the relay preparation processing of the measurement response frame. ,
Measure the time from transmitting the measurement frame to receiving the measurement response frame as a master device communication time,
Based on the master device communication time and the relay preparation time information included in the measurement response frame, a time obtained by subtracting the relay preparation time included in the master device communication time from the master device communication time is calculated as a master device propagation time. And
A notification frame including the current time as a reference time and including the master device propagation time;
Sending the notification frame to the terminal device;
Each relay device
Sending and receiving the measurement frame, the measurement response frame and the notification frame;
Measuring the time from receiving the measurement frame to transmitting the measurement response frame as a relay device communication time,
Based on the relay device communication time and the relay preparation time information included in the measurement response frame, a time obtained by subtracting the relay preparation time included in the relay device communication time from the relay device communication time is calculated as a relay device propagation time. Based on the calculated relay device propagation time and the master device propagation time included in the notification frame, a notification is made of the time required for the own relay device to receive the notification frame after the master device transmits the notification frame. Calculated as a propagation time, based on the calculated notification propagation time and a reference time included in the notification frame, a time when the notification propagation time has elapsed from the reference time is calculated as a synchronization time, and the calculated synchronization time is an internal clock A synchronization method for a synchronization system, characterized in that:
端末装置と、マスタ装置と、前記マスタ装置と前記端末装置との間で通信されるフレームを所定の中継処理によって中継する1台以上の中継装置とを備える同期システムにおいて、
前記マスタ装置は、
所定の計測フレームを送信し、前記端末装置から送信される計測応答フレームを受信するマスタ装置通信部と、
前記マスタ装置通信部が前記計測フレームを送信してから前記マスタ装置通信部が前記計測応答フレームを受信するまでの時間をマスタ装置通信時間として計測するマスタ装置計測部とを備え、
前記マスタ装置通信部は、所定の通知フレームを送信し、前記端末装置から送信される計測補助フレームであって各中継装置が前記計測フレームの中継処理と前記計測応答フレームの中継処理とに要した中継処理時間を表す中継処理時間情報を含んだ計測補助フレームを受信し、
前記マスタ装置は、さらに、
前記計測補助フレームに含まれる中継処理時間情報と前記マスタ装置計測部によって計測されたマスタ装置通信時間とに基づいて前記マスタ装置通信時間から前記マスタ装置通信時間に含まれる中継処理時間を除いた時間をマスタ装置伝播時間として算出するマスタ装置算出部と、
前記マスタ装置通信部が前記通知フレームを送信した時刻をマスタ装置時刻として含むと共に前記マスタ装置算出部によって算出されたマスタ装置伝播時間を含む通知補助フレームを生成するマスタ装置フレーム生成部とを備え、
前記マスタ装置通信部は、前記マスタ装置フレーム生成部によって生成された通知補助フレームを送信し、
各中継装置は、
前記計測フレームと前記計測応答フレームと前記通知フレームと前記計測補助フレームと前記通知補助フレームとを送受信する中継装置通信部と、
前記中継装置通信部が前記計測フレームを受信してから前記中継装置通信部が前記計測応答フレームを送信するまでの時間を中継装置通信時間として計測する中継装置計測部と、
前記中継装置計測部によって計測された中継装置通信時間と前記計測補助フレームに含まれる中継処理時間情報とに基づいて前記中継装置通信時間から前記中継装置通信時間に含まれる中継処理時間を除いた時間を中継装置伝播時間として算出し、算出した中継装置伝播時間と前記通知補助フレームに含まれるマスタ装置伝播時間とに基づいて前記マスタ装置が前記通知フレームを送信してから前記中継装置通信部が前記通知フレームを受信するまでに要する時間を通知伝播時間として算出し、算出した通知伝播時間と前記通知補助フレームに含まれるマスタ装置時刻と前記中継装置通信部が前記通知フレームを受信した中継装置時刻とに基づいて前記マスタ装置との時刻差を補正時間として算出し、算出した補正時間だけ内部時計の時刻を変更する中継装置同期部とを備える
ことを特徴とする同期システム。
In a synchronization system comprising a terminal device, a master device, and one or more relay devices that relay frames communicated between the master device and the terminal device by a predetermined relay process,
The master device is
A master device communication unit that transmits a predetermined measurement frame and receives a measurement response frame transmitted from the terminal device;
A master device measurement unit that measures a time from when the master device communication unit transmits the measurement frame to when the master device communication unit receives the measurement response frame as a master device communication time;
The master device communication unit transmits a predetermined notification frame and is a measurement auxiliary frame transmitted from the terminal device, and each relay device is required for the relay process of the measurement frame and the relay process of the measurement response frame. Receive a measurement auxiliary frame containing relay processing time information representing the relay processing time,
The master device further includes:
Time obtained by removing the relay processing time included in the master device communication time from the master device communication time based on the relay processing time information included in the measurement auxiliary frame and the master device communication time measured by the master device measuring unit. A master device calculation unit that calculates the master device propagation time,
A master device frame generation unit that generates a notification auxiliary frame that includes the master device propagation time calculated by the master device calculation unit and includes a time at which the master device communication unit transmits the notification frame as a master device time;
The master device communication unit transmits the notification auxiliary frame generated by the master device frame generation unit,
Each relay device
A relay device communication unit that transmits and receives the measurement frame, the measurement response frame, the notification frame, the measurement auxiliary frame, and the notification auxiliary frame;
A relay device measuring unit that measures a time from when the relay device communication unit receives the measurement frame until the relay device communication unit transmits the measurement response frame as a relay device communication time;
Time obtained by removing the relay processing time included in the relay device communication time from the relay device communication time based on the relay device communication time measured by the relay device measuring unit and the relay processing time information included in the measurement auxiliary frame. As the relay device propagation time, and the relay device communication unit transmits the notification frame based on the calculated relay device propagation time and the master device propagation time included in the notification auxiliary frame. The time required to receive the notification frame is calculated as the notification propagation time, the calculated notification propagation time, the master device time included in the notification auxiliary frame, and the relay device time at which the relay device communication unit receives the notification frame, The time difference from the master device is calculated as a correction time based on the time of the internal clock by the calculated correction time. Synchronization system characterized in that it comprises a relay device synchronization unit further to.
前記計測補助フレームは、前記計測フレームの中継処理と前記計測応答フレームの中継処理とに要した中継処理時間の合計値を示す往復中継処理時間を前記中継処理時間情報として含み、
前記マスタ装置は、さらに、
前記マスタ装置通信部が前記通知フレームを送信した時刻を前記マスタ装置時刻として記憶するマスタ装置時刻記憶部を備え、
各中継装置の中継装置計測部は、前記中継装置通信部が前記計測フレームを受信してから前記計測フレームを送信するまでの時間を前記計測フレームの中継処理時間として計測し、前記中継装置通信部が前記計測応答フレームを受信してから前記計測応答フレームを送信するまでの時間を前記計測応答フレームの中継処理時間として計測し、前記中継装置通信部が前記通知フレームを受信してから前記通知フレームを送信するまでの時間を前記通知フレームの中継処理時間として計測し、
各中継装置は、さらに、
前記中継装置計測部によって計測された前記計測フレームの中継処理時間と前記計測応答フレームの中継処理時間と前記通知フレームの中継処理時間とを記憶する個別中継処理時間記憶部と、
前記中継装置通信部が前記通知フレームを受信した時刻を前記中継装置時刻として記憶する中継装置時刻記憶部とを備え、
前記端末装置は、
前記往復中継処理時間として初期値「0」を設定して前記計測補助フレームを生成する端末装置フレーム生成部と、
前記端末装置フレーム生成部によって生成された計測補助フレームを送信する端末装置通信部とを備え、
各中継装置は、さらに、
前記中継装置通信部によって受信された計測補助フレームと前記個別中継処理時間記憶部とに基づいて前記往復中継処理時間と前記計測フレームの中継処理時間と前記計測応答フレームの中継処理時間とを合計した時間を新たな往復中継処理時間として算出する中継装置算出部と、
前記中継装置算出部によって算出された新たな往復中継処理時間を記憶する往復中継処理時間記憶部と、
前記中継装置算出部によって算出された新たな往復中継処理時間に基づいて前記計測補助フレームに含まれる往復中継処理時間を新たな往復中継処理時間に更新する中継装置フレーム更新部とを備え、
前記中継装置通信部は、前記中継装置フレーム更新部によって更新された計測補助フレームを送信し、
前記マスタ装置のマスタ装置算出部は、前記マスタ装置計測部によって計測されたマスタ装置通信時間と前記マスタ装置通信部によって受信された計測補助フレームとに基づいて前記マスタ装置通信時間から前記計測補助フレームに含まれる往復中継処理時間を減算した時間を前記マスタ装置伝播時間として算出し、
前記マスタ装置フレーム生成部は、前記マスタ装置時刻記憶部に記憶されたマスタ装置時刻を設定すると共に初期値「0」を通知中継処理時間として設定して前記通知補助フレームを生成し、
前記マスタ装置通信部は、前記マスタ装置フレーム生成部によって生成された通知補助フレームを送信し、
各中継装置の中継装置算出部は、前記中継装置通信部によって受信された通知補助フレームと前記個別中継処理時間記憶部とに基づいて前記通知補助フレームに含まれる通知中継処理時間と前記通知フレームの中継処理時間とを合計した時間を新たな通知中継処理時間として算出し、
前記中継装置フレーム更新部は、前記中継装置算出部によって算出された新たな通知中継処理時間に基づいて前記通知補助フレームに含まれる通知中継処理時間を新たな通知中継処理時間に更新し、
前記中継装置通信部は、前記中継装置フレーム更新部によって更新された通知補助フレームを送信し、
前記中継装置同期部は、前記中継装置計測部によって計測された中継装置通信時間と前記往復中継処理時間記憶部に記憶された往復中継処理時間とに基づいて前記中継装置伝播時間を算出し、算出した中継装置伝播時間と前記通知補助フレームに含まれるマスタ装置時刻と前記中継装置時刻記憶部に記憶された中継装置時刻とに基づいて前記補正時間を算出し、算出した補正時間だけ内部時計の時刻を変更する
ことを特徴とする請求項7記載の同期システム。
The measurement auxiliary frame includes, as the relay processing time information, a round trip relay processing time indicating a total value of relay processing times required for the relay processing of the measurement frame and the relay processing of the measurement response frame,
The master device further includes:
A master device time storage unit that stores, as the master device time, a time at which the master device communication unit transmits the notification frame;
The relay device measurement unit of each relay device measures a time from when the relay device communication unit receives the measurement frame until the measurement frame is transmitted as a relay processing time of the measurement frame, and the relay device communication unit Measures the time from when the measurement response frame is received until the measurement response frame is transmitted as the relay processing time of the measurement response frame, and after the relay device communication unit receives the notification frame, the notification frame Is measured as the relay processing time of the notification frame,
Each relay device further
An individual relay processing time storage unit that stores the relay processing time of the measurement frame measured by the relay device measuring unit, the relay processing time of the measurement response frame, and the relay processing time of the notification frame;
A relay device time storage unit that stores the time at which the relay device communication unit receives the notification frame as the relay device time;
The terminal device
A terminal device frame generation unit that sets the initial value “0” as the round-trip relay processing time and generates the measurement auxiliary frame;
A terminal device communication unit that transmits the measurement auxiliary frame generated by the terminal device frame generation unit,
Each relay device further
Based on the measurement auxiliary frame received by the relay device communication unit and the individual relay processing time storage unit, the round-trip relay processing time, the relay processing time of the measurement frame, and the relay processing time of the measurement response frame are summed A relay device calculation unit that calculates time as a new round-trip relay processing time;
A round-trip relay processing time storage unit that stores a new round-trip relay processing time calculated by the relay device calculation unit;
A relay device frame update unit that updates the round trip relay processing time included in the measurement auxiliary frame to a new round trip relay processing time based on the new round trip relay processing time calculated by the relay device calculation unit;
The relay device communication unit transmits the measurement auxiliary frame updated by the relay device frame update unit,
The master device calculation unit of the master device calculates the measurement auxiliary frame from the master device communication time based on the master device communication time measured by the master device measurement unit and the measurement auxiliary frame received by the master device communication unit. The time obtained by subtracting the round-trip relay processing time included in is calculated as the master device propagation time,
The master device frame generation unit sets the master device time stored in the master device time storage unit and sets the initial value “0” as a notification relay processing time to generate the notification auxiliary frame,
The master device communication unit transmits the notification auxiliary frame generated by the master device frame generation unit,
The relay device calculation unit of each relay device includes the notification relay processing time included in the notification auxiliary frame and the notification frame based on the notification auxiliary frame received by the relay device communication unit and the individual relay processing time storage unit. Calculate the total time of the relay processing time as the new notification relay processing time,
The relay device frame update unit updates the notification relay processing time included in the notification auxiliary frame based on the new notification relay processing time calculated by the relay device calculation unit to a new notification relay processing time;
The relay device communication unit transmits the notification auxiliary frame updated by the relay device frame update unit,
The relay device synchronization unit calculates the relay device propagation time based on the relay device communication time measured by the relay device measurement unit and the round trip relay processing time stored in the round trip relay processing time storage unit. The correction time is calculated based on the relay device propagation time, the master device time included in the notification auxiliary frame, and the relay device time stored in the relay device time storage unit, and the time of the internal clock is calculated by the calculated correction time. The synchronization system according to claim 7, wherein the synchronization system is changed.
前記中継装置同期部は、
前記中継装置通信時間から前記往復中継処理時間を減算した時間を前記中継装置伝播時間として算出し、
算出した中継装置伝播時間を前記通知補助フレームに含まれるマスタ装置伝播時間から減算し、減算して得られた時間を半分にした時間を前記通知伝播時間として算出し、
前記通知補助フレームに含まれるマスタ装置時刻と前記中継装置時刻記憶部に記憶された中継装置時刻との時刻差を誤差時間として算出し、
算出した誤差時間に前記通知伝播時間と前記通知補助フレームに含まれる通知中継処理時間とを加算した時間を補正時間として算出する
ことを特徴とする請求項8記載の同期システム。
The relay device synchronization unit
A time obtained by subtracting the round trip relay processing time from the relay device communication time is calculated as the relay device propagation time,
Subtracting the calculated relay device propagation time from the master device propagation time included in the notification auxiliary frame, to calculate the time obtained by halving the time obtained by subtraction as the notification propagation time,
Calculating a time difference between the master device time included in the notification auxiliary frame and the relay device time stored in the relay device time storage unit as an error time;
9. The synchronization system according to claim 8, wherein a time obtained by adding the notification propagation time and the notification relay processing time included in the notification auxiliary frame to the calculated error time is calculated as a correction time.
前記端末装置は、さらに、
前記端末装置通信部が前記計測フレームを受信してから前記端末装置通信部が前記計測応答フレームを送信するまでの時間を端末装置遅延時間として計測する端末装置計測部と、
前記端末装置通信部が前記通知フレームを受信した時刻を端末装置時刻として記憶する端末装置時刻記憶部とを備え、
前記端末装置計測部によって計測された端末装置遅延時間と前記端末装置時刻記憶部に記憶された端末装置時刻と前記端末装置通信部によって受信される通知補助フレームとに基づいて前記マスタ装置との時刻差を補正時間として算出し、算出した補正時間だけ内部時計の時刻を変更する端末装置同期部とを備える
ことを特徴とする請求項9記載の同期システム。
The terminal device further includes:
A terminal device measurement unit that measures a time from when the terminal device communication unit receives the measurement frame until the terminal device communication unit transmits the measurement response frame as a terminal device delay time;
A terminal device time storage unit that stores a time at which the terminal device communication unit receives the notification frame as a terminal device time;
The time with the master device based on the terminal device delay time measured by the terminal device measurement unit, the terminal device time stored in the terminal device time storage unit, and the notification auxiliary frame received by the terminal device communication unit The synchronization system according to claim 9, further comprising: a terminal device synchronization unit that calculates the difference as a correction time and changes the time of the internal clock by the calculated correction time.
前記端末装置同期部は、
前記通知補助フレームに含まれるマスタ装置伝播時間から前記端末装置遅延時間を減算し、減算して得られた時間を半分にした時間を通知伝播時間として算出し、
前記通知補助フレームに含まれるマスタ装置時刻と前記端末装置時刻記憶部に記憶された端末装置時刻との時刻差を誤差時間として算出し、
算出した誤差時間に前記通知伝播時間と前記通知補助フレームに含まれる通知中継処理時間とを加算した時間を補正時間として算出する
ことを特徴とする請求項10記載の同期システム。
The terminal device synchronization unit is
Subtracting the terminal device delay time from the master device propagation time included in the notification auxiliary frame, to calculate the time obtained by halving the time obtained by subtraction as the notification propagation time,
Calculating the time difference between the master device time included in the notification auxiliary frame and the terminal device time stored in the terminal device time storage unit as an error time;
11. The synchronization system according to claim 10, wherein a time obtained by adding the notification propagation time and the notification relay processing time included in the notification auxiliary frame to the calculated error time is calculated as a correction time.
端末装置と、マスタ装置と、前記マスタ装置と前記端末装置との間で通信されるフレームを所定の中継処理によって中継する1台以上の中継装置とを備える同期システムの同期方法において、
前記マスタ装置は、
所定の計測フレームを送信し、前記端末装置から送信される計測応答フレームを受信し、
前記計測フレームを送信してから前記計測応答フレームを受信するまでの時間をマスタ装置通信時間として計測し、
所定の通知フレームを送信し、前記端末装置から送信される計測補助フレームであって各中継装置が前記計測フレームの中継処理と前記計測応答フレームの中継処理とに要した中継処理時間を表す中継処理時間情報を含んだ計測補助フレームを受信し、
前記計測補助フレームに含まれる中継処理時間情報と計測された前記マスタ装置通信時間とに基づいて前記マスタ装置通信時間から前記マスタ装置通信時間に含まれる中継処理時間を除いた時間をマスタ装置伝播時間として算出し、
前記通知フレームを送信した時刻をマスタ装置時刻として含むと共に前記マスタ装置伝播時間を含む通知補助フレームを生成し、
前記通知補助フレームを送信し、
各中継装置は、
前記計測フレームと前記計測応答フレームと前記通知フレームと前記計測補助フレームと前記通知補助フレームとを送受信し、
前記計測フレームを受信してから前記計測応答フレームを送信するまでの時間を中継装置通信時間として計測し、
計測された中継装置通信時間と前記計測補助フレームに含まれる中継処理時間情報とに基づいて前記中継装置通信時間から前記中継装置通信時間に含まれる中継処理時間を除いた時間を中継装置伝播時間として算出し、算出した中継装置伝播時間と前記通知補助フレームに含まれるマスタ装置伝播時間とに基づいて前記マスタ装置が前記通知フレームを送信してから自中継装置が前記通知フレームを受信するまでに要する時間を通知伝播時間として算出し、算出した通知伝播時間と前記通知補助フレームに含まれるマスタ装置時刻と前記通知フレームを受信した中継装置時刻とに基づいて前記マスタ装置との時刻差を補正時間として算出し、算出した補正時間だけ内部時計の時刻を変更する
ことを特徴とする同期システムの同期方法。
In a synchronization method of a synchronization system comprising a terminal device, a master device, and one or more relay devices that relay frames communicated between the master device and the terminal device by a predetermined relay process,
The master device is
Transmitting a predetermined measurement frame, receiving a measurement response frame transmitted from the terminal device,
Measure the time from transmitting the measurement frame to receiving the measurement response frame as a master device communication time,
A relay process that transmits a predetermined notification frame and is a measurement auxiliary frame that is transmitted from the terminal device and that represents a relay processing time required for each relay device to perform the relay process of the measurement frame and the relay process of the measurement response frame Receive a measurement auxiliary frame containing time information,
Based on the relay processing time information included in the measurement auxiliary frame and the measured master device communication time, a time obtained by excluding the relay processing time included in the master device communication time from the master device communication time is a master device propagation time. As
Including a time when the notification frame is transmitted as a master device time and generating a notification auxiliary frame including the master device propagation time;
Sending the notification auxiliary frame;
Each relay device
Transmitting and receiving the measurement frame, the measurement response frame, the notification frame, the measurement auxiliary frame, and the notification auxiliary frame;
Measuring the time from receiving the measurement frame to transmitting the measurement response frame as a relay device communication time,
Based on the measured relay device communication time and the relay processing time information included in the measurement auxiliary frame, the time obtained by subtracting the relay processing time included in the relay device communication time from the relay device communication time is defined as the relay device propagation time. Based on the calculated relay device propagation time and the master device propagation time included in the notification auxiliary frame, it is necessary for the master device to receive the notification frame after the master device transmits the notification frame. The time is calculated as the notification propagation time, and based on the calculated notification propagation time, the master device time included in the notification auxiliary frame, and the relay device time that received the notification frame, the time difference from the master device is used as the correction time. A synchronization method for a synchronization system, characterized by calculating and changing the time of the internal clock by the calculated correction time.
JP2011037479A 2011-02-23 2011-02-23 Synchronization system, and synchronization method of synchronization system Pending JP2012175567A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011037479A JP2012175567A (en) 2011-02-23 2011-02-23 Synchronization system, and synchronization method of synchronization system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011037479A JP2012175567A (en) 2011-02-23 2011-02-23 Synchronization system, and synchronization method of synchronization system

Publications (1)

Publication Number Publication Date
JP2012175567A true JP2012175567A (en) 2012-09-10

Family

ID=46977998

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011037479A Pending JP2012175567A (en) 2011-02-23 2011-02-23 Synchronization system, and synchronization method of synchronization system

Country Status (1)

Country Link
JP (1) JP2012175567A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015171014A (en) * 2014-03-07 2015-09-28 日本電気株式会社 Time synchronization method, network system, cpu, relay apparatus, and user apparatus
JP2016116150A (en) * 2014-12-17 2016-06-23 三菱電機株式会社 Time synchronization device and communication network device
JP2016119548A (en) * 2014-12-19 2016-06-30 ファナック株式会社 Time synchronization system for communication devices
US10333611B2 (en) 2014-11-05 2019-06-25 Nec Corporation Communication system, time synchronization method, and radio relay device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0715421A (en) * 1993-06-25 1995-01-17 Fuji Facom Corp Clock synchronizing device in communication network
JP2005204249A (en) * 2004-01-19 2005-07-28 Fujitsu Ltd System for measuring delay
JP2005253033A (en) * 2004-02-06 2005-09-15 Nippon Telegr & Teleph Corp <Ntt> Network synchronization device, clock transmission method, and clock transmission packet network
WO2008129594A1 (en) * 2007-04-04 2008-10-30 Mitsubishi Electric Corporation Communication system, management apparatus, communication apparatus and computer program
JP2009124548A (en) * 2007-11-16 2009-06-04 Oki Electric Ind Co Ltd Delay time measuring method, packet repeating device, delay time measuring device, and program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0715421A (en) * 1993-06-25 1995-01-17 Fuji Facom Corp Clock synchronizing device in communication network
JP2005204249A (en) * 2004-01-19 2005-07-28 Fujitsu Ltd System for measuring delay
JP2005253033A (en) * 2004-02-06 2005-09-15 Nippon Telegr & Teleph Corp <Ntt> Network synchronization device, clock transmission method, and clock transmission packet network
WO2008129594A1 (en) * 2007-04-04 2008-10-30 Mitsubishi Electric Corporation Communication system, management apparatus, communication apparatus and computer program
JP2009124548A (en) * 2007-11-16 2009-06-04 Oki Electric Ind Co Ltd Delay time measuring method, packet repeating device, delay time measuring device, and program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015171014A (en) * 2014-03-07 2015-09-28 日本電気株式会社 Time synchronization method, network system, cpu, relay apparatus, and user apparatus
US10333611B2 (en) 2014-11-05 2019-06-25 Nec Corporation Communication system, time synchronization method, and radio relay device
JP2016116150A (en) * 2014-12-17 2016-06-23 三菱電機株式会社 Time synchronization device and communication network device
JP2016119548A (en) * 2014-12-19 2016-06-30 ファナック株式会社 Time synchronization system for communication devices

Similar Documents

Publication Publication Date Title
KR102031268B1 (en) Method and apparatus for communicating time information between time-aware devices
US9634782B2 (en) Clock synchronization system, clock synchronization method, and storage medium whereupon clock synchronization program is stored
JP6351889B1 (en) Communication system and slave device
JP6192995B2 (en) COMMUNICATION DEVICE, COMMUNICATION SYSTEM, COMMUNICATION METHOD, AND COMPUTER PROGRAM
WO2013051447A1 (en) Time control device, time control method, and program
JPWO2014041592A1 (en) Correction parameter calculation apparatus and system, correction parameter calculation method, and computer program
JP5815155B2 (en) Relay device, relay method, and relay program
JP2012175567A (en) Synchronization system, and synchronization method of synchronization system
US11336510B2 (en) Information processing system, information processing method, and non-transitory recording medium
KR20180099140A (en) Apparatus and method for synchoronizing clock
JP2013168811A (en) Network system and time synchronization method
JP2017005378A (en) Estimation device, system, method, and program
JP2015188159A (en) Slave node, time synchronization method, and computer program
JP2014165582A (en) Time synchronization system, time synchronization method, slave node and computer program
US20160359979A1 (en) Communication device, communication system, and computer program product
US20160359609A1 (en) Communication device, communication system, estimation method, and computer program product
US20150106647A1 (en) Method and a Device for Maintaining a Synchronized Local Timer Using a Periodic Signal
JP2015117941A (en) Communication system and time synchronization method
JP6310758B2 (en) Time synchronization apparatus and method
JP2018125768A (en) Data transmission device and program
JP2017063363A (en) Communication system and packet switch
JP6572136B2 (en) COMMUNICATION SYSTEM, COMMUNICATION DEVICE, SECOND DEVICE, COMMUNICATION METHOD, AND COMPUTER PROGRAM
JP2014165581A (en) Time synchronization system, time synchronization method, slave node and computer program
JPWO2020095413A1 (en) Communication systems, communication devices, and programs
US20230388097A1 (en) Relay device, time synchronization system, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20131114

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140509

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140520

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20140924