JP2016219870A - Time synchronization controller, time synchronization control system, time synchronization control method, and time synchronization control program - Google Patents

Time synchronization controller, time synchronization control system, time synchronization control method, and time synchronization control program Download PDF

Info

Publication number
JP2016219870A
JP2016219870A JP2015099132A JP2015099132A JP2016219870A JP 2016219870 A JP2016219870 A JP 2016219870A JP 2015099132 A JP2015099132 A JP 2015099132A JP 2015099132 A JP2015099132 A JP 2015099132A JP 2016219870 A JP2016219870 A JP 2016219870A
Authority
JP
Japan
Prior art keywords
time
time information
output
signal processing
synchronization control
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.)
Granted
Application number
JP2015099132A
Other languages
Japanese (ja)
Other versions
JP6612526B2 (en
Inventor
孝浩 緒方
Takahiro Ogata
孝浩 緒方
上田 健
Takeshi Ueda
健 上田
琢哉 大平
Takuya Ohira
琢哉 大平
拓望 野村
Takumi Nomura
拓望 野村
潤 木庭
Jun Kiniwa
潤 木庭
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.)
NEC Communication Systems Ltd
Original Assignee
NEC Communication Systems Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Communication Systems Ltd filed Critical NEC Communication Systems Ltd
Priority to JP2015099132A priority Critical patent/JP6612526B2/en
Publication of JP2016219870A publication Critical patent/JP2016219870A/en
Application granted granted Critical
Publication of JP6612526B2 publication Critical patent/JP6612526B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To perform time synchronization with high accuracy, when a specific device synchronizes the time information with other device, even if the time required for the processing performed by the specific device varies in accordance with the state of a system including the specific device.SOLUTION: A time synchronization controller 30 includes a storage section 31 for storing the current time information, outputted from a time output section 34, as second time information 310, upon receiving an input signal including first time information 400 received from an external device 40, and an update section 32 for updating the current time information outputted from the time output section 34, based on third time information 340, i.e., the current time information outputted from the time output section 34, when a signal processing section 33 performing predetermined signal processing for the input signal has finished the signal processing, the first time information 400, and the second time information 310 stored in the storage section 31.SELECTED DRAWING: Figure 4

Description

本願発明は、複数の装置が各々保有する時刻情報を同期する技術に関する。   The present invention relates to a technique for synchronizing time information held by each of a plurality of devices.

複数の電子機器が連携して動作するシステムが、様々な分野において稼働している。例えば自動車分野における車載Top Viewカメラシステムは、自動車の前後左右に設置されたカメラが同時刻に撮影した映像データに基づいて、その自動車の周囲を表示した映像データを合成する。また、互いに異なるドメイン(通信ネットワーク)に存在する複数の装置が、協調して動作することによって、1つのシステムとして動作するシステムもある。このようなシステムでは、連携して動作する電子機器が各々保有する時刻情報を同期する必要があるので、複数の電子機器が各々保有する時刻情報を高い精度で同期する技術が期待されている。   A system in which a plurality of electronic devices operate in cooperation operates in various fields. For example, an in-vehicle Top View camera system in the automobile field synthesizes video data displaying the surroundings of a car based on video data taken at the same time by cameras installed on the front, rear, left and right of the car. There is also a system in which a plurality of devices existing in different domains (communication networks) operate as one system by operating in cooperation. In such a system, it is necessary to synchronize the time information held by the electronic devices operating in cooperation with each other. Therefore, a technique for synchronizing the time information held by the plurality of electronic devices with high accuracy is expected.

このような技術に関連する技術の一例として、特許文献1には、マスタ装置と、当該マスタ装置と光ファイバ伝送路により接続された中継装置と、当該中継装置と光ファイバ伝送路により接続され当該マスタ装置と時刻同期を行うスレーブ装置と、を備えた時刻同期システムが開示されている。この時刻同期システムでは、マスタ装置及び中継装置は、それぞれ、光源波長を異なる複数の波長に切り替えて、各々の遅延時間測定パケットを送出する。スレーブ装置は、各遅延時間測定パケットによる往復遅延時間の測定結果と各波長における伝送速度又は屈折率を示す情報を用いて、マスタ装置から時刻が配信された時に時刻を補正するための伝送路遅延時間補正値を算出する。   As an example of technology related to such technology, Patent Document 1 discloses a master device, a relay device connected to the master device by an optical fiber transmission line, and a relay device connected to the master device by an optical fiber transmission line. A time synchronization system including a master device and a slave device that performs time synchronization is disclosed. In this time synchronization system, the master device and the relay device each switch the light source wavelength to a plurality of different wavelengths and transmit each delay time measurement packet. The slave device uses a measurement result of the round trip delay time by each delay time measurement packet and information indicating a transmission speed or a refractive index at each wavelength, and a transmission path delay for correcting the time when the time is delivered from the master device. A time correction value is calculated.

また、特許文献2には、伝送路を介して互いに接続された一対の終端装置を有する通信システムが開示されている。この通信システムは、測定主体である一方の終端装置が、他方の終端装置へ送信する遅延測定用の通信フレームと、このフレームに対応してその他方の終端装置から返信される返信フレームとを用いて、当該両終端装置間のフレーム遅延を求める遅延測定機能を備えている。この通信システムでは、測定主体である終端装置は、通信フレームを送信した時から受信するまでに要する時間が異なる複数のフレーム遅延の値に基づいて、両終端装置間についてローカルクロックの比を求める演算部を備える。   Further, Patent Document 2 discloses a communication system having a pair of termination devices connected to each other via a transmission line. This communication system uses a communication frame for delay measurement that is transmitted from one terminal device, which is a measurement subject, to the other terminal device, and a reply frame that is returned from the other terminal device in response to this frame. Thus, a delay measuring function for obtaining a frame delay between the both terminal devices is provided. In this communication system, an end device that is a measurement entity calculates a local clock ratio between both end devices based on a plurality of frame delay values that differ in the time required to transmit and receive a communication frame. A part.

また、特許文献3には、測定フレーム生成部と、送信時刻獲得部と、補正部と、を備えた通信装置が開示されている。当該測定フレーム生成部は、測定対象である通信装置との遅延測定において使用する、送信タイムスタンプを含む測定フレームを生成する。当該送信時刻獲得部は、測定フレームが測定対象である通信装置に送信される時刻を記録する。当該補正部は、当該送信時刻獲得部が記録した時刻と当該送信タイムスタンプに記録されている時刻との差分を補正する。   Patent Document 3 discloses a communication device including a measurement frame generation unit, a transmission time acquisition unit, and a correction unit. The measurement frame generation unit generates a measurement frame including a transmission time stamp to be used in delay measurement with a communication device that is a measurement target. The said transmission time acquisition part records the time when a measurement frame is transmitted to the communication apparatus which is a measuring object. The correction unit corrects a difference between the time recorded by the transmission time acquisition unit and the time recorded in the transmission time stamp.

特開2014-106188号公報JP 2014-106188 JP 特開2008-182549号公報JP 2008-182549 A 特開2010-147806号公報JP 2010-147806 JP

複数の電子機器が各々保有する時刻情報を同期する技術に関する標準規格の1つとして、IEEE (Institute of Electrical and Electronic Engineers) 802.1ASがある。IEEE 802.1ASに準拠した一般的な時刻同期処理が使用する、ステップごとの遅延時間の構成を図6に例示する。   IEEE (Institute of Electrical and Electronic Engineers) 802.1AS is one of the standards related to the technology for synchronizing time information held by each of a plurality of electronic devices. FIG. 6 illustrates an example of a delay time configuration for each step used by a general time synchronization process compliant with IEEE 802.1AS.

