JP2972556B2 - Time synchronization method - Google Patents

Time synchronization method

Info

Publication number
JP2972556B2
JP2972556B2 JP7190314A JP19031495A JP2972556B2 JP 2972556 B2 JP2972556 B2 JP 2972556B2 JP 7190314 A JP7190314 A JP 7190314A JP 19031495 A JP19031495 A JP 19031495A JP 2972556 B2 JP2972556 B2 JP 2972556B2
Authority
JP
Japan
Prior art keywords
time
communication
slave
information
master
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.)
Expired - Fee Related
Application number
JP7190314A
Other languages
Japanese (ja)
Other versions
JPH0946325A (en
Inventor
哲也 福田
祐二 磯部
秀樹 柴崎
博行 福田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NIPPON DENKI TEREKOMU SHISUTEMU KK
NEC Corp
Original Assignee
NIPPON DENKI TEREKOMU SHISUTEMU KK
Nippon Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NIPPON DENKI TEREKOMU SHISUTEMU KK, Nippon Electric Co Ltd filed Critical NIPPON DENKI TEREKOMU SHISUTEMU KK
Priority to JP7190314A priority Critical patent/JP2972556B2/en
Publication of JPH0946325A publication Critical patent/JPH0946325A/en
Application granted granted Critical
Publication of JP2972556B2 publication Critical patent/JP2972556B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Cable Transmission Systems, Equalization Of Radio And Reduction Of Echo (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は時刻同期方式に関
し、特にネットワークで接続された複数の装置からなる
システムにおける時刻同期方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a time synchronization system, and more particularly to a time synchronization system in a system including a plurality of devices connected via a network.

【0002】[0002]

【従来の技術】従来のネットワークにおける時刻同期方
式の第1の従来技術である特開昭63−52089号公
報の第1図を転記した図4を参照すると、第1の従来技
術である「ネットワークの時刻同期方式」は、時刻を作
成する時計機構40と、従局への時刻読み取り要求発信
から従局からの応答受信までの時間を検出する検出機構
41と、検出機構41の検出時間をもとに主局から従局
への通信回線5の伝送時間を擬似作成する擬似化機構4
2と、従局から読み取った時刻を擬似化機構42で作成
した擬似伝送時間をもとに主局の整時設定時刻に対する
従局の検出すべき実時刻を補正する補正機構43と、補
正機構43で作成された従局の擬似時刻と主局の整時設
定時刻とを比較してその時間差を検出する比較機構44
と、従局との間の情報交換のためのデータを通信回線5
に送信または通信回線5から受信する送受信機構45
と、本時刻制御のためにオペレータコンソール100お
よびソフトウェアとのインタフェースをとる制御機構4
6とを有する主局の中央処理装置4と;時刻を作成する
機能をもつ時計機構60と、主局からの整時情報により
時計機構60の時刻を整時する整時機構61と、主局と
の間の情報交換のためのデータを通信回線5に送信およ
び通信回線5から受信する送受信機構62と、本時刻制
御のために整時機構61および送受信機構62とのイン
タフェースをとる制御機構63とを有する従局の中央処
理装置6と;から構成される。
2. Description of the Related Art Referring to FIG. 4 in which FIG. 1 of FIG. 1 of Japanese Patent Application Laid-Open No. 63-52089, which is a first prior art of a time synchronization system in a conventional network, is referred to as a "network The time synchronization method ”includes a clock mechanism 40 that creates time, a detection mechanism 41 that detects the time from when a time reading request is issued to the slave station to when a response is received from the slave station, and a detection mechanism 41 that detects the time. Simulator 4 for simulating transmission time of communication line 5 from master station to slave station
2, a correction mechanism 43 that corrects the actual time to be detected by the slave station with respect to the set time of the master station based on the pseudo transmission time created by the simulation mechanism 42 based on the time read from the slave station. A comparison mechanism 44 that compares the created pseudo time of the slave station with the set time of the master station and detects the time difference.
And data for information exchange between the slave station and the slave station.
Transmitting / receiving mechanism 45 for transmitting to or receiving from communication line 5
And a control mechanism 4 for interfacing with the operator console 100 and software for real time control
6; a clock mechanism 60 having a function of creating time; a time adjustment mechanism 61 for adjusting the time of the clock mechanism 60 based on time adjustment information from the master station; Transmission / reception mechanism 62 for transmitting and receiving data for information exchange between the communication line 5 to the communication line 5 and a control mechanism 63 for interfacing with the time setting mechanism 61 and the transmission / reception mechanism 62 for the actual time control. And a slave central processing unit 6 having:

【0003】この構成により、主局が従局の時刻読み取
り時の通信回線5の伝送時間を検出し、この検出時間で
従局から読み取った時刻を補正することにより、主局の
設定時刻と従局の検出時刻の通信回線5の伝送時間によ
る遅れを無くすことにより達成している。
With this configuration, the master station detects the transmission time of the communication line 5 at the time of reading the time of the slave station, and corrects the time read from the slave station by this detection time, thereby detecting the set time of the master station and the detection of the slave station. This is achieved by eliminating the delay due to the transmission time of the communication line 5 at the time.

【0004】つまり、通信回線の伝送時間の検出は、主
局が従局に対する時刻読み取りコマンド発信から応答受
信までの時間を監視し、時間の半分を補正データとして
使用する。このとき、送信データと受信データ長とを同
じにするため、監視時間の半分が片道伝送時間と等しく
なる。このため、検出した伝送時間を従局から読み取っ
た時刻に加えることにより、主局が時刻読取りコマンド
発信時の従局の時刻を擬似化することができる。
[0004] In other words, to detect the transmission time of the communication line, the master station monitors the time from the transmission of the time reading command to the slave station until the response is received, and uses half of the time as correction data. At this time, in order to make the transmission data and the reception data length the same, half of the monitoring time is equal to the one-way transmission time. Therefore, by adding the detected transmission time to the time read from the slave station, it is possible to simulate the time of the slave station when the master station issues the time read command.

【0005】次に、従来のネットワークにおける時刻同
期方式の第2の従来技術である特開平5−314030
号公報の図1を転記した図5を参照すると、第2の従来
技術である時刻同期方式の「通信回線を経由する時刻合
せ方法」は、設定装置7−1と被設定装置7−2とが通
信回線8−1および通信回線8−2を介して接続され、
プログラムおよび各種のデータを記憶するメモリ70
と、送信電文を記憶する送信バッファ71と、受信電文
を記憶する受信バッファ72と、現在時刻を計時する内
部時計73と、自装置から対向する装置へのデータを通
信回線8−1および通信回線8−2へ送信する送信部7
4と、通信回線8−1および通信回線8−2を通して入
力される対向する装置からのデータを受信する受信部7
5と、自装置内の各種動作制御および処理に伴なう演算
を実施する中央処理部76とから構成される。
[0005] Next, Japanese Patent Application Laid-Open No. Hei 5-314030, which is a second prior art of the time synchronization system in the conventional network.
Referring to FIG. 5 in which FIG. 1 of the above publication is transcribed, a “time setting method via a communication line” of a time synchronization method according to a second related art is described with respect to a setting device 7-1 and a set device 7-2. Are connected via a communication line 8-1 and a communication line 8-2,
Memory 70 for storing programs and various data
A transmission buffer 71 for storing a transmission message, a reception buffer 72 for storing a reception message, an internal clock 73 for measuring the current time, and a communication line 8-1 and a communication line for transmitting data from the own device to the opposite device. Transmission unit 7 for transmitting to 8-2
4 and a receiving unit 7 for receiving data from an opposite device input through the communication line 8-1 and the communication line 8-2.
5 and a central processing unit 76 for performing calculations associated with various operation controls and processes in the own device.

【0006】この構成により、設定装置7−1が内部時
計の示す現在時刻を通信回線8−1を通して被設定装置
7−2へ通知し、被設定装置7−2の内部時計73と設
定装置7−1の内部時計73との時刻合せを行なう場合
において、設定装置7−1が被設定装置7−2へ通知し
た現在時刻と被設定装置7−2が通知を受信した通知受
信時刻との差を設定装置7−1に返答し、設定装置7−
1はこの返答の内容と返答を受信した返答受信時間とか
ら被設定装置7−2の内部時計73と自己の内部時計7
3との誤差を求め、その誤差を被設定装置7−2へ再通
知して設定装置7−1の内部時計73と被設定装置7−
2との内部時計73の現在時刻を一致させる。すなわ
ち、設定装置7−1と被設定装置7−2との間の通信に
係る時間を考慮した設定装置7−1と被設定装置7−2
との誤差を求め、設定装置7−1は被設定装置7−2に
対して誤差を解消する指示を行なう。
With this configuration, the setting device 7-1 notifies the current time indicated by the internal clock to the device to be set 7-2 via the communication line 8-1, and the internal clock 73 of the device to be set 7-2 and the setting device 7-2. Difference between the current time notified by the setting device 7-1 to the device to be set 7-2 and the notification reception time at which the device to be set 7-2 has received the notification, when the time is synchronized with the internal clock 73 of -1. Is returned to the setting device 7-1, and the setting device 7-
Reference numeral 1 denotes an internal clock 73 of the set device 7-2 and its own internal clock 7 based on the content of the response and the response reception time at which the response was received.
3, the error is again notified to the set device 7-2, and the internal clock 73 of the setting device 7-1 and the set device 7-
2 is matched with the current time of the internal clock 73. That is, the setting device 7-1 and the setting device 7-2 in consideration of the time required for communication between the setting device 7-1 and the setting device 7-2.
The setting device 7-1 instructs the set device 7-2 to eliminate the error.

【0007】また、設定装置7−1による通知と被設定
装置7−2とによる返答を複数回繰り返して通信回線8
−1および通信回線8−2を通して現在時刻を通知する
場合に生じる通信時間を平均化し、設定装置7−1はそ
の平均化した返答の内容と返答を受信した返答受信時間
とから被設定装置7−2の内部時計73と設定装置7−
1の内部時計73との誤差を求め、この誤差を被設定装
置7−2へ通知して設定装置7−1の内部時計73と被
設定装置7−2の内部時計73との現在時刻を一致させ
る。すなわち、通信時間が一定していない場合には、通
知と返答とを繰り返し実施して精度の高い伝送時間を算
出した後、誤差を求め、設定装置7−1は被設定装置7
−2に対してその誤差を解消する指示を行なう。
[0007] The notification by the setting device 7-1 and the reply by the set device 7-2 are repeated a plurality of times to repeat the communication line 8
-1 and the communication time generated when notifying the current time through the communication line 8-2 are averaged, and the setting device 7-1 determines the setting target device 7 based on the averaged response content and the response reception time when the response was received. -2 internal clock 73 and setting device 7-
1 and an error from the internal clock 73 is obtained, and this error is notified to the set device 7-2, and the current time of the internal clock 73 of the setting device 7-1 matches the current time of the internal clock 73 of the set device 7-2. Let it. That is, when the communication time is not constant, the notification and the reply are repeatedly performed to calculate a highly accurate transmission time, and then an error is obtained.
-2 is instructed to eliminate the error.

【0008】[0008]

【発明が解決しようとする課題】この第1の従来技術で
ある「システムの時刻同期方式」では、主局であるマス
タ−装置が従局であるスレーブ装置の時刻を読み出す時
の通信時間とマスタ−装置がスレーブ装置に新しい時刻
を通知するときの通信時間とが同じになっているが、こ
の通信時間は、通信を行った時の回線状態、マスタ−装
置の動作状態およびスレーブ装置の状態等によって変化
するため、通信のタイミングによりマスタ−装置とスレ
ーブ装置との誤差が変化するという欠点があった。
In the first prior art "system time synchronization method", the communication time and the master time when the master device as the master station reads the time of the slave device as the slave station are determined. The communication time when the device notifies the slave device of the new time is the same, but this communication time depends on the line status at the time of communication, the operation status of the master device, the status of the slave device, and the like. Therefore, there is a disadvantage that the error between the master device and the slave device changes depending on the communication timing.

【0009】また、第2の従来技術である時刻同期方式
の「通信回線を経由する時刻合せ方法」では、伝送回線
の障害等で通報が被設定装置へ到達しなかったり、被設
定装置の再立ち上げ(電源の再投入)により被設定装置
の時計がリセットされたりすると、平均化された通信時
間の平均値を大きくするため、設定装置と被設定装置と
の間の時刻同期の精度が低下するという欠点があった。
In the second prior art "time setting method via a communication line" of the time synchronization method, a report does not reach a set device due to a failure of a transmission line or the like, or a reset of the set device occurs. When the clock of the device to be set is reset due to start-up (power on again), the average value of the averaged communication time is increased, so that the accuracy of time synchronization between the setting device and the device to be set is reduced. Had the disadvantage of doing so.

【0010】[0010]

【課題を解決するための手段】本発明による時刻同期方
式は、マスター側装置とスレーブ側装置とがネットワー
ク回線で接続され、前記スレーブ側装置が、自局の現在
時刻を計時してその時刻情報をスレーブ側時刻情報とし
て出力するとともに時刻設定情報にもとづき前記自局の
現在時刻を最新設定する第1の時計手段と、前記マスタ
ー側装置の時刻情報を収集するために第1の時刻問合せ
要求信号を所定の周期で複数回出力するとともにその出
力時ごとの前記スレーブ側時刻情報を前記第1の時計手
段から第1のスレーブ側時刻情報として読み取るととも
に前記複数回の第1の時刻問合せ要求信号の各各に対応
して前記マスター側装置から返送される第1の時刻問合
せ応答信号の各各を入力されかつその入力時ごとに前記
第1の時計手段から前記スレーブ側時刻情報を第2のス
レーブ側時刻情報として読み取り前記第1のスレーブ側
時刻情報と前記第2のスレーブ側時刻情報とから前記第
1の時刻問合せ要求信号を送出してから前記第1の時刻
問合せ応答信号が返送入力されるまでの前記1サイクル
ごとの通信時間を計測して前記通信時間が所定値以内の
場合には前記通信時間を第1の通信時間情報として出力
するとともに前記複数回の通信時間を平均した平均通信
時間と最新の前記第1の通信時間情報とを比較してその
時間差が所定値以内の場合には最新の前記第1の時刻要
求信号送出時の前記第1の通信時間情報から前記平均通
信時間の半分を差し引いた時刻を前記時刻設定情報とし
て出力し前記第1の時計手段へ供給して前記スレーブ側
時刻の最新設定を行う前記第1の時刻管理手段と、前記
第1の時刻管理手段からの前記第1の時刻問合せ要求信
号を前記ネットワーク回線を通して対向する前記マスタ
ー側装置へ送出するとともに前記第1の時刻問合せ要求
信号に対応して前記ネットワーク回線を通して対向する
前記マスター側装置から返送される第2の時刻問合せ応
答信号を受信入力されて前記第1の時刻問合せ応答信号
として出力し前記第1の時刻管理手段へ供給する第1の
送受信管理手段と、前記第1の時刻管理手段から供給さ
れる前記複数回の前記第1の通信時間情報の各各を記憶
するとともに前記記憶された複数回の第1の通信時間情
報の所定回数分の通信時間を加算してその加算値の平均
値を算出し前記平均通信時間として前記第1の時刻管理
手段へ供給する時間統計処理手段とを備え、前記マスタ
ー側装置が 、自局の現在時刻を計時してその時刻情報を
マスター側時刻情報として出力する第2の時計手段と、
前記ネットワーク回線を通して対向する前記スレーブ側
装置から送出される前記第1の時刻問合せ要求信号を受
信入力されて第2の時刻問合せ要求信号として出力する
とともに第3の時刻問合せ応答信号を入力されて前述の
第2の時刻問合せ応答信号として出力し前記ネットワー
ク回線を通して対向する前記スレーブ側装置へ送出する
第2の送受信管理手段と、前記第2の送受信管理手段か
ら前記第2の時刻問合せ要求信号を入力されると前記第
2の時計手段から前記第1のマスター側時刻情報を読み
出して前述の第3の時刻問合せ応答信号として出力し前
記第2の送受信管理手段へ供給する第2の時刻管理手段
とを備える。
According to the time synchronization method of the present invention, a master device and a slave device are connected by a network line, and the slave device is connected to its own station.
Measure the time and use the time information as slave-side time information.
And output the data of the own station based on the time setting information.
First clock means for setting the current time latest;
First time inquiry to collect time information of remote device
The request signal is output multiple times at a predetermined
The first clock hand stores the slave-side time information for each power hour.
From the stage as the first slave side time information
Corresponding to each of the plurality of first time inquiry request signals
Time inquiry returned from the master side device
Each of the response signals
The first clock means transfers the slave-side time information to a second clock.
Read as the slave side time information, the first slave side
From the time information and the second slave-side time information,
The first time after sending the time inquiry request signal
One cycle until an inquiry response signal is returned and input
The communication time is measured within a predetermined value.
In this case, the communication time is output as first communication time information.
And average communication obtained by averaging the plurality of communication times
And comparing the time with the latest first communication time information.
When the time difference is within a predetermined value, the latest first time is required.
From the first communication time information at the time of sending the request signal,
The time obtained by subtracting half of the communication time is used as the time setting information.
And outputs it to the first clock means and supplies it to the slave side.
Said first time management means for setting the latest time;
The first time inquiry request signal from the first time management means;
The master facing the network through the network line
To the first device and the first time inquiry request
Facing through the network line corresponding to the signal
A second time inquiry response returned from the master device
Receiving the response signal and inputting the first time inquiry response signal
And supplies it to the first time management means.
Transmission / reception management means, and
Each of the plurality of times of the first communication time information is stored.
And storing the stored first communication time information.
The communication time for the specified number of reports is added and the average of the added values
Calculating the first time management value as the average communication time.
Time statistical processing means for supplying to the means,
-Side device measures the current time of its own station and
Second clock means for outputting as master-side time information;
The slave side facing through the network line
Receiving the first time inquiry request signal transmitted from the device;
And outputs it as a second time inquiry request signal.
Together with the third time inquiry response signal,
A second time inquiry response signal is output as the network
To the opposite device on the slave side
Second transmission / reception management means, and the second transmission / reception management means
When the second time inquiry request signal is input from the
Reading the first master-side time information from the second clock means.
Before outputting as the third time inquiry response signal described above.
Second time management means for supplying to the second transmission / reception management means
And

【0011】[0011]

【0012】[0012]

【発明の実施の形態】次に、本発明について図面を参照
して説明する。本発明の一実施例を示す図1を参照する
と、時刻同期方式は、マスター側装置1とスレーブ側装
置3とがネットワーク回線2を介して接続されるシステ
ム構成を採る。ここで、スレーブ側装置3は、自局の現
在時刻をリアルタイムで計時してその時刻情報つまりス
レーブ側時刻情報を出力するとともにマスター側装置1
とスレーブ側装置3との間の平均通信時間情報にもとづ
き設定される時刻設定情報により自局の現在時刻を設定
し直して最新設定する時計部30と、マスター側装置1
のリアルタイムの時刻情報を収集するために第1の時刻
問合せ要求信号を所定の一定時間間隔で複数回出力する
とともにその出力時ごとのリアルタイムのスレーブ側時
刻情報を時計部30から第1のスレーブ側時刻情報とし
て読み取るとともに複数回の第1の時刻問合せ要求信号
の各各に対応してマスター側装置1から返送される第1
の時刻問合せ応答信号の各各を入力されかつその入力時
ごとに時計部30からリアルタイムのスレーブ側時刻情
報を第2のスレーブ側時刻情報として読み取り第1のス
レーブ側時刻情報と第2のスレーブ側時刻情報とから第
1の時刻問合せ要求信号を送出してから第1の時刻問合
せ応答信号が返送入力されるまでの1サイクルごとの通
信時間を計測してその通信時間が所定値以内の場合には
その通信時間を第1の通信時間情報として出力するとと
もにこれら複数回の通信時間を平均した平均通信時間と
最新の第1の通信時間情報とを比較してその時間差が所
定値以内の場合には最新の第1の時刻要求信号送出時の
第1の通信時間情報から平均通信時間の半分を差し引い
た時刻を時刻設定情報として出力し時計部30へ供給し
てスレーブ側時刻の最新設定を行う時刻管理部31と、
時刻管理部31からの第1の時刻問合せ要求信号をネッ
トワーク回線2を通して対向するマスター側装置1へ送
出するとともにその第1の時刻問合せ要求信号に対応し
て同ネットワーク回線2を通して対向する同マスター側
装置1から返送される第2の時刻問合せ応答信号を受信
入力されて第1の時刻問合せ応答信号として出力し時刻
管理部31へ供給する送受信管理部32と、時刻管理部
31から供給される複数回の第1の通信時間情報の各各
を記憶するとともにその記憶された複数回の第1の通信
時間情報の所定回数分の通信時間を加算してその加算値
の平均値を算出し前述した平均通信時間情報として時刻
管理部31へ供給する時間統計処理部33とから構成さ
れ;またマスター側装置1は、自局の現在時刻を計時し
てその時刻情報をマスター側時刻情報として出力する時
計部10と、ネットワーク回線2を通して対向するスレ
ーブ側装置3から送出される第1の時刻問合せ要求信号
を受信入力されて第2の時刻問合せ要求信号として出力
するとともに第3の時刻問合せ応答信号を入力されて前
述の第2の時刻問合せ応答信号として出力しネットワー
ク回線2を通して対向するスレーブ側装置3へ送出する
送受信管理部12と、送受信管理部12から第2の時刻
問合せ要求信号を入力されると時計部10からマスター
側時刻情報を読み出して前述の第3の時刻問合せ応答信
号として出力し送受信管理部12へ供給する時刻管理部
11とから構成される。
Next, the present invention will be described with reference to the drawings. Referring to FIG. 1 showing an embodiment of the present invention, the time synchronization system employs a system configuration in which a master device 1 and a slave device 3 are connected via a network line 2. Here, the slave-side device 3 measures the current time of its own station in real time, outputs the time information, that is, the slave-side time information, and outputs the master-side device 1.
A clock unit 30 for resetting the current time of the own station by the time setting information set based on the average communication time information between the master unit 1 and the master unit 1
A first time inquiry request signal is output a plurality of times at predetermined fixed time intervals in order to collect the real time information of the first time, and the real time slave side time information for each output time is output from the clock unit 30 to the first slave side. The first information read as time information and returned from the master device 1 corresponding to each of the plurality of first time inquiry request signals.
, The real-time slave-side time information is read from the clock unit 30 as the second slave-side time information from the clock unit 30 at each time of the input, and the first slave-side time information and the second slave-side time information are read. From the time information, the communication time for each cycle from the transmission of the first time inquiry request signal to the return input of the first time inquiry response signal is measured. Outputs the communication time as the first communication time information, compares the average communication time obtained by averaging the plurality of communication times with the latest first communication time information, and determines that the time difference is within a predetermined value. Outputs the time obtained by subtracting half of the average communication time from the first communication time information at the time of sending the latest first time request signal as time setting information and supplies it to the clock unit 30 to supply the time on the slave side. And time management unit 31 for the latest set,
A first time inquiry request signal from the time management unit 31 is transmitted to the opposing master device 1 via the network line 2, and the same master side device that opposes through the network line 2 in response to the first time inquiry request signal. A transmission / reception management unit 32 that receives and inputs a second time inquiry response signal returned from the device 1, outputs the second time inquiry response signal as a first time inquiry response signal, and supplies the first time inquiry response signal to the time management unit 31. The first communication time information of each time is stored, and a predetermined number of communication times of the stored plurality of first communication time information are added to calculate an average value of the added value. The master-side device 1 measures the current time of its own station and supplies the time information to the time statistics processing unit 33 which supplies the time information to the time management unit 31 as average communication time information. A clock unit 10 that outputs as star-side time information, and a first time inquiry request signal transmitted from the opposing slave device 3 through the network line 2 are received and input and output as a second time inquiry request signal. 3; a transmission / reception management unit 12 which receives the time inquiry response signal of No. 3 and outputs it as the above-mentioned second time inquiry response signal and sends it out to the opposing slave device 3 via the network line 2; When an inquiry request signal is input, the time management unit 11 reads the master-side time information from the clock unit 10, outputs it as the third time inquiry response signal, and supplies the third time inquiry response signal to the transmission / reception management unit 12.

【0013】次に、図2と図1とを併せて参照して動作
について説明する。図2はマスター側装置1とスレーブ
側装置3との間で時刻情報の双方向通信を行う場合の時
刻問合せ要求RQおよび時刻問合せ応答RSにおけるフ
ォーマットの一例を示すものである。
Next, the operation will be described with reference to FIG. 2 and FIG. FIG. 2 shows an example of a format in a time inquiry request RQ and a time inquiry response RS when performing bidirectional communication of time information between the master device 1 and the slave device 3.

【0014】スレーブ側装置3の時刻管理部31は、一
定時間間隔の例えばt1 間隔で時刻問合せ要求RQのコ
マンドフィールドCF1に時刻問合せ要求識別(ID)
番号およびシーケンスフィールドSF1にシーケンス番
号Mを書いて、前述の第1の時刻問合せ要求信号として
出力し、送受信管理部32へ供給する。そして、送受信
管理部32は、その時刻管理部31からの時刻問合せ要
求RQを前述の第2の時刻問合せ要求信号として出力
し、ネットーク回線2を通してマスタ−側装置1へ送出
する。
The time management unit 31 of the slave device 3 stores a time inquiry request identification (ID) in the command field CF1 of the time inquiry request RQ at a fixed time interval, for example, at t 1.
The sequence number M is written in the number and sequence field SF1, output as the first time inquiry request signal, and supplied to the transmission / reception management unit 32. Then, the transmission / reception management unit 32 outputs the time inquiry request RQ from the time management unit 31 as the above-described second time inquiry request signal, and sends the signal to the master-side device 1 through the network line 2.

【0015】マスタ−側装置1の送受信管理部12は、
ネットワーク回線2を通して入力されるスレーブ側装置
3からの時刻問合せ要求RQを前述の第3の時刻問合せ
要求信号として時刻管理部11へ供給する。そして、時
刻管理部11は、送受信管理部12からの時刻問合せ要
求RQを入力されるごとに、時計部10からマスター側
の時刻をリアルタイムで読み出して時刻問合せ応答RS
の時刻フィールドTFに時計部10から読みだした時刻
を書き込むとともに、コマンドフィールドCF2に時刻
問合せ応答識別(ID)番号およびシーケンスフィール
ドSF2に時刻問合せ要求RQに書かれていたシーケン
ス番号Mを書き込んで、送受信管理部12へ前述の第3
の時刻問合せ応答信号として出力する。これによって、
送受信管理部12は、時刻管理部11から供給される時
刻問合せ応答RSを前述の第2の時刻問合せ応答信号と
して出力し、ネットワーク回線2を通してスレーブ側装
置3へ送出する。
The transmission / reception management unit 12 of the master-side device 1
The time inquiry request RQ input from the slave device 3 through the network line 2 is supplied to the time management unit 11 as the third time inquiry request signal. Each time the time inquiry request RQ is input from the transmission / reception management unit 12, the time management unit 11 reads the master-side time from the clock unit 10 in real time, and
The time read from the clock unit 10 is written in the time field TF, and the time inquiry response identification (ID) number is written in the command field CF2, and the sequence number M written in the time inquiry request RQ is written in the sequence field SF2. The transmission / reception management unit 12 receives the third
As a time inquiry response signal. by this,
The transmission / reception management unit 12 outputs the time inquiry response RS supplied from the time management unit 11 as the above-described second time inquiry response signal, and sends it to the slave device 3 through the network line 2.

【0016】スレーブ側装置3の送受信管理部32は、
このネットワーク回線2を通して入力されるマスター側
装置1からの時刻問合せ応答RSを前述の第1の時刻問
合せ応答信号として出力し、時刻管理部31へ供給す
る。この時刻管理部31では、送受信管理部32へ第1
の時刻問合せ要求信号としての時刻問合せ要求RQを送
信してから、同送受信管理部32から時刻問合せ応答R
Sを受信するまでの通信時間を測定しており、その計測
した通信時間が予め定められた例えば通信時間しきい値
2 以内の場合には、その通信時間を前述の第1の通信
時間情報として時間統計処理部33へ供給する。また、
通信時間がt2 を越える場合には、ネットワーク回線2
等における時刻情報伝達手段のいずれかおいて何らかの
異常が発生したものと見做して、この通信時間を時間統
計処理部33へ供給するのを止めて、この通信時間が時
間統計処理部33において平均通信時間に加算されるこ
とから除外する。そして、時間統計処理部33は、過去
n−1回の通信時間を内部のメモリに記憶しておき、最
も最近受信した最新の通信時間と合せてn回の通信時間
の各各を加算してその平均値を計算し、その算出結果を
前述の平均通信時間情報として時刻管理部31へ供給す
る。これによって、時刻管理部31は、時間統計処理部
33から平均通信時間情報を供給されると、その平均通
信時間とn回目の最新の通信時間とを比較して、その時
間差がしきい値T2 以内の場合には、マスタ−側装置1
から送出された最新の時刻問合せ応答RSの時刻フィー
ルドTFに書かれている時刻から平均通信時間の半分を
差し引いた値を自局の時刻設定情報として時刻部30へ
供給する。これによって、時計部30は自局の現在時刻
をこの時刻設定情報による時刻に合致させる設定を行
う。これで、時刻設定の1ステップが終了する。
The transmission / reception manager 32 of the slave device 3
The time inquiry response RS from the master device 1 input through the network line 2 is output as the above-described first time inquiry response signal and supplied to the time management unit 31. In this time management unit 31, the transmission / reception management unit 32
After transmitting the time inquiry request RQ as the time inquiry request signal of
And measuring the communication time until receiving the S, in which case the communication time of for example, within the communication time threshold t 2 predetermined measured, the first communication time information that communication time mentioned above Is supplied to the time statistical processing unit 33. Also,
If the communication time exceeds t 2 ,
It is considered that some abnormality has occurred in any of the time information transmitting means in the above-described steps, and the supply of the communication time to the time statistical processing unit 33 is stopped. Excluded from being added to the average communication time. Then, the time statistic processing unit 33 stores the past n-1 communication times in an internal memory, and adds each of the n communication times together with the latest communication time received most recently. The average value is calculated, and the calculation result is supplied to the time management unit 31 as the above-described average communication time information. Accordingly, when the time management unit 31 is supplied with the average communication time information from the time statistics processing unit 33, the time management unit 31 compares the average communication time with the n-th latest communication time, and determines the time difference as the threshold T. In case of less than 2 , master-side device 1
Supplies a value obtained by subtracting half of the average communication time from the time written in the time field TF of the latest time inquiry response RS sent from the mobile station to the time unit 30 as time setting information of the own station. As a result, the clock unit 30 sets the current time of the own station to match the time according to the time setting information. This completes one step of time setting.

【0017】続いて、スレーブ側装置3は、シーケンス
番号Mの時刻問合せ要求RQを送信してからt1 時間後
にシーケンス番号をM+1にして次の時刻問い合わせ要
求RQを送信する。以下、上述と同じ動作を繰り返す。
Subsequently, after transmitting the time inquiry request RQ of the sequence number M, the slave side device 3 sets the sequence number to M + 1 and transmits the next time inquiry request RQ at time t 1 . Hereinafter, the same operation as described above is repeated.

【0018】このように、マスター側装置1とスレーブ
側装置3との時刻誤差を予め決められたt0 秒以内にす
るために、過去の所定回数の平均通信時間Tと最も最新
に取得した通信時間tとを比較して、その時間差分がt
0 秒以上ある場合には時刻設定を行わない。つまり、両
装置内部の送受信機能の異常あるいはネットワーク回線
2の障害等によって、スレーブ側装置からの要求に対し
てマスター側装置1からの応答が遅れたり、あるいは返
送されない状態が発生して、本来の要求と応答に“ズ
レ”が生じることが考えられるからである。そして、こ
のような“ズレ”は一般的には通信時間tよりも大きい
ため、平均通信時間にこの“ズレ”の分の時間をも含ま
せると平均通信時間Tは本来の値よりも大きくなって、
これを基準として設定される時刻までもが“ズレ”る結
果になる。すなわち、予めネットワーク内に接続された
マスター側装置およびスレーブ側装置間の通信時間はほ
ぼ決まっているため、その通信時間よりも所定時間以上
超えたときは通信異常と見做して、そのときの通信時間
tを平均通信時間Tの算出に加えないようにすることに
より、平均通信時間Tの誤差をt0 秒未満にして、ネッ
トワーク内に複数のスレーブ装置が接続されている場合
でも全てのスレーブ側装置の時刻誤差をt0 秒未満にす
ることができる。
As described above, in order to keep the time error between the master-side device 1 and the slave-side device 3 within a predetermined time t 0 seconds, the average communication time T of a predetermined number of times in the past and the most recently obtained communication time T Compared with time t, the time difference is t
If there is more than 0 seconds, the time is not set. In other words, the response from the master device 1 to the request from the slave device is delayed or not returned due to an abnormality in the transmission / reception function in the two devices or a failure in the network line 2. This is because it is conceivable that a "deviation" occurs between the request and the response. Since such a “shift” is generally longer than the communication time t, if the average communication time includes the time corresponding to the “shift”, the average communication time T becomes longer than the original value. hand,
The result is “shift” even before the time set based on this. That is, since the communication time between the master device and the slave device connected to the network in advance is almost fixed, if the communication time exceeds the communication time by a predetermined time or more, it is regarded as a communication error, and by not adding the communication time t to calculate the average communication time T, and the error of the mean communication time T in t less than 0 seconds, all slaves even when a plurality of slave devices are connected to the network The time error of the side device can be less than t 0 seconds.

【0019】続いて、図3を参照してマスター側装置1
とスレーブ側装置3との間の時刻情報のやりとりおよび
スレーブ側装置3における平均通信時間の算出と時刻設
定のやり方について、5回のケースについて説明する。
ここで、平均通信時間Tを2秒(s),および通信間隔
1 を10分,時刻誤差t0 を2秒(s),通信時間し
きい値t2 を2秒(s)および通信時間をtとする。
Subsequently, referring to FIG.
The exchange of time information between the slave-side device 3 and the calculation of the average communication time and the time setting in the slave-side device 3 will be described for five cases.
Here, the average communication time T is 2 seconds (s), the communication interval t 1 is 10 minutes, the time error t 0 is 2 seconds (s), the communication time threshold t 2 is 2 seconds (s), and the communication time. Is defined as t.

【0020】第1回目のやりとりにおいては、スレーブ
側装置3から要求シーケンスNO.1により時刻問合せ
要求RQをマスター側装置1へ送出し、その要求に対し
てマスター側装置1から応答シーケンスNO.1により
時刻問合せ応答RSがスレーブ側装置3に返送する場合
の例を示しており、その1回のやりとりに3秒(s)の
通信時間を要した例である。この場合の通信時間t=3
sは、平均通信時間に計上しない通信時間しきい値t2
=1分(60s)よりも小さいので、この通信時間t=
3sを平均通信時間算入の対象に加える。さらに、通信
時間t=3sから平均通信時間T=2sを差し引いた値
が予め決められる時刻誤差t0 =2sよりも小さいの
で、スレーブ側装置3の時刻をマスター側装置1からの
応答シーケンスNO.1による時刻問合せ応答RSの時
刻情報に従う設定を行う。
In the first exchange, the slave device 3 issues a request sequence No. 1 sends a time inquiry request RQ to the master device 1, and the master device 1 responds to the request with a response sequence No. 1. 1 shows an example in which the time inquiry response RS is returned to the slave device 3, and it is an example in which one exchange requires a communication time of 3 seconds (s). Communication time t = 3 in this case
s is a communication time threshold value t 2 not included in the average communication time.
= 1 minute (60 s), the communication time t =
3s is added to the average communication time. Furthermore, since the value obtained by subtracting the average communication time T = 2 s from the communication time t = 3 s is smaller than the predetermined time error t 0 = 2 s, the time of the slave device 3 is set to the response sequence NO. 1 is set according to the time information of the time inquiry response RS.

【0021】第2回目のやりとりにおいては、スレーブ
側装置3から要求シーケンスNO.2により時刻問合せ
要求RQをマスター側装置1へ送出し、その要求に対し
てマスター側装置1から応答シーケンスNO.2により
時刻問合せ応答RSがスレーブ側装置3に返送された場
合の例を示しており、この第2回目のやりとりに5sの
通信時間を要した例である。この場合の通信時間t=5
sもt2 =1分(60s)よりも小さいので、この通信
時間t=5sも平均通信時間算入の対象に加える。さら
に、通信時間t=5sから平均通信時間T=2sを差し
引いた値が時刻誤差t0 =2sよりも大きいので、スレ
ーブ側装置1の時刻はそのままにして新規設定は行わ
ず、マスター側装置1からの応答シーケンスNO.2に
よる時刻問合せ応答RSの時刻情報はスレーブ側装置3
において廃棄する。
In the second exchange, the request sequence No. 2 sends a time inquiry request RQ to the master device 1, and the master device 1 responds to the request with a response sequence NO. 2 shows an example in which the time inquiry response RS is returned to the slave device 3, and this is an example in which the second exchange requires a communication time of 5 s. Communication time t = 5 in this case
Since s is also smaller than t 2 = 1 minute (60 s), this communication time t = 5 s is also added to the average communication time. Further, since the value obtained by subtracting the average communication time T = 2 s from the communication time t = 5 s is larger than the time error t 0 = 2 s, the time of the slave device 1 is not changed and new setting is not performed. Response sequence NO. 2 is the slave device 3
Discard at

【0022】第3回目のやりとりにおいては、スレーブ
側装置3から要求シーケンスNO.3により時刻問合せ
要求RQをマスター側装置1へ送出した際に、応答がマ
スター側装置1から返送されない場合の例を示してお
り、時刻問合せ周期のt1 =10分以内に応答がない場
合にはスレーブ側装置3からは次の要求シーケンス、つ
まり要求シーケンスNO.4による時刻問合せ要求RQ
がをマスター側装置1へ送出される例である。
In the third exchange, the slave device 3 sends a request sequence No. 3 shows an example in which a response is not sent back from the master device 1 when the time inquiry request RQ is sent to the master device 1 according to No. 3, and there is no response within t 1 = 10 minutes of the time inquiry cycle. Is the next request sequence from the slave side device 3, that is, the request sequence No. Time inquiry request RQ by 4
Is sent to the master device 1.

【0023】第4回目のやりとりにおいては、スレーブ
側装置3から要求シーケンスNO.4により時刻問合せ
要求RQをマスター側装置1へ送出した際に、応答シー
ケンスNO.4による時刻問合せ応答RSが返送される
前に応答シーケンスNO.3による時刻問合せ応答R
S、つまり上述した第3回目のやりとり時における要求
シーケンスNO.3に対応する時刻問合せ応答RSがこ
の時点で返送されてきた場合の例を示しており、この場
合にはスレーブ側装置3では常に要求シーケンス番号と
応答シーケンス番号とを比較検証しているので、要求し
たシーケンス番号に対して異なったシーケンス番号の応
答が返送された場合には、その異なる応答シーケンス番
号の時刻問合せ応答RSによる時刻情報は破棄される。
従って、応答シーケンスNO.3による時刻問合せ応答
RSによる時刻情報は破棄されて応答シーケンスNO.
4による時刻問合せ応答RSによる時刻情報が受理され
る。また、この第4回目のやりとでは、要求シーケンス
NO.4を送出してから応答シーケンスNO.4が返送
されるまでにt=6sの通信時間を要している。従っ
て、この通信時間t=6sは、第2回目のやりとりの場
合と同じように、t2 =1分(60s)よりも小さいの
で、この通信時間t=6sも平均通信時間算入の対象に
加える。そして、通信時間t=6sから平均通信時間T
=2sを差し引いた値が時刻誤差t0 =2sよりも大き
いので、スレーブ側装置3の時刻をマスター側装置1か
らの応答シーケンスNO.4による時刻問合せ応答RS
の時刻情報に従い設定を行う。
In the fourth exchange, the slave device 3 issues a request sequence No. When the time inquiry request RQ is transmitted to the master side device 1 according to the response sequence NO. 4 before the time inquiry response RS is returned. Time inquiry response R by 3
S, that is, the request sequence No. at the time of the third exchange described above. 3 shows an example in which the time inquiry response RS corresponding to No. 3 is returned at this time. In this case, since the slave side device 3 always compares and verifies the request sequence number and the response sequence number, If a response with a different sequence number is returned for the requested sequence number, the time information from the time inquiry response RS with the different response sequence number is discarded.
Therefore, the response sequence NO. 3 is discarded and the response sequence No. 3 is discarded.
4 is received by the time inquiry response RS. In the fourth operation, the request sequence No. 4 is transmitted, and then the response sequence No. A communication time of t = 6 s is required until 4 is returned. Therefore, the communication time t = 6 s is smaller than t 2 = 1 minute (60 s), as in the case of the second exchange, so that the communication time t = 6 s is also added to the average communication time. . Then, from the communication time t = 6s to the average communication time T
= 2 s is larger than the time error t 0 = 2 s, so that the time of the slave device 3 is set to the response sequence number from the master device 1. 4 Time inquiry response RS
Set according to the time information of.

【0024】第5回目のやりとりにおいては、スレーブ
側装置3から要求シーケンスNO.5により時刻問合せ
要求RQをマスター側装置1へ送出した際に、その要求
に対してマスター側装置1からt=62s後に応答シー
ケンスNO.5による時刻問合せ応答RSがスレーブ側
装置3に返送された場合の例を示しており、通信時間t
が平均通信時間Tに計上しない通信時間しきい値t2
1分(60s)を越えた例を示したものである。この場
合の通信時間t=62sは通信時間しきい値t2 =60
sよりも大きいので、この通信時間t=62sは平均通
信時間算入の対象には加えない。
In the fifth exchange, the slave device 3 sends a request sequence No. 5, when the time inquiry request RQ is sent to the master device 1, the response sequence No. 5 is sent to the request after t = 62s from the master device 1. 5 shows an example in which the time inquiry response RS is returned to the slave device 3 and the communication time t
Is not counted in the average communication time T, the communication time threshold t 2 =
This is an example in which one minute (60 s) is exceeded. In this case, the communication time t = 62 s is equal to the communication time threshold t 2 = 60.
Since the communication time is larger than s, the communication time t = 62 s is not added to the average communication time.

【0025】ここで、上述において、もし通信時間しき
い値t2 =60sを越えた通信時間t=62sを平均通
信時間算入の対象に含めると、第1回目から第4回目ま
での平均通信時間Tが3s+5s+6s=14s/3≒
4.7sであるのに対し第1回目から第5回目までの平
均通信時間Tは、3s+5s+6s+62s=76s/
4=19sとなって、約14sの“ズレ”のある時刻に
設定されてしまう。また、通信時間t=62sから平均
通信時間T=2sを差し引いた値が時刻誤差t0 =2s
よりも大きいので、スレーブ側装置3の時刻はそのまま
にして新規設定は行わず、マスター側装置1からの応答
シーケンスNO.5による時刻問合せ応答RSの時刻情
報はスレーブ側装置3において廃棄する。
In the above description, if the communication time t = 62 s exceeding the communication time threshold t 2 = 60 s is included in the average communication time calculation, the average communication time from the first time to the fourth time is calculated. T is 3s + 5s + 6s = 14s / 3 ≒
The average communication time T from the first time to the fifth time is 4.7 s, whereas the average communication time T is 3 s + 5 s + 6 s + 62 s = 76 s /
4 = 19 s, which is set to a time with a “shift” of about 14 s. The value obtained by subtracting the average communication time T = 2 s from the communication time t = 62 s is the time error t 0 = 2 s.
Therefore, the new time is not set while the time of the slave device 3 is kept as it is, and the response sequence No. The time information of the time inquiry response RS according to 5 is discarded in the slave device 3.

【0026】このように、マスター側装置1およびスレ
ーブ側装置3内部の送受信機能の異常あるいはネットワ
ーク回線2の障害等による時刻設定の“ズレ”を防止す
るために、通信時間しきい値t2 を予め設定して、これ
を越えた通信時間tを平均通信時間Tの算出から除外す
ることにより、平均通信時間Tの誤差をt0 秒未満にし
て、ネットワークに接続されているスレーブ側装置3の
時刻誤差をt0 秒未満にすることができる。
As described above, the communication time threshold value t 2 is set to prevent the time setting from being “shifted” due to an abnormality in the transmission / reception function inside the master device 1 and the slave device 3 or a failure in the network line 2. By setting in advance and excluding the communication time t exceeding this from the calculation of the average communication time T, the error of the average communication time T is reduced to less than t 0 seconds, and the communication time of the slave device 3 connected to the network is reduced. The time error can be less than t 0 seconds.

【0027】なお、以上の説明においては、1つのマス
ター側装置1と1つのスレーブ側装置3とによるポイン
ト ツウ ポイントのシステムにおける時刻情報の通信
および時刻設定のやり方について述べたが、複数のスレ
ーブ側装置3と1つのマスター側装置1とによるマルチ
ツウ ポイントのシステムにおいても、例えばポーリ
ング形式の通信を行うことにより同様に実施することが
できる。
In the above description, a method of communicating time information and setting time in a point-to-point system by one master device 1 and one slave device 3 has been described. In a multi-point system using the device 3 and one master device 1, the same operation can be performed by, for example, performing polling communication.

【0028】[0028]

【発明の効果】以上説明したように本発明によれば、マ
スター側装置とスレーブ側装置間との通信時間のしきい
値を設定して、このしきい値を越えた通信時間を平均通
信時間の算出から除外することにより、平均通信時間の
誤差を所定時間未満にして、ネットワークに接続されて
いる全てのスレーブ側装置の各各の時刻誤差を各各の装
置での許容時刻誤差の範囲内に抑えることができる。
As described above, according to the present invention, a threshold value for the communication time between the master device and the slave device is set, and the communication time exceeding the threshold value is reduced to the average communication time. , The average communication time error is reduced to less than a predetermined time, and each time error of all the slave devices connected to the network is within the allowable time error of each device. Can be suppressed.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の一実施例の時刻同期方式を示すブロッ
ク図である。
FIG. 1 is a block diagram illustrating a time synchronization method according to an embodiment of the present invention.

【図2】同実施例における時刻同期方式の時刻問合せ要
求および時刻問合せ応答のフォーマットである。
FIG. 2 is a format of a time inquiry request and a time inquiry response of a time synchronization method in the embodiment.

【図3】同実施例における時刻同期方式のマスター側装
置とスレーブ側装置との間の時刻情報のやりとりを現わ
したシーケンス図である。
FIG. 3 is a sequence diagram showing exchange of time information between a master-side device and a slave-side device using a time synchronization method in the embodiment.

【図4】第1の従来例を示すブロック図である。FIG. 4 is a block diagram showing a first conventional example.

【図5】第2の従来例を示すブロック図である。FIG. 5 is a block diagram showing a second conventional example.

【符号の説明】[Explanation of symbols]

1 マスター側装置 2 ネットワーク回線 3 スレーブ側装置 10 時計部 11 時刻管理部 12 送受信管理部 30 時計部 31 時刻管理部 32 送受信管理部 33 時間統計管理部 DESCRIPTION OF SYMBOLS 1 Master side apparatus 2 Network line 3 Slave side apparatus 10 Clock section 11 Time management section 12 Transmission / reception management section 30 Clock section 31 Time management section 32 Transmission / reception management section 33 Time statistics management section

フロントページの続き (72)発明者 柴崎 秀樹 神奈川県川崎市中原区小杉町一丁目403 番地 日本電気テレコムシステム株式会 社内 (72)発明者 福田 博行 神奈川県川崎市中原区小杉町一丁目403 番地 日本電気テレコムシステム株式会 社内 (56)参考文献 特開 平7−131853(JP,A) 特開 平3−264890(JP,A) 特開 平5−336574(JP,A) 特開 昭63−63238(JP,A) (58)調査した分野(Int.Cl.6,DB名) H04L 7/00 Continuing on the front page (72) Inventor Hideki Shibasaki 1-403 Kosugi-cho, Nakahara-ku, Kawasaki-shi, Kanagawa Prefecture In-house NEC Corporation (72) Inventor Hiroyuki Fukuda 1-403 Kosugi-cho, Nakahara-ku, Kawasaki-shi, Kanagawa Japan In-house (56) References JP-A-7-131853 (JP, A) JP-A-3-264890 (JP, A) JP-A-5-336574 (JP, A) JP-A-63-63238 (JP, A) (58) Field surveyed (Int. Cl. 6 , DB name) H04L 7/00

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 マスター側装置とスレーブ側装置とがネ
ットワーク回線で接続され、 前記スレーブ側装置が、自局の現在時刻を計時してその
時刻情報をスレーブ側時刻情報として出力するとともに
時刻設定情報にもとづき前記自局の現在時刻を最新設定
する第1の時計手段と、 前記マスター側装置の時刻情報を収集するために第1の
時刻問合せ要求信号を所定の周期で複数回出力するとと
もにその出力時ごとの前記スレーブ側時刻情報を前記第
1の時計手段から第1のスレーブ側時刻情報として読み
取るとともに前記複数回の第1の時刻問合せ要求信号の
各各に対応して前記マスター側装置から返送される第1
の時刻問合せ応答信号の各各を入力されかつその入力時
ごとに前記第1の時計手段から前記スレーブ側時刻情報
を第2のスレーブ側時刻情報として読み取り前記第1の
スレーブ側時刻情報と前記第2のスレーブ側時刻情報と
から前記第1の時刻問合せ要求信号を送出してから前記
第1の時刻問合せ応答信号が返送入力されるまでの前記
1サイクルごとの通信時間を計測して前記通信時間が所
定値以内の場合には前記通信時間を第1の通信時間情報
として出力するとともに前記複数回の通信時間を平均し
た平均通信時間と最新の前記第1の通信時間情報とを比
較してその時間差が所定値以内の場合には最新の前記第
1の時刻要求信号送出時の前記第1の通信時間情報から
前記平均通信時間の半分を差し引いた時刻を前記時刻設
定情報として出力し前記第1の時計手段へ供給して前記
スレーブ側時刻の最新設定を行う前記第1の時刻管理手
段と、 前記第1の時刻管理手段からの前記第1の時刻問合せ要
求信号を前記ネットワーク回線を通して対向する前記マ
スター側装置へ送出するとともに前記第1の時刻問合せ
要求信号に対応して前記ネットワーク回線を通して対向
する前記マスター側装置から返送される第2の時刻問合
せ応答信号を受信入力されて前記第1の時刻問合せ応答
信号として出力し前記第1の時刻管理手段へ供給する第
1の送受信管理手段と、 前記第1の時刻管理手段から供給される前記複数回の前
記第1の通信時間情報の各各を記憶するとともに前記記
憶された複数回の第1の通信時間情報の所定回数分の通
信時間を加算してその加算値の平均値を算出し前記平均
通信時間として前記第1の時刻管理手段へ供給する時間
統計処理手段と;を備え、 前記マスター側装置が、自局の現在時刻を計時してその
時刻情報をマスター側時刻情報として出力する第2の時
計手段と、 前記ネットワーク回線を通して対向する前記スレーブ側
装置から送出される前記第1の時刻問合せ要求信号を受
信入力されて第2の時刻問合せ要求信号として出力する
とともに第3の時刻問合せ応答信号を入力されて前述の
第3の時刻問合せ応答信号として出力し前記ネットワー
ク回線を通して対向する前記スレーブ側装置へ送出する
第2の送受信管理手段と、 前記第2の送受信管理手段から前記第2の時刻問合せ要
求信号を入力されると前記第2の時計手段から前記第1
のマスター側時刻情報を読み出して前記第3の時刻問合
せ応答信号として出力し前記第2の送受信管理手段へ供
給する第2の時刻管理手段と;を備えることを特徴とす
る時刻同期方式。
1. A master device and a slave device are connected by a network line. The slave device measures the current time of its own station, outputs the time information as slave time information, and sets time setting information. First clock means for setting the current time of the own station latest based on the first time inquiry request signal for collecting the time information of the master side apparatus a plurality of times in a predetermined cycle and outputting the same. The slave-side time information for each hour is read from the first clock means as first slave-side time information, and is returned from the master-side device in response to each of the plurality of first time inquiry request signals. First
Each time of the time inquiry response signal, and reads the slave-side time information from the first clock means as second slave-side time information at each input time. And measuring the communication time for each cycle from the transmission of the first time inquiry request signal to the return input of the first time inquiry response signal from the slave side time information and the communication time. Is less than or equal to a predetermined value, the communication time is output as first communication time information, and the average communication time obtained by averaging the plurality of communication times is compared with the latest first communication time information. If the time difference is within a predetermined value, a time obtained by subtracting half of the average communication time from the first communication time information at the time of sending the latest first time request signal is output as the time setting information. A first time management unit that supplies the first clock unit with the latest time setting of the slave-side time, and transmits the first time inquiry request signal from the first time management unit through the network line A second time inquiry response signal transmitted from the opposite master side device through the network line in response to the first time inquiry request signal is transmitted to the opposite master side device and received and input. A first transmission / reception management unit that outputs the first time inquiry response signal and supplies it to the first time management unit; and a plurality of times of the first communication time information supplied from the first time management unit. Each of them is stored, and a predetermined number of communication times of the stored first communication time information are added to calculate an average value of the added values. A time statistical processing means for supplying the time as the time to the first time management means; wherein the master device measures the current time of its own station and outputs the time information as master time information. A clock unit; receiving and inputting the first time inquiry request signal transmitted from the slave device facing the device through the network line, outputting the second time inquiry request signal and outputting a third time inquiry response signal; A second transmission / reception management means which is inputted and outputted as the above-mentioned third time inquiry response signal, and is transmitted to the opposing slave side device through the network line; and the second time inquiry from the second transmission / reception management means. When a request signal is input, the first clock is sent from the second clock means.
A second time management means for reading out the master-side time information, outputting the third time inquiry response signal, and supplying the third time inquiry response signal to the second transmission / reception management means.
JP7190314A 1995-07-26 1995-07-26 Time synchronization method Expired - Fee Related JP2972556B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7190314A JP2972556B2 (en) 1995-07-26 1995-07-26 Time synchronization method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7190314A JP2972556B2 (en) 1995-07-26 1995-07-26 Time synchronization method

Publications (2)

Publication Number Publication Date
JPH0946325A JPH0946325A (en) 1997-02-14
JP2972556B2 true JP2972556B2 (en) 1999-11-08

Family

ID=16256115

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7190314A Expired - Fee Related JP2972556B2 (en) 1995-07-26 1995-07-26 Time synchronization method

Country Status (1)

Country Link
JP (1) JP2972556B2 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3615357B2 (en) * 1997-07-01 2005-02-02 日本電信電話株式会社 Clock synchronization method and apparatus, and recording medium
JP2000101597A (en) * 1998-09-24 2000-04-07 Nec Corp Inter-node frame phase synchronization system and method
JP5101126B2 (en) * 2007-02-16 2012-12-19 株式会社エヌ・ティ・ティ・ドコモ Tamper resistant device, time information providing apparatus, information state control system, and information state control method
KR100987389B1 (en) * 2008-08-14 2010-10-12 한국전자통신연구원 Synchronization method with fixed delay time in network, and bridge adopting the same method
US10899099B2 (en) 2014-10-23 2021-01-26 Furukawa Industrial Machinery Systems Co., Ltd. Device and method for evaluating operating conditions of briquetting machine, briquetting machine, method for manufacturing briquette, control device of briquetting machine, control method of briquetting machine, and program
EP3491752A1 (en) * 2016-09-23 2019-06-05 Apple Inc. Network timing synchronization

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6363238A (en) * 1986-09-04 1988-03-19 Matsushita Commun Ind Co Ltd Timing device for network system
JPH03264890A (en) * 1990-03-14 1991-11-26 Nec Corp Timepiece synchronous apparatus in communication network
JP3218690B2 (en) * 1992-06-03 2001-10-15 富士電機株式会社 Time synchronization method for data transmission system
JPH07131853A (en) * 1993-11-05 1995-05-19 N T T Idou Tsuushinmou Kk Mobile communication system

Also Published As

Publication number Publication date
JPH0946325A (en) 1997-02-14

Similar Documents

Publication Publication Date Title
EP0613271B1 (en) Method and apparatus for time synchronization of bus type local area networks including hierarchical networks
JP2007527667A (en) System and method for maintaining a common sense of time on a network segment
JP2007060400A (en) Method and system for controlling communication timing
JP2972556B2 (en) Time synchronization method
CN1985521A (en) Measurement system for delay between two signals transmitted via two transmission paths
US20180176107A1 (en) Fault-Tolerant Operational Group On A Distributed Network
US7848361B2 (en) Time-triggered communication system and method for the synchronization of a dual-channel network
US7260652B2 (en) Method and communication system for exchanging data between at least two stations via a bus system
JPH01143438A (en) Communication control system
KR101716583B1 (en) Time synchronization server, system and method
US9660796B2 (en) Method for detecting in a receiver a transmitter local time
JP3344121B2 (en) Performance data processing method in distributed processor system
US20040243728A1 (en) Ensuring maximum reaction times in complex or distributed safe and/or nonsafe systems
JP3571218B2 (en) Synchronous operation system
JPH1028119A (en) Processing system for time setting among a plurality of equipments
JP2006329759A (en) Monitoring control system
JP2002135284A (en) Line concentrator
JP6492885B2 (en) Diagnostic equipment
JP2827284B2 (en) Network time adjustment method
JP2013168850A (en) Distributed control system
JP2005064951A (en) Remote supervision and control system
JPH11211863A (en) Automatic time correcting method and automatic time correcting device
JPH10104373A (en) Time adjustment method
JP2885644B2 (en) Line switching method
KR20140068766A (en) Method for providing and transmitting messages

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19990810

LAPS Cancellation because of no payment of annual fees