JPH02226092A - Data communication system - Google Patents

Data communication system

Info

Publication number
JPH02226092A
JPH02226092A JP1045231A JP4523189A JPH02226092A JP H02226092 A JPH02226092 A JP H02226092A JP 1045231 A JP1045231 A JP 1045231A JP 4523189 A JP4523189 A JP 4523189A JP H02226092 A JPH02226092 A JP H02226092A
Authority
JP
Japan
Prior art keywords
time
data communication
station
response
compensation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP1045231A
Other languages
Japanese (ja)
Inventor
Masayuki Higuma
日熊 政行
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 Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP1045231A priority Critical patent/JPH02226092A/en
Publication of JPH02226092A publication Critical patent/JPH02226092A/en
Pending legal-status Critical Current

Links

Landscapes

  • Communication Control (AREA)
  • Selective Calling Equipment (AREA)
  • Electric Clocks (AREA)
  • Multi Processors (AREA)
  • Small-Scale Networks (AREA)

Abstract

PURPOSE:To perform highly accurate time synchronization by a method wherein when time is set from a main station data communication device to other follower station data communication devices, time required until response is returned from each follower station is counted and stored so that it is transmitted as a time setting command after set time compensation. CONSTITUTION:Since response time is unknown when transmission delay time is detected for the first time, a response time memory unit 15 is initialized. Therefore time setting is done as for a follower station 20 without any compensation with a time compensation operating device 13. Then time required until response is made from the follower station 20 is counted and stored as transmission delay time in a response time memory device 15. On the other hand for and after the second synchronization of time, compensation is performed with the value stored in the response time memory device 15 as a compensation value by the time compensation operating device 13, and it is returned to a main station 10 as a time setting command. This allows accuracy of time synchronization to be within an allowable limitation.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、共通時刻の設定が可能なデータ通信システム
に間し、特に、伝送J!!!!間を補正して時刻設定を
行なうことが可能なデータ通信システムに関する。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Field of Application] The present invention relates to a data communication system in which a common time can be set, and in particular, to a data communication system capable of setting a common time. ! ! ! The present invention relates to a data communication system that can set time by correcting the time difference.

[従来の技術] 近年、データ通信装置が主局と従局をなし、当該データ
通信装置間をネ・ントワークで接続したデータ通信シス
テムが利用されている。
[Prior Art] In recent years, data communication systems have been used in which data communication devices serve as a master station and a slave station, and the data communication devices are connected through a network.

ところで、従来のデータ通信システムでは、各データ通
18装置ごとに独立して時刻設定されるとともに、独立
に計時しており、他のデータ通信装置から時刻設定され
ると、あらかじめ設定さオτていた時刻と他のデータ通
信装置から受信した時刻との差を補正値とし、この補正
値によって計時処理を行なっていた。
By the way, in conventional data communication systems, each of the 18 data communication devices independently sets the time and measures the time independently, and when the time is set from another data communication device, the preset time is automatically set. The difference between the received time and the time received from another data communication device is used as a correction value, and the time measurement process is performed using this correction value.

[解決すべき課!i] 上述した従来のデータ通信システムは、伝送遅延時間を
考慮しておらず、伝送遅延が生じても、その影響を補正
して時刻同期を取ることができなかったため、伝送M延
が大きく、その影響を簾視できない場合には時刻同期の
精度を許容限度内に押さえることができないという課題
があった。
[A problem to be solved! i] The conventional data communication system described above does not take transmission delay time into consideration, and even if a transmission delay occurs, it is not possible to correct the influence and achieve time synchronization, so the transmission M delay is large. If the influence cannot be overlooked, there is a problem in that the accuracy of time synchronization cannot be kept within the permissible limit.

本発明は、上記r1Mにかんがみてなされたもので、伝
送J!!延が大きい場合でも、時刻同期の精度を許容限
度内に押さえることが可能なデータ通信システムの提供
を目的とする。
The present invention has been made in view of the above r1M, and is based on the transmission J! ! The present invention aims to provide a data communication system capable of keeping the accuracy of time synchronization within an allowable limit even when the delay is large.