図6に例示するシステムでは、スレーブ装置50及びマスタ装置60は、各々時刻情報を保有し、スレーブ装置50は、マスタ装置60と時刻情報を同期する。マスタ装置60は、自装置が保有する時刻情報を含むフレーム(以降本願では「ASフレーム」と称する)を、スレーブ装置50へ送信する。スレーブ装置におけるMAC(Media Access Control)処理部51は、受信したASフレームについて、MAC処理を行う。ここでMAC処理とは、OSI(Open System Interconnection)参照モデルによって定義されたデータリンク層における通信プロトコルを実行する処理のことである。MAC処理部51は、MAC処理として、フレームデータの組み立て、及び、フレームが正常なデータであるか否かを確認する処理等を行う。MAC処理部51は、受信したASフレームが正常である場合、当該ASフレームを時刻更新処理部52へ入力する。   In the system illustrated in FIG. 6, the slave device 50 and the master device 60 each have time information, and the slave device 50 synchronizes the time information with the master device 60. The master device 60 transmits to the slave device 50 a frame (hereinafter referred to as “AS frame”) including the time information held by the own device. A MAC (Media Access Control) processing unit 51 in the slave device performs MAC processing on the received AS frame. Here, the MAC process is a process for executing a communication protocol in a data link layer defined by an OSI (Open System Interconnection) reference model. The MAC processing unit 51 performs processing such as assembling frame data and confirming whether or not the frame is normal data as the MAC processing. When the received AS frame is normal, the MAC processing unit 51 inputs the AS frame to the time update processing unit 52.

時刻更新処理部52は、MAC処理部51からASフレームを入力されたときに、スレーブ装置50が保有する時刻情報を、マスタ装置60が保有する時刻情報と同期する処理を行う。時刻更新処理部52は、ASフレームに含まれるマスタ装置60が保有する時刻情報が示す値に、図6に示す、信号伝搬遅延時間と、MAC処理遅延時間と、時刻更新処理遅延時間とを加えた値を算出する。そして、時刻更新処理部52は、スレーブ装置50が保有する時刻情報を、算出した値に更新する。   When the AS frame is input from the MAC processing unit 51, the time update processing unit 52 performs processing for synchronizing the time information held by the slave device 50 with the time information held by the master device 60. The time update processing unit 52 adds the signal propagation delay time, the MAC processing delay time, and the time update processing delay time shown in FIG. 6 to the value indicated by the time information held by the master device 60 included in the AS frame. Calculate the value. Then, the time update processing unit 52 updates the time information held by the slave device 50 to the calculated value.

ここで、信号伝搬遅延時間は、マスタ装置60から送信されたフレームがスレーブ装置50に届くまでに要する時間であり、マスタ装置60とスレーブ装置50とを通信可能に接続する通信ケーブルの線長等によって定まる固定値である。時刻更新処理遅延時間は、時刻更新処理部52がASフレームを入力されたのち時刻同期処理を完了するまでに要する時間であり、信号伝搬遅延時間と同様に、一般的に値がほとんど変動しない固定値である。   Here, the signal propagation delay time is a time required for a frame transmitted from the master device 60 to reach the slave device 50, such as a line length of a communication cable that connects the master device 60 and the slave device 50 so that communication is possible. It is a fixed value determined by. The time update processing delay time is a time required for the time update processing unit 52 to complete the time synchronization processing after the AS frame is input, and, like the signal propagation delay time, generally has a fixed value that hardly fluctuates. Value.

これらに対して、MAC処理遅延時間は、MAC処理部51がASフレームを受信したのち当該ASフレームに対するMAC処理を完了するまでに要する時間であり、一般的に、値がシステムの状態によって変動する変動値である。すなわち、MAC処理遅延時間は、フレームに関するトラフィック量、あるいは、MAC方式(ストアアンドフォワード、カットスルー、フラグメントフリー)等によって変動する。   On the other hand, the MAC processing delay time is a time required for the MAC processing unit 51 to complete the MAC processing for the AS frame after receiving the AS frame, and the value generally varies depending on the state of the system. It is a fluctuating value. That is, the MAC processing delay time varies depending on the traffic amount related to the frame, the MAC method (store and forward, cut-through, fragment free), or the like.

図6に示す一般的な時刻同期処理を行うシステムは、通常、このMAC処理遅延時間を、所定の固定値に設定している。しかしながら、システムの状態によっては、実際のMAC処理遅延時間が、当該固定値から大きくずれることがある。この場合、スレーブ装置50がマスタ装置60と時刻情報を同期する精度が大きく低下することになる。特許文献1乃至3に記載された技術では、この問題を解決することは困難である。   In the system that performs the general time synchronization processing shown in FIG. 6, this MAC processing delay time is normally set to a predetermined fixed value. However, depending on the state of the system, the actual MAC processing delay time may deviate greatly from the fixed value. In this case, the accuracy with which the slave device 50 synchronizes the time information with the master device 60 is greatly reduced. With the techniques described in Patent Documents 1 to 3, it is difficult to solve this problem.

本願発明の主たる目的は、この問題を解決した、時刻同期制御装置等を提供することである。   The main object of the present invention is to provide a time synchronization control device or the like that solves this problem.

本願発明の一態様に係る時刻同期制御装置は、外部装置から受信した第一の時刻情報を含む入力信号を受信したときに、時刻出力手段から出力された現在時刻情報を、第二の時刻情報として記憶する記憶手段と、前記入力信号に対して所定の信号処理を行う信号処理手段が前記入力信号に対する前記信号処理を終了したときに前記時刻出力手段から出力された現在時刻情報である第三の時刻情報と、前記第一の時刻情報と、前記記憶手段に記憶された前記第二の時刻情報と、に基づいて、前記時刻出力手段が出力する現在時刻情報を更新する更新手段と、を備える。   When the time synchronization control device according to one aspect of the present invention receives an input signal including the first time information received from the external device, the time synchronization control device uses the current time information output from the time output means as the second time information. Storage means for storing the current time information output from the time output means when the signal processing means for performing predetermined signal processing on the input signal finishes the signal processing on the input signal. Update means for updating current time information output by the time output means based on the time information of the first time information and the second time information stored in the storage means. Prepare.

上記目的を達成する他の見地において、本願発明の一態様に係る時刻同期制御方法は、情報処理装置によって、外部装置から受信した第一の時刻情報を含む入力信号を受信したときに、時刻出力手段から出力された現在時刻情報を、第二の時刻情報として記憶手段に記憶し、前記入力信号に対して所定の信号処理を行う信号処理手段が前記入力信号に対する前記信号処理を終了したときに前記時刻出力手段から出力された現在時刻情報である第三の時刻情報と、前記第一の時刻情報と、前記記憶手段に記憶された前記第二の時刻情報と、に基づいて、前記時刻出力手段が出力する現在時刻情報を更新する。   In another aspect of achieving the above object, a time synchronization control method according to an aspect of the present invention provides a time output when an information processing device receives an input signal including first time information received from an external device. The current time information output from the means is stored in the storage means as second time information, and the signal processing means for performing predetermined signal processing on the input signal finishes the signal processing on the input signal. Based on the third time information that is the current time information output from the time output means, the first time information, and the second time information stored in the storage means, the time output The current time information output by the means is updated.

また、上記目的を達成する更なる見地において、本願発明の一態様に係る時刻同期制御プログラムは、外部装置から受信した第一の時刻情報を含む入力信号を受信したときに、時刻出力手段から出力された現在時刻情報を、第二の時刻情報として記憶手段に記憶する記憶処理と、前記入力信号に対して所定の信号処理を行う信号処理手段が前記入力信号に対する前記信号処理を終了したときに前記時刻出力手段から出力された現在時刻情報である第三の時刻情報と、前記第一の時刻情報と、前記記憶手段に記憶された前記第二の時刻情報と、に基づいて、前記時刻出力手段が出力する現在時刻情報を更新する更新処理と、をコンピュータに実現させる。   Further, in a further aspect of achieving the above object, the time synchronization control program according to one aspect of the present invention outputs from the time output means when receiving the input signal including the first time information received from the external device. Storage processing for storing the current time information as second time information in the storage means, and when signal processing means for performing predetermined signal processing on the input signal finishes the signal processing on the input signal. Based on the third time information that is the current time information output from the time output means, the first time information, and the second time information stored in the storage means, the time output An update process for updating the current time information output by the means is implemented in the computer.

更に、本発明は、係る時刻同期制御プログラム(コンピュータプログラム)が格納された、コンピュータ読み取り可能な、不揮発性の記録媒体によっても実現可能である。   Furthermore, the present invention can be realized by a computer-readable non-volatile recording medium in which such a time synchronization control program (computer program) is stored.

本願発明は、特定の装置が他の装置と時刻情報を同期する際に、その特定の装置が行う処理に要する時間がその特定の装置が含まれるシステムの状態によって変動する場合であっても、高い精度で時刻同期処理を行うことを可能とする。   In the present invention, when a specific device synchronizes time information with another device, even if the time required for the processing performed by the specific device varies depending on the state of the system including the specific device, It is possible to perform time synchronization processing with high accuracy.

本願発明の第1の実施形態に係る時刻同期制御システム1の構成を示すブロック図である。It is a block diagram which shows the structure of the time synchronous control system 1 which concerns on 1st Embodiment of this invention. 本願発明の第1の実施形態に係る記憶部11の構成を示すブロック図である。It is a block diagram which shows the structure of the memory | storage part 11 which concerns on 1st Embodiment of this invention. 本願発明の第1の実施形態に係る時刻同期制御システム1の動作を示すフローチャート(1/2)である。It is a flowchart (1/2) which shows operation | movement of the time synchronous control system 1 which concerns on 1st Embodiment of this invention. 本願発明の第1の実施形態に係る時刻同期制御システム1の動作を示すフローチャート(2/2)である。It is a flowchart (2/2) which shows operation | movement of the time synchronous control system 1 which concerns on 1st Embodiment of this invention. 本願発明の第2の実施形態に係る時刻同期制御装置30の構成を示すブロック図である。It is a block diagram which shows the structure of the time synchronous control apparatus 30 which concerns on 2nd Embodiment of this invention. 本願発明の各実施形態に係る時刻同期制御装置が備える機能を実現する時刻同期制御プログラムを実行可能な情報処理装置の構成を示すブロック図である。It is a block diagram which shows the structure of the information processing apparatus which can execute the time synchronous control program which implement | achieves the function with which the time synchronous control apparatus which concerns on each embodiment of this invention is provided. 一般的な時刻同期処理におけるステップごとの遅延時間の構成を例示する図である。It is a figure which illustrates the structure of the delay time for every step in a general time synchronous process.

以下、本願発明の実施の形態について図面を参照して詳細に説明する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

<第1の実施形態>
図1は、第1の実施形態に係る時刻同期制御システム1の構成を概念的に示すブロック図である。本実施形態に係る時刻同期制御システム1は、時刻同期制御装置10、及び、外部装置20を備えている。外部装置20は、時刻同期処理におけるマスタ装置として、自装置が有する時刻情報(マスタクロック情報)を、スレーブ装置である時刻同期制御装置10に提供する。時刻同期制御装置10は、外部装置20から提供されたマスタクロック情報に基づき、外部装置20と時刻情報を同期する。
<First Embodiment>
FIG. 1 is a block diagram conceptually showing the structure of the time synchronization control system 1 according to the first embodiment. The time synchronization control system 1 according to the present embodiment includes a time synchronization control device 10 and an external device 20. The external device 20 provides time information (master clock information) held by itself as a master device in time synchronization processing to the time synchronization control device 10 that is a slave device. The time synchronization control device 10 synchronizes the time information with the external device 20 based on the master clock information provided from the external device 20.

外部装置20は、様々な形式のフレーム(信号)を、時刻同期制御装置10に送信する。時刻同期制御装置10及び外部装置20が時刻同期処理を行う場合、外部装置20は、マスタクロック情報を含むフレームであるASフレームを、時刻同期制御装置10に対して送信する。   The external device 20 transmits various types of frames (signals) to the time synchronization control device 10. When the time synchronization control device 10 and the external device 20 perform time synchronization processing, the external device 20 transmits an AS frame, which is a frame including master clock information, to the time synchronization control device 10.

時刻同期制御装置10は、記憶部11、更新部12、MAC処理部13、及び、時刻出力部14を備えている。更新部12、MAC処理部13、及び、時刻出力部14は、電子回路の場合もあれば、コンピュータプログラムとそのコンピュータプログラムに従って動作するプロセッサによって実現される場合もある。記憶部11は、電子メモリあるいは磁気ディスク等の不揮発性の記憶デバイスである。記憶部11は、電子回路、あるいは、コンピュータプログラムとそのコンピュータプログラムに従って動作するプロセッサによって実現される記憶制御機能を備えている。   The time synchronization control apparatus 10 includes a storage unit 11, an update unit 12, a MAC processing unit 13, and a time output unit 14. The update unit 12, the MAC processing unit 13, and the time output unit 14 may be electronic circuits or may be realized by a computer program and a processor that operates according to the computer program. The storage unit 11 is a non-volatile storage device such as an electronic memory or a magnetic disk. The storage unit 11 has a storage control function realized by an electronic circuit or a computer program and a processor that operates according to the computer program.

時刻出力部14は時計(タイマ)であり、現在時刻を出力する。   The time output unit 14 is a clock (timer) and outputs the current time.

記憶部11は、時刻同期制御装置10が外部装置20からフレームを受信したタイミングに、時刻出力部14から出力された現在時刻を表す受信時タイムスタンプを記憶する。記憶部11の構成を図2に例示する。   The storage unit 11 stores a reception time stamp representing the current time output from the time output unit 14 at the timing when the time synchronization control device 10 receives a frame from the external device 20. The configuration of the storage unit 11 is illustrated in FIG.

図2に例示する通り、記憶部11は、n個(nは1以上の任意の整数)のエントリ110−1乃至110−n、ライトポインタ111、及び、リードポインタ112を備えたリングバッファである。エントリ110−1乃至110−nは、受信時タイムスタンプを記憶可能なエントリである。ライトポインタ111は、受信時タイムスタンプの格納先であるエントリを示し、1乃至nのいずれかの値を格納している。リードポインタ112は、受信時タイムスタンプを読み出すエントリを示し、1乃至nのいずれかの値を格納している。   As illustrated in FIG. 2, the storage unit 11 is a ring buffer including n (n is an arbitrary integer greater than or equal to 1) entries 110-1 to 110-n, a write pointer 111, and a read pointer 112. . The entries 110-1 to 110-n are entries that can store a reception time stamp. The write pointer 111 indicates an entry that is a storage location of a reception time stamp, and stores any value from 1 to n. The read pointer 112 indicates an entry from which a reception time stamp is read, and stores one of values 1 to n.

記憶部11は、時刻同期制御装置10が外部装置20からフレームを受信したタイミングに、ライトポインタ111が示すエントリ110−i(iは1乃至nのいずれかの整数)に受信時タイムスタンプを格納する。記憶部11は、エントリ110−iに受信時タイムスタンプを格納したのち、ライトポインタ111を1加算する。すなわち、この場合、ライトポインタ111の値は「i+1」となる。また、「i=n」である場合、ライトポインタ111の値は、1加算されることによって「1」に戻る。   The storage unit 11 stores a reception time stamp in the entry 110-i (i is an integer from 1 to n) indicated by the write pointer 111 at the timing when the time synchronization control device 10 receives a frame from the external device 20. To do. After storing the reception time stamp in the entry 110-i, the storage unit 11 adds 1 to the write pointer 111. That is, in this case, the value of the write pointer 111 is “i + 1”. When “i = n”, the value of the write pointer 111 is returned to “1” by adding one.

記憶部11は、エントリ110−iに受信時タイムスタンプを格納したのち、MAC処理部13から、外部装置20から受信したフレームが正常なフレームでないことを通知された場合、「i+1」に更新されたライトポインタ111の値を「i」に戻す。記憶部11は、MAC処理部13から、MAC処理部13がMAC処理中であるフレームが存在しない待機状態であることを通知された場合、ライトポインタ111の値、及び、リードポインタ112の値を、同じ値(例えば「1」)に設定(リセット)する。   After storing the reception time stamp in the entry 110-i, the storage unit 11 is updated to “i + 1” when notified from the MAC processing unit 13 that the frame received from the external device 20 is not a normal frame. The value of the write pointer 111 is returned to “i”. When the storage unit 11 is notified from the MAC processing unit 13 that the MAC processing unit 13 is in a standby state in which there is no frame being MAC processed, the storage unit 11 sets the value of the write pointer 111 and the value of the read pointer 112. , Set (reset) to the same value (for example, “1”).

記憶部11は、エントリ110−iに受信時タイムスタンプを格納したのち、更新部12から、外部装置20から受信したフレームがASフレームでないことを通知された場合、リードポインタ112の値を「1」加算する。記憶部11は、エントリ110−iに受信時タイムスタンプを格納したのち、更新部12によって、リードポンタ112が示すエントリから受信時タイムスタンプが読み出された場合、リードポインタ112の値を「1」加算する。   After storing the reception time stamp in the entry 110-i, the storage unit 11 sets the value of the read pointer 112 to “1” when notified from the update unit 12 that the frame received from the external device 20 is not an AS frame. "to add. After storing the reception time stamp in the entry 110-i, the storage unit 11 sets the value of the read pointer 112 to “1” when the update unit 12 reads the reception time stamp from the entry indicated by the read pointer 112. "to add.