[ff、dの解決手段] 上記目的を達成するため、本発明のデータ通信システム
は、主局と従局とをネットワークを介して接続するとと
もに、上記主局は、上記ネットワークを介して上記従局
に時刻設定を行なわしめる主局側時刻同期手段と、時刻
設定の開始から設定確認を受信するまでの時間を計数し
、伝送!X延時間として記憶する伝送j!延待時間計数
記憶手段、上記伝送遅延時間にもとづいて上記主局側時
刻同期手段による時刻設定の時刻を補正する設定時刻補
正手段とを備え、上記従局は、上記ネットワークを介し
て上記主局から時刻設定されると当該時刻を設定する従
局倒時刻同朋手段と、時刻設定を受けると上記ネットワ
ークを介して上記主局に設定確認を送信する設定確認返
送手段とを備えた構成としである。
[Means for solving ff, d] In order to achieve the above object, the data communication system of the present invention connects a master station and a slave station via a network, and the master station connects the slave station via the network. The time synchronization means on the main station side performs the time setting, and the time from the start of time setting until receiving the setting confirmation is counted and transmitted! Transmission j to be stored as X extension time! A delay time counting storage means, a setting time correction means for correcting the time set by the master station side time synchronization means based on the transmission delay time, and the slave station receives information from the master station via the network. The main station is configured to include a slave station failure time synchronizing means for setting the time when the time is set, and a setting confirmation return means for transmitting a setting confirmation to the master station via the network when the time is set.

かかる構成とすることにより、主局となるデータ通信装
置から従局となるデータ通信装置へ時刻設定を行なうと
き、時刻同期の主局となるデータ通信装置は、従局とな
るデータ通信装置に計数する時刻を送信してから応答が
返されるまでの時間を計数して伝送遅延時間を検出する
とともに、この伝送遅延時間にもとづいて当該従局に対
する計数時刻設定値を補正してから時刻設定コマンドを
送信している。
With this configuration, when the time is set from the data communication device serving as the master station to the data communication device serving as the slave station, the data communication device serving as the master station for time synchronization sets the time to be counted to the data communication device serving as the slave station. The transmission delay time is detected by counting the time from sending the message until a response is returned, and based on this transmission delay time, the counting time setting value for the slave station is corrected, and then the time setting command is sent. There is.

[実施例] 以下、図面にもとづいて本発明の詳細な説明する。[Example] Hereinafter, the present invention will be explained in detail based on the drawings.

第1図は、本発明の一実施例に係るデータ通信システム
のブロック図である。
FIG. 1 is a block diagram of a data communication system according to an embodiment of the present invention.

同図において、10は主局となるデータ通信装置、20
は従局となるデータ通信装置、30は主局データ通信装
置IOと従局データ通信!装置20とを接続するデータ
通信ネットワーク(以下、ネットワークという、)であ
る、ここで、時刻同期の主局となるデータ通信装置lO
内には、時計装置11と通信制御装置12と時刻補正演
算装置13と応答時間計数装置14と応答時閉記憶装置
15とを備えている。そして、時刻補正演算装置13は
、時計装置11から出力される時刻を応答時間記憶装置
15において従局ごとに記憶された応答時間にもとづい
て補正演算を行なう、また、その結果は、時刻設定コマ
ンドとして通信i/JW装置12からデータ通信ネット
ワーク30を経由して従局データ通信装置20へ送信さ
れる。
In the figure, 10 is a data communication device serving as a main station;
is a data communication device that becomes a slave station, and 30 is a data communication device between the master station data communication device IO and the slave station! A data communication network (hereinafter referred to as a network) that connects the device 20 to the data communication device lO, which serves as the main station for time synchronization.
Inside, there is provided a clock device 11, a communication control device 12, a time correction calculation device 13, a response time counting device 14, and a response closing storage device 15. Then, the time correction calculation device 13 performs a correction calculation on the time output from the clock device 11 based on the response time stored for each slave station in the response time storage device 15, and the result is sent as a time setting command. It is transmitted from the communication i/JW device 12 to the slave data communication device 20 via the data communication network 30.

一方、従局データ通信装置20内には、時計装置12と
通信制御装置22を備えている。そして、通信制御装置
22によって主局データ通信装置10から送信された時
刻設定コマンドを受信し、当該コマンドによって指示さ
れる時刻に時計装置21の計数値を設定するとともに、
設定確認の応答を通信制i#装置22から主局データ通
信装置10に返送する。
On the other hand, the slave data communication device 20 includes a clock device 12 and a communication control device 22. Then, the communication control device 22 receives the time setting command transmitted from the main station data communication device 10, and sets the count value of the clock device 21 to the time specified by the command, and
A setting confirmation response is sent back from the communication system i# device 22 to the main station data communication device 10.

従って、主局データ通信装置10では、伝送遅延時間の
検出を行なった後、補正後に再度、時刻設定を行なうこ
とになる。すなわち、通信制御#装置12は、上記シー
ケンスで時刻設定コマンドを送信してから応答が返され
るまでの時間を応答時間計数装置14で計数させ、計数
出力を応答時間記憶装置15に記憶させてから、再度、
時刻設定を行なう。
Therefore, in the main station data communication device 10, after detecting the transmission delay time, the time setting is performed again after correction. That is, the communication control #device 12 causes the response time counting device 14 to count the time from when the time setting command is sent to when a response is returned in the above sequence, and stores the counted output in the response time storage device 15. ,again,
Set the time.