MAC処理部13は、外部装置20から受信したフレームについて、MAC処理を行う。MAC処理部13は、フレームをMAC処理中に、後続するフレームを受け付けて、その後続フレームについてMAC処理を開始することが可能である。MAC処理部51は、MAC処理として、フレームを構成するデータの組み立て処理、及び、フレームが正常なフレームであるか否かを確認する処理等を行う。MAC処理部51は、フレームを構成するデータについて、欠損あるいは超過が存在するかどうか、及び、CRC(Cyclic Redundancy Check)エラー等が存在するかどうかを確認する。   The MAC processing unit 13 performs MAC processing on the frame received from the external device 20. The MAC processing unit 13 can accept a subsequent frame during the MAC processing of the frame, and can start the MAC processing for the subsequent frame. The MAC processing unit 51 performs, as MAC processing, processing for assembling data constituting a frame, processing for confirming whether or not the frame is a normal frame, and the like. The MAC processing unit 51 confirms whether there is any missing or excess data constituting the frame, and whether there is a CRC (Cyclic Redundancy Check) error or the like.

MAC処理部13は、受信したフレームが正常である場合、MAC処理した当該フレームを更新部12へ入力する。MAC処理部13は、受信したフレームが異常である場合、当該フレームを廃棄するとともに、当該フレームが正常なフレームでないことを、記憶部11へ通知する。MAC処理部13は、受信した全てのフレームについて処理が完了し、MAC処理中であるフレームが存在しない待機状態になったときに、待機状態であることを記憶部11へ通知する。   When the received frame is normal, the MAC processing unit 13 inputs the MAC-processed frame to the updating unit 12. When the received frame is abnormal, the MAC processing unit 13 discards the frame and notifies the storage unit 11 that the frame is not a normal frame. The MAC processing unit 13 notifies the storage unit 11 that it is in a standby state when processing for all received frames is completed and a standby state in which there is no frame being subjected to MAC processing exists.

更新部12は、フレーム判定部120、及び、時刻同期処理部121を備えている。フレーム判定部120は、フレームの種別毎にフレームの構成内容を表したフレーム構成情報を含むフレーム判定基準(不図示)を記憶している。フレーム判定部120は、このフレーム判定基準に基づき、MAC処理部13から入力されたフレームがASフレームであるか否かを判定する。   The update unit 12 includes a frame determination unit 120 and a time synchronization processing unit 121. The frame determination unit 120 stores a frame determination reference (not shown) including frame configuration information representing the configuration content of the frame for each frame type. The frame determination unit 120 determines whether the frame input from the MAC processing unit 13 is an AS frame based on the frame determination criterion.

フレーム判定部120は、MAC処理部13から入力されたフレームがASフレームでない場合、当該フレームを、時刻同期制御装置10の外部にあるフレームデータ処理部へ入力する。フレーム判定部120は、当該フレームがASフレームでないことを、記憶部11へ通知する。   When the frame input from the MAC processing unit 13 is not an AS frame, the frame determination unit 120 inputs the frame to a frame data processing unit outside the time synchronization control apparatus 10. The frame determination unit 120 notifies the storage unit 11 that the frame is not an AS frame.

フレーム判定部120は、MAC処理部13から入力されたフレームがASフレームである場合、当該ASフレームからマスタクロック情報を抽出し、抽出したマスタクロック情報を、時刻同期処理部121へ入力する。   When the frame input from the MAC processing unit 13 is an AS frame, the frame determination unit 120 extracts master clock information from the AS frame, and inputs the extracted master clock information to the time synchronization processing unit 121.

時刻同期処理部121は、MAC処理部13からフレームを入力されたタイミングに、時刻出力部14から出力された現在時刻を表すMAC処理完了時タイムスタンプを取得する。時刻同期処理部121は、フレーム判定部120からマスタクロック情報を入力された場合、記憶部11におけるリードポインタ112が示すエントリから、受信時タイムスタンプを読み出す。   The time synchronization processing unit 121 acquires a MAC processing completion time stamp indicating the current time output from the time output unit 14 at the timing when the frame is input from the MAC processing unit 13. When the master clock information is input from the frame determination unit 120, the time synchronization processing unit 121 reads the reception time stamp from the entry indicated by the read pointer 112 in the storage unit 11.

時刻同期処理部121は、入手したMAC処理完了時タイムスタンプの値から、入手した受信時タイムスタンプの値を減算することによって、MAC処理遅延時間を算出する。このMAC処理遅延時間は、受信したASフレームについて、MAC処理部13がMAC処理を行うのに要した時間である。   The time synchronization processing unit 121 calculates the MAC processing delay time by subtracting the obtained time stamp value at the time of reception from the obtained time stamp value at the time of completion of the MAC processing. This MAC processing delay time is the time required for the MAC processing unit 13 to perform the MAC processing on the received AS frame.

時刻同期処理部121は、算出したMAC処理遅延時間に、フレーム判定部120から入力されたマスタクロック情報が示す値と、信号伝搬遅延時間と、時刻更新処理遅延時間とを加算することによって、時刻同期制御装置10が、現在時刻として自装置に設定すべき値(時刻)を算出する。ここで、信号伝搬時間は、外部装置20から出力されたフレームが時刻同期制御装置10に届くのに要する時間であり、システム管理者等によって、固定値として時刻同期処理部121に事前に与えられている。時刻更新処理遅延時間は、更新部12がMAC処理部13からASフレームを入力されたのち時刻同期処理を完了するまでに要する時間であり、信号伝搬遅延時間と同様に、システム管理者等によって、固定値として時刻同期処理部121に事前に与えられている。   The time synchronization processing unit 121 adds the value indicated by the master clock information input from the frame determination unit 120, the signal propagation delay time, and the time update processing delay time to the calculated MAC processing delay time. The synchronous control device 10 calculates a value (time) to be set in the own device as the current time. Here, the signal propagation time is the time required for the frame output from the external device 20 to reach the time synchronization control device 10, and is given in advance to the time synchronization processing unit 121 as a fixed value by a system administrator or the like. ing. The time update processing delay time is the time required for the update unit 12 to complete the time synchronization processing after the AS frame is input from the MAC processing unit 13, as with the signal propagation delay time. A fixed value is given to the time synchronization processing unit 121 in advance.

時刻同期処理部121は、時刻出力部14が出力する現在時刻を、上述した処理によって算出した現在時刻に更新する。   The time synchronization processing unit 121 updates the current time output by the time output unit 14 to the current time calculated by the above-described processing.

次に図3A及び3Bのフローチャートを参照して、本実施形態に係る時刻同期制御システム1の動作(処理)について詳細に説明する。   Next, the operation (processing) of the time synchronization control system 1 according to the present embodiment will be described in detail with reference to the flowcharts of FIGS. 3A and 3B.

時刻同期制御装置10は、外部装置20からフレームを受信する(ステップS101)。記憶部11は、当該フレームを受信したタイミングに時刻出力部14が出力した現在時刻を、受信時タイムスタンプとして、ライトポインタ111が示すエントリ110−iに格納し、ライトポインタ111を「1」加算する(ステップS102)。MAC処理部13は、受信したフレームについてMAC処理を実行し、正常フレームであるか否かを判定する(ステップS103)。   The time synchronization control device 10 receives a frame from the external device 20 (step S101). The storage unit 11 stores the current time output by the time output unit 14 at the time when the frame is received, in the entry 110-i indicated by the write pointer 111 as a reception time stamp, and adds “1” to the write pointer 111. (Step S102). The MAC processing unit 13 performs MAC processing on the received frame and determines whether or not it is a normal frame (step S103).

受信したフレームが正常フレームでない場合(ステップS104でNo)、MAC処理部13は、当該フレームを廃棄し、当該フレームを廃棄したことを記憶部11へ通知する(ステップS105)。記憶部11は、ライトポインタ111を「1」減算し(ステップS106)、全体の処理は終了する。   If the received frame is not a normal frame (No in step S104), the MAC processing unit 13 discards the frame and notifies the storage unit 11 that the frame has been discarded (step S105). The storage unit 11 subtracts “1” from the write pointer 111 (step S106), and the entire process ends.

受信したフレームが正常フレームである場合(ステップS104でYes)、MAC処理部13は、MAC処理を行った当該フレームを、更新部12へ入力する(ステップS107)。時刻同期処理部121は、当該フレームを入力されたタイミングに時刻出力部14が出力した現在時刻を、MAC処理完了時タイムスタンプとして入手する(ステップS108)。   When the received frame is a normal frame (Yes in step S104), the MAC processing unit 13 inputs the frame subjected to the MAC processing to the updating unit 12 (step S107). The time synchronization processing unit 121 obtains the current time output by the time output unit 14 at the timing when the frame is input as a time stamp when the MAC processing is completed (step S108).

フレーム判定部120は、当該フレームがASフレームであるか否かを判定する(ステップS109)。当該フレームがASフレームでない場合(ステップS110でNo)、フレーム判定部120は、当該フレームを、外部にあるフレームデータ処理部へ入力する(ステップS111)。フレーム判定部120は、当該フレームがASフレームでないことを、記憶部11へ通知する(ステップS112)。記憶部11は、リードポインタ112を「1」加算し(ステップS113)、全体の処理は終了する。   The frame determination unit 120 determines whether or not the frame is an AS frame (step S109). If the frame is not an AS frame (No in step S110), the frame determination unit 120 inputs the frame to an external frame data processing unit (step S111). The frame determination unit 120 notifies the storage unit 11 that the frame is not an AS frame (step S112). The storage unit 11 adds “1” to the read pointer 112 (step S113), and the entire process ends.

当該フレームがASフレームである場合(ステップS110でYes)、フレーム判定部120は、当該ASフレームからマスタクロック情報を抽出して、そのマスタクロック情報を時刻同期処理部121へ入力する(ステップS114)。時刻同期処理部121は、エントリ110−iから受信時タイムスタンプを読み出す(ステップS115)。記憶部11は、リードポインタを「1」加算する(ステップS116)。   When the frame is an AS frame (Yes in step S110), the frame determination unit 120 extracts master clock information from the AS frame and inputs the master clock information to the time synchronization processing unit 121 (step S114). . The time synchronization processing unit 121 reads a reception time stamp from the entry 110-i (step S115). The storage unit 11 adds “1” to the read pointer (step S116).

時刻同期処理部121は、マスタクロック情報、受信時タイムスタンプ、及び、MAC処理完了時タイムスタンプに基づき、現在時刻を算出する(ステップS117)。時刻同期処理部121は、時刻出力部14が出力する現在時刻を、算出した現在時刻に更新し(ステップS118)、全体の処理は終了する。   The time synchronization processing unit 121 calculates the current time based on the master clock information, the reception time stamp, and the MAC processing completion time stamp (step S117). The time synchronization processing unit 121 updates the current time output by the time output unit 14 to the calculated current time (step S118), and the entire process ends.

本実施形態に係る時刻同期制御システム1は、特定の装置が他の装置と時刻情報を同期する際に、その特定の装置が行う処理に要する時間がその特定の装置が含まれるシステムの状態によって変動する場合であっても、高い精度で時刻同期処理を行うことができる。その理由は、記憶部11が、外部装置20からマスタクロック情報を受信したときの時刻を受信時タイムスタンプとして記憶し、更新部12が、MAC処理部13による信号処理が完了したときの時刻であるMAC処理完了時タイムスタンプと、記憶部11に記憶された受信時タイムスタンプと、マスタクロック情報が示す値と、に基づいて、時刻出力部14が出力する現在時刻を更新するからである。   In the time synchronization control system 1 according to the present embodiment, when a specific device synchronizes time information with another device, the time required for processing performed by the specific device depends on the state of the system including the specific device. Even if it fluctuates, time synchronization processing can be performed with high accuracy. The reason is that the storage unit 11 stores the time when the master clock information is received from the external device 20 as a reception time stamp, and the update unit 12 is the time when the signal processing by the MAC processing unit 13 is completed. This is because the current time output by the time output unit 14 is updated based on a time stamp when a certain MAC process is completed, a reception time stamp stored in the storage unit 11, and a value indicated by the master clock information.

例えば「発明が解決しようとする課題」欄で説明した場合と同様に、スレーブ装置がマスタ装置と時刻情報を同期する場合を考える。この場合、スレーブ装置は、通常、自装置が使用する時刻情報を、マスタ装置から出力されたマスタクロック情報が示す値に、所定の時間を加算した値に更新する。この所定の時間は、マスタ装置からスレーブ装置にマスタクロック情報が届くまでに要する信号伝搬遅延時間と、スレーブ装置がマスタクロック情報を受信してから時刻同期処理を完了するまでに要する処理遅延時間と、を含んでいる。当該処理遅延時間は、例えば図6に示す例の場合、MAC処理遅延時間と、時刻更新処理遅延時間と、を含んでいる。   For example, as in the case described in the column “Problems to be Solved by the Invention”, consider a case where the slave device synchronizes time information with the master device. In this case, the slave device normally updates the time information used by itself to a value obtained by adding a predetermined time to the value indicated by the master clock information output from the master device. This predetermined time includes a signal propagation delay time required until master clock information arrives from the master device to the slave device, and a processing delay time required until the slave device completes the time synchronization processing after receiving the master clock information. , Including. For example, in the case of the example shown in FIG. 6, the processing delay time includes a MAC processing delay time and a time update processing delay time.

一般的な時刻同期処理を行うシステムは、通常、時刻同期処理を行う際にマスタクロック情報が示す値に加算する所定の時間を、所定の固定値に設定している。図6に示す例において、信号伝搬遅延時間、及び、時刻更新処理遅延時間は、システムの状態によって変動することがほとんどない固定値である。これに対してMAC処理遅延時間は、システムの状態によって変動する変動値である。すなわち、マスタクロック情報が示す値に加算される所定の時間は、システムの状態によって変動する変動値であるので、システムの状態によっては、時刻情報を同期する精度が大きく低下する虞がある。   A system that performs general time synchronization processing normally sets a predetermined time to be added to a value indicated by master clock information when performing time synchronization processing to a predetermined fixed value. In the example shown in FIG. 6, the signal propagation delay time and the time update processing delay time are fixed values that hardly vary depending on the system state. On the other hand, the MAC processing delay time is a fluctuation value that varies depending on the state of the system. That is, the predetermined time added to the value indicated by the master clock information is a fluctuating value that varies depending on the state of the system. Therefore, depending on the state of the system, there is a possibility that the accuracy of synchronizing time information may be greatly reduced.

これに対して本実施形態に係る時刻同期制御システム1によれば、記憶部11は、外部装置20からマスタクロック情報を受信したときの時刻を、受信時タイムスタンプとして記憶する。更新部12は、MAC処理部13による信号処理が完了したときの時刻を表すMAC処理完了時タイムスタンプを入手したのち、MAC処理完了時タイムスタンプの値から受信時タイムスタンプの値を減算することによって、変動値であるMAC処理遅延時間を算出する。更新部12は、算出したMAC処理遅延時間に、マスタクロック情報が示す値と、固定値である信号伝搬遅延時間及び時刻更新処理遅延時間と、を加算することによって、現在時刻を算出する。更新部12は、時刻出力部14が出力する時刻情報を、算出した現在時刻に更新する。これにより、本実施形態に係る時刻同期制御システム1は、時刻同期処理に要する時間がシステムの状態によって変動する場合であっても、高い精度で時刻同期処理を行うことができる。   On the other hand, according to the time synchronization control system 1 according to the present embodiment, the storage unit 11 stores the time when the master clock information is received from the external device 20 as a reception time stamp. The update unit 12 obtains a MAC process completion time stamp indicating the time when the signal processing by the MAC processing unit 13 is completed, and then subtracts the reception time stamp value from the MAC process completion time stamp value. To calculate a MAC processing delay time which is a variation value. The update unit 12 calculates the current time by adding the value indicated by the master clock information, the signal propagation delay time and the time update processing delay time, which are fixed values, to the calculated MAC processing delay time. The update unit 12 updates the time information output from the time output unit 14 to the calculated current time. Thereby, the time synchronization control system 1 according to the present embodiment can perform the time synchronization processing with high accuracy even when the time required for the time synchronization processing varies depending on the state of the system.