以下、これをより具体的に説明する。This will be explained in more detail below.

まず、最初に伝送遅延時間を検出するとき、すなわち、
時刻同期の初回においては応答時間が未知数であるため
、応答時間記憶装置15を期間化しておく、従って、時
刻補正演算装置13で何ら補正をすることなく従局に対
して時刻設定を行なう、そして、従局からの榛答までを
計数し、伝送遅延時間として応答時間記憶装置15で記
憶する。
First, when first detecting the transmission delay time, i.e.
At the first time of time synchronization, the response time is unknown, so the response time storage device 15 is set as a period. Therefore, the time is set for the slave station without any correction in the time correction calculation device 13, and The response time from the slave station is counted and stored in the response time storage device 15 as the transmission delay time.

一方、時刻同期の二回目以降は、応答時間が既知数とな
るので、応答時間記憶装置15に記憶された値を補正値
として時刻補正演算装置13にて補正演算を行なう。
On the other hand, after the second time synchronization, since the response time becomes a known number, the time correction calculation device 13 performs correction calculation using the value stored in the response time storage device 15 as a correction value.

ここで、データ通信ネットワーク30を介して時刻設定
コマンドとその応答を主局データ通信装置10と従局デ
ータ通信装置20との間で送受信するにあたり、上記時
刻設定コマンドと応答の電文長が同一であり、かつ、デ
ータ通信ネットワーク30中の電文経路が送受信ともに
同一であれば、このネットワーク3′0の伝送遅延時間
は概ね送受信とも等しいと考えることができる。このこ
とから、上述した補正演算は応答時間記憶装置15に記
憶された値の1/2を加算する演算とすることで実用上
十分な精度を得ることができる。
Here, when transmitting and receiving the time setting command and its response between the master data communication device 10 and the slave data communication device 20 via the data communication network 30, the message length of the time setting command and the response are the same. , and if the message path in the data communication network 30 is the same for both transmission and reception, it can be considered that the transmission delay time of this network 3'0 is approximately the same for both transmission and reception. Therefore, by performing the above-mentioned correction calculation by adding 1/2 of the value stored in the response time storage device 15, sufficient accuracy for practical use can be obtained.

このように本実施例では、他のデータ通信装置との閏で
データ通信を行なう手段と、当該手段によって受信した
時刻にもとづいて時刻を計数する手段とを惟えたデータ
通信装置をネットワークを介して接続してデータ通信シ
ステムを構成するとともに、時刻同期の主局となるデー
タ通信装置では、時刻同期の従局となるデータ通信装置
へ計数する時刻を送信する時刻同期手段と、この送信の
後、従局となるデータ通信装置から設定確認の応答が返
されるまでの時間を伝送遅延時間として計数し、記憶し
ておく手段と、従局となるデータ通信装置へ送信する時
刻をこの記憶値にもとづいて補正する手段を備え、従局
となるデータ通信装置では、計数する時刻を受信すると
設定確認を応答として返送する手段とを備えている。
As described above, in this embodiment, a data communication device equipped with a means for performing data communication with another data communication device and a means for counting time based on the time received by the means is connected via a network. The data communication device that connects to form a data communication system and serves as the master station for time synchronization has a time synchronization means that transmits the time to be counted to the data communication device that serves as the slave station for time synchronization, and after this transmission, the slave station The time it takes for a configuration confirmation response to be returned from the data communication device is counted as the transmission delay time, and the means for storing it and the time at which it is sent to the slave data communication device are corrected based on this stored value. The slave data communication device includes means for returning a setting confirmation as a response upon receiving the time to be counted.

そして、主局となるデータ通信装置では、時刻設定を行
なう隙、計数する時刻を送信するにあたり、伝送遅延時
間にもとづく補正を行なってから送信している。
The data communication device serving as the main station performs a correction based on the transmission delay time before transmitting the time to be counted while setting the time.