また、本実施形態に係る時刻同期制御システム1では、記憶部11は、複数のエントリ110−1乃至110−nを備えたリングバッファである。時刻同期制御装置10は、外部装置20から短期間に複数のマスタクロック情報が送信された場合、先行するマスタクロック情報に関する時刻同期処理が完了していなくても、後続するマスタクロック情報を複数のエントリを使用して記憶部11に記憶する。これにより時刻同期制御装置10は、マスタクロック情報を滞りなく受け付けることができる。そして、記憶部11は、MAC処理部13が受信した全てのマスタクロック情報に関するMAC処理を完了した待機状態になったときに、ライトポインタ111及びリードポインタ112を同じ値にリセットすることによって、エントリ110−1乃至110−nを有効活用することができる。   Further, in the time synchronization control system 1 according to the present embodiment, the storage unit 11 is a ring buffer including a plurality of entries 110-1 to 110-n. When a plurality of master clock information are transmitted from the external device 20 in a short period of time, the time synchronization control device 10 can convert the subsequent master clock information into a plurality of times even if the time synchronization processing related to the preceding master clock information is not completed. The entry is stored in the storage unit 11. Thereby, the time synchronous control apparatus 10 can receive master clock information without delay. Then, the storage unit 11 resets the write pointer 111 and the read pointer 112 to the same value when the MAC processing unit 13 has entered the standby state in which the MAC processing related to all the master clock information received is completed. 110-1 to 110-n can be used effectively.

尚、本実施形態に係る時刻同期制御システム1では、時刻同期制御装置10は、MAC処理部13によるMAC処理遅延時間を、時刻同期処理における変動値として算出しているが、時刻同期制御装置10が変動値として算出する処理遅延時間は、MAC処理遅延時間に限定されない。時刻同期制御装置10が変動値として算出する処理遅延時間は、例えば、MAC処理に対して機能が拡張された処理に要する遅延時間であってもよい。時刻同期制御装置10が変動値として算出する処理遅延時間は、あるいは、OSI参照モデルによって定義されたデータリンク層以外の階層における通信プロトコルを実行する処理に要する遅延時間であってもよい。   In the time synchronization control system 1 according to the present embodiment, the time synchronization control device 10 calculates the MAC processing delay time by the MAC processing unit 13 as a variation value in the time synchronization processing, but the time synchronization control device 10 The processing delay time calculated as a variation value is not limited to the MAC processing delay time. The processing delay time calculated as the variation value by the time synchronization control apparatus 10 may be, for example, a delay time required for processing with an extended function with respect to MAC processing. The processing delay time calculated as the variation value by the time synchronization control apparatus 10 may be a delay time required for processing for executing a communication protocol in a layer other than the data link layer defined by the OSI reference model.

また、本実施形態に係る時刻同期制御装置10が、ソフトウェアにより時刻同期処理を行う場合、受信したASフレームを内蔵メモリに格納したのち、CPU(Central Processing Unit)が実行するプログラムによって、MAC処理及び時刻更新処理等を行う。この場合、時刻同期処理に要する処理時間は、CPU及びメモリに関する他の処理との競合が発生することによって、専用ハードウェアにより時刻同期処理を行う場合よりも、大きく変動する。この場合でも、本実施形態に係る時刻同期制御システム1は、ASフレームを受信したのち、当該ソフトウェアが所定の処理を完了するまでの遅延時間を算出することができるので、高い精度で時刻同期処理を行うことができる。   In addition, when the time synchronization control apparatus 10 according to the present embodiment performs time synchronization processing by software, after storing the received AS frame in the built-in memory, the MAC processing and the program are executed by a CPU (Central Processing Unit). Perform time update processing. In this case, the processing time required for the time synchronization process varies more greatly than when the time synchronization process is performed by dedicated hardware due to the occurrence of contention with other processes related to the CPU and memory. Even in this case, the time synchronization control system 1 according to the present embodiment can calculate the delay time until the software completes the predetermined processing after receiving the AS frame, so the time synchronization processing can be performed with high accuracy. It can be performed.

<第2の実施形態>
図4は、第2の実施形態に係る時刻同期制御装置30の構成を概念的に示すブロック図である。
<Second Embodiment>
FIG. 4 is a block diagram conceptually showing the structure of the time synchronization control apparatus 30 according to the second embodiment.

本実施形態に係る時刻同期制御装置30は、記憶部31、及び、更新部32を備えている。   The time synchronization control device 30 according to the present embodiment includes a storage unit 31 and an update unit 32.

記憶部31は、外部装置40から受信した第1の時刻情報400を含む入力信号を受信したときに、時刻出力部34から出力された現在時刻情報を、第2の時刻情報310として記憶する。   The storage unit 31 stores the current time information output from the time output unit 34 as the second time information 310 when receiving an input signal including the first time information 400 received from the external device 40.

更新部32は、当該入力信号に対して所定の信号処理を行う信号処理部33が当該入力信号に対する信号処理を終了したときに時刻出力部34から出力された現在時刻情報である第3の時刻情報340を入手する。更新部32は、第3の時刻情報340と、第1の時刻情報400と、記憶部31に記憶された第2の時刻情報310と、に基づいて、時刻出力部34が出力する現在時刻情報を更新する。   The update unit 32 performs a third time that is current time information output from the time output unit 34 when the signal processing unit 33 that performs predetermined signal processing on the input signal ends the signal processing on the input signal. Obtain information 340. Based on the third time information 340, the first time information 400, and the second time information 310 stored in the storage unit 31, the update unit 32 outputs the current time information output by the time output unit 34. Update.

本実施形態に係る時刻同期制御装置30は、特定の装置が他の装置と時刻情報を同期する際に、その特定の装置が行う処理に要する時間がその特定の装置が含まれるシステムの状態によって変動する場合であっても、高い精度で時刻同期処理を行うことができる。その理由は、記憶部31が、外部装置40から第1の時刻情報400を受信したときの時刻を第2の時刻情報310として記憶し、更新部32が、信号処理部33による信号処理が完了したときの時刻を示す第3の時刻情報340と、記憶部31に記憶された第2の時刻情報310と、第1の時刻情報400が示す値と、に基づいて、時刻出力部34が出力する現在時刻情報を更新するからである。   The time synchronization control device 30 according to the present embodiment, when a specific device synchronizes time information with another device, the time required for the processing performed by the specific device depends on the state of the system including the specific device. Even if it fluctuates, time synchronization processing can be performed with high accuracy. The reason is that the storage unit 31 stores the time when the first time information 400 is received from the external device 40 as the second time information 310, and the update unit 32 completes the signal processing by the signal processing unit 33. The time output unit 34 outputs based on the third time information 340 indicating the time when the operation is performed, the second time information 310 stored in the storage unit 31, and the value indicated by the first time information 400. This is because the current time information is updated.

<ハードウェア構成例>
上述した各実施形態において図1、及び、図4に示した時刻同期制御装置10及び30は、専用のHW(HardWare)(電子回路)によって実現することができる。また、時刻同期制御装置10及び30は、汎用のHWにソフトウェアプログラムを実行させることによっても実現可能である。この場合のハードウェア環境の一例を、図5を参照して説明する。
<Hardware configuration example>
In each embodiment described above, the time synchronization control devices 10 and 30 shown in FIGS. 1 and 4 can be realized by a dedicated HW (HardWare) (electronic circuit). The time synchronization control devices 10 and 30 can also be realized by causing a general-purpose HW to execute a software program. An example of the hardware environment in this case will be described with reference to FIG.

図5は、本発明の各実施形態に係る時刻同期制御装置10及び30が備える機能を実現する時刻同期制御プログラムを実行可能な情報処理装置900(コンピュータ)の構成を例示的に説明する図である。即ち、図5は、図1に示した時刻同期制御装置10、及び、図4に示した時刻同期制御装置30を実現可能なコンピュータ(情報処理装置)の構成であって、上述した実施形態における各機能を実現可能なハードウェア環境を表す。   FIG. 5 is a diagram for exemplarily explaining the configuration of an information processing apparatus 900 (computer) that can execute a time synchronization control program that implements the functions of the time synchronization control apparatuses 10 and 30 according to the embodiments of the present invention. is there. 5 is a configuration of a computer (information processing apparatus) that can implement the time synchronization control apparatus 10 shown in FIG. 1 and the time synchronization control apparatus 30 shown in FIG. Represents a hardware environment that can implement each function.

図5に示した情報処理装置900は、構成要素として下記を備えている。
・CPU(Central_Processing_Unit)901、
・ROM(Read_Only_Memory)902、
・RAM(Random_Access_Memory)903、
・ハードディスク(記憶装置)904、
・外部装置との通信インタフェース905、
・CD−ROM(Compact_Disc_Read_Only_Memory)等の記録媒体907に格納されたデータを読み書き可能なリーダライタ908、
・入出力インタフェース909、
情報処理装置900は、これらの構成がバス906(通信線)を介して接続された一般的なコンピュータである。
The information processing apparatus 900 illustrated in FIG. 5 includes the following as constituent elements.
CPU (Central_Processing_Unit) 901,
ROM (Read_Only_Memory) 902,
RAM (Random_Access_Memory) 903,
-Hard disk (storage device) 904,
A communication interface 905 with an external device,
A reader / writer 908 capable of reading and writing data stored in a recording medium 907 such as a CD-ROM (Compact_Disc_Read_Only_Memory)
-I / O interface 909,
The information processing apparatus 900 is a general computer in which these configurations are connected via a bus 906 (communication line).

そして、上述した実施形態を例に説明した本発明は、図5に示した情報処理装置900に対して、次の機能を実現可能なコンピュータプログラムを供給する。その機能とは、その実施形態の説明において参照したブロック構成図(図1、及び、図4)における、時刻同期制御装置10及び30、或いはフローチャート(図3A及び3B)の機能である。本発明は、その後、そのコンピュータプログラムを、当該ハードウェアのCPU901に読み出して解釈し実行することによって達成される。また、当該装置内に供給されたコンピュータプログラムは、読み書き可能な揮発性のメモリ(RAM903)またはハードディスク904等の不揮発性の記憶デバイスに格納すれば良い。   The present invention described using the above-described embodiment as an example supplies a computer program capable of realizing the following functions to the information processing apparatus 900 illustrated in FIG. The function is the function of the time synchronization control devices 10 and 30 or the flowcharts (FIGS. 3A and 3B) in the block configuration diagrams (FIGS. 1 and 4) referred to in the description of the embodiment. The present invention is then achieved by reading the computer program into the hardware CPU 901 for interpretation and execution. The computer program supplied to the apparatus may be stored in a readable / writable volatile memory (RAM 903) or a nonvolatile storage device such as the hard disk 904.

また、前記の場合において、当該ハードウェア内へのコンピュータプログラムの供給方法は、現在では一般的な手順を採用することができる。その手順としては、例えば、CD−ROM等の各種記録媒体907を介して当該装置内にインストールする方法や、インターネット等の通信回線を介して外部よりダウンロードする方法等がある。そして、このような場合において、本発明は、係るコンピュータプログラムを構成するコード或いは、そのコードが格納された記録媒体907によって構成されると捉えることができる。   In the above case, a general procedure can be adopted as a method for supplying the computer program into the hardware. The procedure includes, for example, a method of installing in the apparatus via various recording media 907 such as a CD-ROM, a method of downloading from the outside via a communication line such as the Internet, and the like. In such a case, the present invention can be understood to be configured by a code constituting the computer program or a recording medium 907 in which the code is stored.

以上、上述した実施形態を模範的な例として本発明を説明した。しかしながら、本発明は、上述した実施形態には限定されない。即ち、本発明は、本発明のスコープ内において、当業者が理解し得る様々な態様を適用することができる。   The present invention has been described above using the above-described embodiment as an exemplary example. However, the present invention is not limited to the above-described embodiment. That is, the present invention can apply various modes that can be understood by those skilled in the art within the scope of the present invention.

1 時刻同期制御システム
10 時刻同期制御装置
11 記憶部
110−1乃至110−n エントリ
111 ライトポインタ
112 リードポインタ
12 更新部
120 フレーム判定部
121 時刻同期処理部
13 MAC処理部
14 時刻出力部
20 外部装置
30 時刻同期制御装置
31 記憶部
310 第2の時刻情報
32 更新部
33 信号処理部
34 時刻出力部
340 第3の時刻情報
40 外部装置
400 第1の時刻情報
50 スレーブ装置
51 MAC処理部
52 時刻更新処理部
60 マスタ装置
900 情報処理装置
901 CPU
902 ROM
903 RAM
904 ハードディスク
905 通信インタフェース
906 バス
907 記録媒体
908 リーダライタ
909 入出力インタフェース
DESCRIPTION OF SYMBOLS 1 Time synchronization control system 10 Time synchronization control apparatus 11 Memory | storage part 110-1 thru | or 110-n entry 111 Write pointer 112 Read pointer 12 Update part 120 Frame determination part 121 Time synchronization processing part 13 MAC processing part 14 Time output part 20 External apparatus 30 Time Synchronization Control Device 31 Storage Unit 310 Second Time Information 32 Update Unit 33 Signal Processing Unit 34 Time Output Unit 340 Third Time Information 40 External Device 400 First Time Information 50 Slave Device 51 MAC Processing Unit 52 Time Update Processing unit 60 Master device 900 Information processing device 901 CPU
902 ROM
903 RAM
904 Hard disk 905 Communication interface 906 Bus 907 Recording medium 908 Reader / writer 909 Input / output interface

Claims (10)