[発明の効果コ 以上説明したように本発明は、主局データ通信装置から
他の従局データ通信装置へ時刻設定を行なう隙、各従局
ごとに応答が返されるまでの時間を計数して記憶してお
き、設定時刻を補正してから時刻設定コマンドとして送
信しているため、時刻設定コマンドのネットワーク中に
おけろ伝送遅延時間が無視できないような場合でも高精
度な時刻同期を行なうことが可能なデータ通信システム
を提供できるという効果がある。
[Effects of the Invention] As explained above, the present invention calculates and stores the time until a response is returned from each slave station during the time setting from the master station data communication device to other slave data communication devices. Since the set time is corrected before being sent as a time setting command, highly accurate time synchronization can be performed even when the transmission delay of the time setting command cannot be ignored in the network. This has the effect of providing a data communication system.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例に係るデータ通信システムの
ブロック図である。 10゜ l l。 !2゜ 13 : l 4: l 5 : 30 : 20:データ通信装置 21コ時計装置 22:通信制isi置 時刻補正演算装置 応答時間計数装置 応答時間記憶装置 データ通信ネットワーク
FIG. 1 is a block diagram of a data communication system according to an embodiment of the present invention. 10゜l. ! 2゜13: l 4: l 5: 30: 20: Data communication device 21 Clock device 22: Communication system ISI time correction calculation device Response time counter Response time storage device Data communication network

Claims (1)

【特許請求の範囲】[Claims]  計時手段と通信制御手段を有する主局と従局とをネッ
トワークを介して接続したデータ通信システムにおいて
、上記主局は、上記ネットワークを介して上記従局に時
刻設定を行なわしめる主局側時刻同期手段と、時刻設定
の開始から設定確認を受信するまでの時間を計数し、伝
送遅延時間として記憶する伝送遅延時間計数記憶手段と
、上記伝送遅延時間にもとづいて上記主局側時刻同期手
段による時刻設定の時刻を補正する設定時刻補正手段と
を有し、上記従局は、上記ネットワークを介して上記主
局から時刻設定されると当該時刻を設定する従局側時刻
同期手段と、時刻設定を受けると上記ネットワークを介
して上記主局に設定確認を送信する設定確認返送手段と
を有することを特徴とするデータ通信システム。
In a data communication system in which a master station and a slave station having a timekeeping means and a communication control means are connected via a network, the master station has a time synchronization means on the master station side that causes the slave station to set time via the network. , a transmission delay time counting storage means for counting the time from the start of time setting until receiving a setting confirmation and storing it as a transmission delay time; and a time setting by the main station side time synchronization means based on the transmission delay time. The slave station has a set time correction means for correcting the time, and the slave station has a slave side time synchronization means for setting the time when the time is set from the master station via the network, and a slave side time synchronization means that sets the time when the time is set from the master station via the network, and and a setting confirmation return means for transmitting a setting confirmation to the main station via the main station.
JP1045231A 1989-02-28 1989-02-28 Data communication system Pending JPH02226092A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1045231A JPH02226092A (en) 1989-02-28 1989-02-28 Data communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1045231A JPH02226092A (en) 1989-02-28 1989-02-28 Data communication system

Publications (1)

Publication Number Publication Date
JPH02226092A true JPH02226092A (en) 1990-09-07

Family

ID=12713487

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1045231A Pending JPH02226092A (en) 1989-02-28 1989-02-28 Data communication system

Country Status (1)

Country Link
JP (1) JPH02226092A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04359189A (en) * 1991-06-04 1992-12-11 Hokuriku Electric Power Co Inc:The Reference time signal synchronizing device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6071981A (en) * 1983-09-29 1985-04-23 Fujitsu Ltd Remote time setting system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6071981A (en) * 1983-09-29 1985-04-23 Fujitsu Ltd Remote time setting system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04359189A (en) * 1991-06-04 1992-12-11 Hokuriku Electric Power Co Inc:The Reference time signal synchronizing device

Similar Documents

Publication Publication Date Title
US5566180A (en) Method for recognizing events and synchronizing clocks
US4549297A (en) Data retransmitting system
EP2057765B1 (en) Coordinated timing network configuration parameter update procedure
JPS60150345A (en) One point vs. multipoint communicating method and device
JPH10509294A (en) System with predetermined timing relationship between data input and output, and transmitter and receiver of such system
JPH02226092A (en) Data communication system
JPH025654A (en) Signal synchronizing system
JP3571218B2 (en) Synchronous operation system
JPS6352089A (en) Time synchronizing system for network
JPS6363238A (en) Timing device for network system
JP2560141B2 (en) Data compensation method in asynchronous data transfer
JPH05161181A (en) Time synchronization system
JPS616953A (en) Timer correcting system
US20240089021A1 (en) System and methods for network data processing
JPH04121691A (en) Remote time setting method
JPS61142831A (en) Time division multiplexer
SU1078421A2 (en) Data exchange device
JPH04275611A (en) Information processing system
JP2827284B2 (en) Network time adjustment method
CN117544266A (en) Error compensation method for enhancing time synchronization port
JP2643832B2 (en) Propagation delay measurement method
JPH0472837A (en) Data transmission delay adjustment system
JPH0435934B2 (en)
JPH02288750A (en) Inter-node time matching system
JPH0758999B2 (en) How to match clocks in communication network systems