外部装置から受信した第一の時刻情報を含む入力信号を受信したときに、時刻出力手段から出力された現在時刻情報を、第二の時刻情報として記憶する記憶手段と、
前記入力信号に対して所定の信号処理を行う信号処理手段が前記入力信号に対する前記信号処理を終了したときに前記時刻出力手段から出力された現在時刻情報である第三の時刻情報と、前記第一の時刻情報と、前記記憶手段に記憶された前記第二の時刻情報と、に基づいて、前記時刻出力手段が出力する現在時刻情報を更新する更新手段と、
を備える時刻同期制御装置。
Storage means for storing current time information output from the time output means as second time information when an input signal including the first time information received from the external device is received;
Third time information, which is current time information output from the time output means when signal processing means for performing predetermined signal processing on the input signal ends the signal processing on the input signal, and the first Update means for updating current time information output by the time output means based on one time information and the second time information stored in the storage means;
A time synchronization control apparatus comprising:
前記更新手段は、前記入力信号が前記外部装置から送信されてから、前記入力信号を受信するまでに要する伝搬遅延時間の値と、前記第三の時刻情報が示す値と前記第二の時刻情報が示す値との差分と、に基づいて、前記時刻出力手段が出力する現在時刻情報を更新する、
請求項1に記載の時刻同期制御装置。
The updating means includes a value of a propagation delay time required for receiving the input signal after the input signal is transmitted from the external device, a value indicated by the third time information, and the second time information. Updating the current time information output by the time output means based on the difference between the value indicated by
The time synchronization control apparatus according to claim 1.
前記信号処理手段と、
前記時刻出力手段と、
をさらに備える請求項1または2に記載の時刻同期制御装置。
The signal processing means;
The time output means;
The time synchronization control apparatus according to claim 1, further comprising:
前記記憶手段は、前記第二の時刻情報を記憶可能なエントリを複数有し、複数の前記入力信号について、前記第二の時刻情報を、複数の前記エントリのいずれかに記憶し、
前記更新手段は、前記第二の時刻情報が書き込まれた順序にしたがって、前記複数のエントリから前記第二の時刻情報を読み出す、
請求項1乃至3のいずれか一項に記載の時刻同期制御装置。
The storage means includes a plurality of entries capable of storing the second time information, and stores the second time information in any of the plurality of entries for the plurality of input signals.
The update means reads the second time information from the plurality of entries according to the order in which the second time information is written.
The time synchronous control apparatus as described in any one of Claims 1 thru | or 3.
前記信号処理手段は、信号処理中である前記入力信号が存在しない待機状態にある場合に、待機状態情報を前記記憶手段に入力し、
前記記憶手段は、前記信号処理手段から前記待機状態情報を入力されたときに、前記複数のエントリのうち、書き込み先であるエントリを示すライトポインタと、読み出し先であるエントリを示すリードポインタとを、同じ値に設定する、
請求項4に記載の時刻同期制御装置。
When the signal processing means is in a standby state where the input signal being processed does not exist, standby state information is input to the storage means,
When the standby state information is input from the signal processing unit, the storage unit includes a write pointer that indicates an entry that is a write destination and a read pointer that indicates an entry that is a read destination among the plurality of entries. , Set to the same value,
The time synchronous control apparatus according to claim 4.
前記信号処理手段は、前記所定の信号処理として、前記入力信号に含まれるデータが正常であるか否かを判定する処理を行う、
請求項1乃至5のいずれか一項に記載の時刻同期制御装置。
The signal processing means performs a process of determining whether or not data included in the input signal is normal as the predetermined signal processing.
The time synchronous control apparatus as described in any one of Claims 1 thru | or 5.
前記信号処理手段は、OSI参照モデルにおけるデータリンク層における処理を行う、
請求項6に記載の時刻同期制御装置。
The signal processing means performs processing in the data link layer in the OSI reference model.
The time synchronization control apparatus according to claim 6.
請求項1乃至7のいずれか一項に記載の時刻同期制御装置と、
前記外部装置と、
を備える時刻同期制御システム。
A time synchronization control device according to any one of claims 1 to 7,
The external device;
A time synchronization control system comprising:
情報処理装置によって、
外部装置から受信した第一の時刻情報を含む入力信号を受信したときに、時刻出力手段から出力された現在時刻情報を、第二の時刻情報として記憶手段に記憶し、
前記入力信号に対して所定の信号処理を行う信号処理手段が前記入力信号に対する前記信号処理を終了したときに前記時刻出力手段から出力された現在時刻情報である第三の時刻情報と、前記第一の時刻情報と、前記記憶手段に記憶された前記第二の時刻情報と、に基づいて、前記時刻出力手段が出力する現在時刻情報を更新する、
を備える時刻同期制御方法。
Depending on the information processing device,
When the input signal including the first time information received from the external device is received, the current time information output from the time output means is stored in the storage means as the second time information,
Third time information, which is current time information output from the time output means when signal processing means for performing predetermined signal processing on the input signal ends the signal processing on the input signal, and the first Updating the current time information output by the time output means based on the one time information and the second time information stored in the storage means;
A time synchronization control method comprising:
外部装置から受信した第一の時刻情報を含む入力信号を受信したときに、時刻出力手段から出力された現在時刻情報を、第二の時刻情報として記憶手段に記憶する記憶処理と、
前記入力信号に対して所定の信号処理を行う信号処理手段が前記入力信号に対する前記信号処理を終了したときに前記時刻出力手段から出力された現在時刻情報である第三の時刻情報と、前記第一の時刻情報と、前記記憶手段に記憶された前記第二の時刻情報と、に基づいて、前記時刻出力手段が出力する現在時刻情報を更新する更新処理と、
をコンピュータに実現させる時刻同期制御プログラム。
A storage process for storing the current time information output from the time output means in the storage means as second time information when an input signal including the first time information received from the external device is received;
Third time information, which is current time information output from the time output means when signal processing means for performing predetermined signal processing on the input signal ends the signal processing on the input signal, and the first An update process for updating the current time information output by the time output means based on the one time information and the second time information stored in the storage means;
A time synchronization control program for realizing the above in a computer.
JP2015099132A 2015-05-14 2015-05-14 Time synchronization control device, time synchronization control system, time synchronization control method, and time synchronization control program Active JP6612526B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015099132A JP6612526B2 (en) 2015-05-14 2015-05-14 Time synchronization control device, time synchronization control system, time synchronization control method, and time synchronization control program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015099132A JP6612526B2 (en) 2015-05-14 2015-05-14 Time synchronization control device, time synchronization control system, time synchronization control method, and time synchronization control program

Publications (2)

Publication Number Publication Date
JP2016219870A true JP2016219870A (en) 2016-12-22
JP6612526B2 JP6612526B2 (en) 2019-11-27

Family

ID=57582045

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015099132A Active JP6612526B2 (en) 2015-05-14 2015-05-14 Time synchronization control device, time synchronization control system, time synchronization control method, and time synchronization control program

Country Status (1)

Country Link
JP (1) JP6612526B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023008037A1 (en) * 2021-07-29 2023-02-02 株式会社オートネットワーク技術研究所 On-vehicle device and time synchronization method

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20220126024A (en) 2021-03-08 2022-09-15 삼성전자주식회사 Method of synchronizing time between host device and storage device and system performing the same

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004221795A (en) * 2003-01-10 2004-08-05 Sanyo Electric Co Ltd Packet processing apparatus, packet processing method, and telephone set capable of utilizing the method
JP2007195240A (en) * 2007-03-16 2007-08-02 Sanyo Electric Co Ltd Packet processing apparatus and communication device
JP2012501108A (en) * 2008-08-22 2012-01-12 マーベル ワールド トレード リミテッド Method and apparatus for integrating precision time protocol and media access control security into network elements
WO2013099026A1 (en) * 2011-12-28 2013-07-04 富士通株式会社 Node device and time synchronization method
JP2014023090A (en) * 2012-07-23 2014-02-03 Sumitomo Electric Ind Ltd Receiver and radio communication system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004221795A (en) * 2003-01-10 2004-08-05 Sanyo Electric Co Ltd Packet processing apparatus, packet processing method, and telephone set capable of utilizing the method
JP2007195240A (en) * 2007-03-16 2007-08-02 Sanyo Electric Co Ltd Packet processing apparatus and communication device
JP2012501108A (en) * 2008-08-22 2012-01-12 マーベル ワールド トレード リミテッド Method and apparatus for integrating precision time protocol and media access control security into network elements
WO2013099026A1 (en) * 2011-12-28 2013-07-04 富士通株式会社 Node device and time synchronization method
JP2014023090A (en) * 2012-07-23 2014-02-03 Sumitomo Electric Ind Ltd Receiver and radio communication system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023008037A1 (en) * 2021-07-29 2023-02-02 株式会社オートネットワーク技術研究所 On-vehicle device and time synchronization method

Also Published As

Publication number Publication date
JP6612526B2 (en) 2019-11-27

Similar Documents

Publication Publication Date Title
US8914662B2 (en) Implementing transparent clock by correcting time information carried in data using residence time information
CN105027536B (en) The bandwidth and time delay of inertial sensor match
KR101290643B1 (en) Method and system for bearing time synchronization protocol in optical transport network
US20160080100A1 (en) Method for precision time protocol synchronization network and apparatus
KR101484871B1 (en) Master device and slave device and time synchronization method
EP2658161B1 (en) Transmission device, transmission method and computer program
WO2018099048A1 (en) Method and device for processing time stamp, and storage medium
JP6612526B2 (en) Time synchronization control device, time synchronization control system, time synchronization control method, and time synchronization control program
KR101070161B1 (en) Protection relay device, protection relay device control method, and recording medium having control program stored thereon
CN114172604A (en) Time delay compensation method, device, equipment and computer readable storage medium
JP6010802B2 (en) Time synchronization system, time synchronization method, slave node, and computer program
CN102404152B (en) Method and equipment for identifying response messages
JP7322297B2 (en) How to optimize time synchronization between network devices connected via a communication network
RU2648285C1 (en) Method and delivery compensation device
CN115882996B (en) Clock synchronization method, device and medium
JP2007101457A (en) Transmitter, receiver, time notification method, and time setting method
EP3163788B1 (en) Communication system, communication method, and communication program
US20160359609A1 (en) Communication device, communication system, estimation method, and computer program product
US20190386762A1 (en) Date processing system and method
JP2017005379A (en) Communication device, communication system, estimation method and program
CN113259039A (en) Time synchronization method and device, computer equipment and storage medium
JP6572136B2 (en) COMMUNICATION SYSTEM, COMMUNICATION DEVICE, SECOND DEVICE, COMMUNICATION METHOD, AND COMPUTER PROGRAM
JP6320654B1 (en) Management device, communication system, management method, and management program
JP2014165581A (en) Time synchronization system, time synchronization method, slave node and computer program
US10680849B2 (en) Built-in apparatus, communication method, and computer readable medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180413

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190225

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190305

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190329

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190709

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190905

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20191008

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20191031

R150 Certificate of patent or registration of utility model

Ref document number: 6612526

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150