JP4543836B2 - Time synchronization method for data processing system - Google Patents

Time synchronization method for data processing system Download PDF

Info

Publication number
JP4543836B2
JP4543836B2 JP2004255039A JP2004255039A JP4543836B2 JP 4543836 B2 JP4543836 B2 JP 4543836B2 JP 2004255039 A JP2004255039 A JP 2004255039A JP 2004255039 A JP2004255039 A JP 2004255039A JP 4543836 B2 JP4543836 B2 JP 4543836B2
Authority
JP
Japan
Prior art keywords
time
server
unit
gps
internal clock
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2004255039A
Other languages
Japanese (ja)
Other versions
JP2006071441A (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.)
Meidensha Corp
Original Assignee
Meidensha 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 Meidensha Corp filed Critical Meidensha Corp
Priority to JP2004255039A priority Critical patent/JP4543836B2/en
Publication of JP2006071441A publication Critical patent/JP2006071441A/en
Application granted granted Critical
Publication of JP4543836B2 publication Critical patent/JP4543836B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、マスタになるサーバとスレーブになる多数のユニットとの間をネットワーク接続したマスタ・スレーブ方式のデータ処理システムにおいて、各ユニット間の時刻を同期させる時刻同期方法に関する。   The present invention relates to a time synchronization method for synchronizing time between units in a master / slave data processing system in which a master server and a number of slave units are network-connected.

近年、ディジタルリレーは、イーサネット(登録商標)などのネットワークの普及に伴い、各地に分散配置される複数の計測制御ユニットと中央の監視制御ユニット間の情報伝送にネットワークを利用するネットワーク化が進んでいる。イーサネットでは長距離伝送も可能なことから、広範囲かつ多数のディジタルリレーのネットワーク化が可能である。   In recent years, with the spread of networks such as Ethernet (registered trademark), digital relays have been networked using information transmission between a plurality of measurement control units distributed in various places and a central monitoring control unit. Yes. Since long distance transmission is possible with Ethernet, a wide range of digital relays can be networked.

配電系統などの電力系統に複数のディジタルリレー(ユニット)を設置してその場所での電圧/電流を計測し、これら計測情報から電力系統に発生する事象を解析する場合、そのネットワーク内に1つまたは複数のサーバを設け、複数のユニットからデータを収集し解析するのが一般的である。   When a plurality of digital relays (units) are installed in a power system such as a power distribution system, voltage / current at that location is measured, and an event occurring in the power system is analyzed from these measurement information, one in the network Or it is common to provide a plurality of servers and collect and analyze data from a plurality of units.

ユニットから収集するデータが時系列的かつ相関性のあるものであれば、各ユニット間では時刻情報を同期させる必要があり、それを可能とするため、図6に示すように、マスタ1と各スレーブ2A〜2X間はイーサネットで接続され、マスタ・スレーブ方式によってデータ通信を行うシステムにおいて、マスタにもつ親時計装置1Aの時刻情報を各スレーブに伝送しておく時刻同期方法が提案されている(例えば、特許文献1参照)。   If the data collected from the units is time-series and correlated, it is necessary to synchronize the time information between the units. To enable this, as shown in FIG. In a system in which the slaves 2A to 2X are connected by Ethernet and perform data communication by the master / slave method, a time synchronization method is proposed in which time information of the master clock device 1A held by the master is transmitted to each slave ( For example, see Patent Document 1).

また、マスタ・スレーブ方式で同期時刻を任意の時刻に切り替える方式も提案されている(例えば、特許文献2参照)。   In addition, a method of switching the synchronization time to an arbitrary time by the master / slave method has been proposed (for example, see Patent Document 2).

他の時刻同期方法としては、GPS(Global Positioning System)を利用するものがある(例えば、特許文献3参照)。この特許文献3では、図7に示すように、GPS受信機3で時刻情報を受信し、これを時刻分配器4で合成した時刻同期信号を各端末装置5A〜5Nに光伝送系を通して分配し、各端末装置間に時刻同期を得る方式であり、時刻情報の受信と時刻同期信号の生成を一カ所の装置が担当する。
特開2000−224766号公報 特開2001−305256号公報 特開2001−221874号公報
Another time synchronization method uses a GPS (Global Positioning System) (see, for example, Patent Document 3). In this patent document 3, as shown in FIG. 7, the time information received by the GPS receiver 3 and synthesized by the time distributor 4 is distributed to the terminal devices 5A to 5N through the optical transmission system. In this method, time synchronization is obtained between the terminal devices, and one device is in charge of receiving time information and generating a time synchronization signal.
JP 2000-224766 A JP 2001-305256 A JP 2001-221874 A

前記のように、ディジタルリレーシステム等では、複数のユニットが計測した時系列データをサーバに収集し、そのデータの相関性を含めた解析をする場合、各ユニット間の時刻が同期している必要がある。   As described above, in a digital relay system or the like, when time series data measured by a plurality of units is collected in a server and analysis including the correlation of the data is performed, the time between the units needs to be synchronized. There is.

この時刻同期には、特許文献3ではGPSを利用するが、GPSは悪環境への設置や悪天候の影響などにより、時刻同期に必要な衛星からの電波を捕捉できなくなる可能性があり、この場合には時刻同期機能が失われてしまう。   In this time synchronization, GPS is used in Patent Document 3, but GPS may not be able to capture radio waves from a satellite necessary for time synchronization due to the installation in a bad environment or the influence of bad weather. Will lose the time synchronization function.

GPSによる時刻同期機能を喪失した場合、特許文献1のように、マスタがもつ親時計情報を各スレーブにネットワーク配信する方式に切り替えることが考えられる。しかし、この方式では、主にマスタが時刻同期のためのデータ処理(同期時刻を求めるためのデータ演算と通信)を行うため、多数のスレーブに対する個別の時刻同期処理にはマスタの負荷を高めてしまう。   When the time synchronization function by GPS is lost, it is conceivable to switch to a method of distributing the master clock information possessed by the master to each slave as in Patent Document 1. However, in this method, since the master mainly performs data processing for time synchronization (data calculation and communication for obtaining the synchronization time), the load on the master is increased for individual time synchronization processing for a large number of slaves. End up.

本発明の目的は、上記の課題を解決したデータ処理システムの時刻同期方法を提供することにある。   An object of the present invention is to provide a time synchronization method of a data processing system that solves the above problems.

本発明は、前記の課題を解決するため、サーバおよび各ユニットはそれぞれGPSからの時刻情報を取得して時刻同期を可能としておき、ユニットのみがGPSによる時刻同期が不能になったときはサーバがGPSから得る時刻情報を基にサーバとのネットワーク通信で時刻同期を得るようにし、さらにサーバもGPSから時刻情報をえられない場合にはサーバの内部時計の時刻情報を全ユニットに一斉同報することで時刻同期を得るようにしたもので、以下の方法を特徴とする。   In the present invention, in order to solve the above-mentioned problem, the server and each unit acquire time information from GPS to enable time synchronization, and when only the unit becomes unable to perform time synchronization by GPS, the server Time synchronization is obtained by network communication with the server based on the time information obtained from the GPS, and if the server cannot obtain the time information from the GPS, the time information of the internal clock of the server is broadcast to all units simultaneously. Thus, time synchronization is obtained, and the following method is characterized.

(1)マスタになるサーバとスレーブになる多数のユニットとの間をネットワーク接続したマスタ・スレーブ方式のデータ処理システムにおける各ユニット間の時刻を同期させる時刻同期方法であって、
前記サーバと各ユニットは、通常時にはGPSからの時刻情報を個々に受信し、この時刻情報をそれぞれの内部時計に設定してサーバおよびユニット間の時刻同期を得ておき、
前記各ユニットは、GPSからの時刻情報取得が不能になったときに、一定周期で前記サーバに対し「時刻送信要求」をネットワーク経由で送信し、そのときの内部時計の時刻(t11)を保存しておき、
前記サーバは、ユニットから「時刻送信要求」を受け付けた時刻(t21)とサーバ自身の現在時刻(t22)を当該ユニットに対してネットワーク経由で送信し、
前記ユニットは、サーバから時刻(t21)と(t22)を受信したときの時刻(t12)を取得し、ユニットとサーバそれぞれの理論上の中心時刻(t13)と(t23)を算出し、時刻(t13)と(t23)の差分(t13−t23)を時刻のずれとして算出し、この時刻のずれでユニット自身の内部時計を補正し、
前記サーバは、前記ユニットから前記「時刻送信要求」を受け付け、GPSからの時刻情報取得が不能の状態にあるとき、サーバ自身の現在時刻を取得し、この現在時刻を全ユニットに一斉同報で送信し、
前記各ユニットは、前記サーバから前記一斉同報で受信した現在時刻にユニット自身の内部時計を設定することを特徴とする。
(1) A time synchronization method for synchronizing the time between units in a master / slave type data processing system in which a master server and a number of slave units are network-connected,
The server and each unit normally receive time information from GPS individually, set this time information in each internal clock to obtain time synchronization between the server and the unit,
When the time information cannot be obtained from the GPS, each unit transmits a “time transmission request” to the server at a fixed cycle via the network, and stores the time (t11) of the internal clock at that time. Aside,
The server transmits the time (t21) at which the “time transmission request” is received from the unit and the current time (t22) of the server itself to the unit via the network,
The unit obtains the time (t12) when the times (t21) and (t22) are received from the server, calculates the theoretical central times (t13) and (t23) of the unit and the server, and calculates the time ( The difference (t13-t23) between t13) and (t23) is calculated as a time lag, and the unit's own internal clock is corrected with this time lag .
The server receives the “time transmission request” from the unit, acquires the current time of the server itself when the time information acquisition from the GPS is impossible, and broadcasts the current time to all the units simultaneously. Send
Each unit sets its own internal clock at the current time received by the broadcast from the server .

(2)マスタになるサーバとスレーブになる多数のユニットとの間をネットワーク接続したマスタ・スレーブ方式のデータ処理システムにおける各ユニット間の時刻を同期させる時刻同期方法であって、
前記サーバと各ユニットは、通常時にはGPSからの時刻情報を個々に受信し、この時刻情報をそれぞれの内部時計に設定してサーバおよびユニット間の時刻同期を得ておき、
前記各ユニットは、GPSからの時刻情報取得が不能になったときに、一定周期で前記サーバに対し「時刻送信要求」をネットワーク経由で送信し、そのときの内部時計の時刻(t11)を保存しておき、
前記サーバは、ユニットから「時刻送信要求」を受け付けたとき、サーバ自身の現在時刻(t23)を当該ユニットに対してネットワーク経由で送信し、
前記ユニットは、送信した時刻(t11)とサーバから現在時刻を受信したときの時刻(t12)とから理論上の中心時刻(t13)までの時間差(d1)を算出し、サーバの現在時刻(t23)に時間差(d1)を加算してユニット自身の内部時計を補正し、
前記サーバは、前記ユニットから前記「時刻送信要求」を受け付け、GPSからの時刻情報取得が不能の状態にあるとき、サーバ自身の現在時刻を取得し、この現在時刻を全ユニットに一斉同報で送信し、
前記各ユニットは、前記サーバから前記一斉同報で受信した現在時刻にユニット自身の内部時計を設定することを特徴とする。
(2) A time synchronization method for synchronizing the time between units in a master / slave type data processing system in which a master server and a number of slave units are network-connected,
The server and each unit normally receive time information from GPS individually, set this time information in each internal clock to obtain time synchronization between the server and the unit,
When the time information cannot be obtained from the GPS, each unit transmits a “time transmission request” to the server at a fixed cycle via the network, and stores the time (t11) of the internal clock at that time. Aside,
When the server receives a “time transmission request” from the unit, the server transmits the current time (t23) of the server itself to the unit via the network,
The unit calculates a time difference (d1) from the transmitted time (t11) and the time (t12) when the current time is received from the server to the theoretical central time (t13), and the current time (t23) of the server ) To add the time difference (d1) to correct the unit's own internal clock ,
The server receives the “time transmission request” from the unit, acquires the current time of the server itself when the time information cannot be acquired from the GPS, and broadcasts the current time to all the units simultaneously. Send
Each unit sets its own internal clock at the current time received from the server by the simultaneous broadcast .

以上のとおり、本発明によれば、サーバおよび各ユニットはそれぞれGPSからの時刻情報を取得して時刻同期を可能としておき、ユニットのみがGPSによる時刻同期が不能になったときはサーバがGPSから得る時刻情報を基にサーバとのネットワーク通信で時刻同期を得るようにし、さらにサーバもGPSから時刻情報をえられない場合にはサーバの内部時計の時刻情報を全ユニットに一斉同報することで時刻同期を得るようにしたため、何らかの影響によりGPSでの時刻同期が不能になった場合に、ユニットとサーバ間のネットワーク通信により時刻同期を得ることができる。しかも、サーバにおける時刻同期処理は、ユニットからの時刻送信要求の受信に対してサーバ自身の現在時刻などのみを当該ユニットに送信すればよく、時刻同期処理の大部分がユニット側で行うことになり、サーバの負担を軽減することができる。   As described above, according to the present invention, the server and each unit acquire time information from GPS to enable time synchronization, and when only the unit becomes unable to perform time synchronization by GPS, the server Based on the obtained time information, time synchronization is obtained by network communication with the server, and when the server cannot obtain the time information from GPS, the time information of the internal clock of the server is broadcast to all units simultaneously. Since time synchronization is obtained, when time synchronization by GPS becomes impossible due to some influence, time synchronization can be obtained by network communication between the unit and the server. Moreover, the time synchronization processing in the server only needs to transmit the current time of the server itself to the unit in response to the reception of the time transmission request from the unit, and most of the time synchronization processing is performed on the unit side. , The burden on the server can be reduced.

(実施形態1)
本実施形態を実現するためのシステム構成としては、図6のマスタ・スレーブ方式において、マスタ1としてのサーバおよび各スレーブ2A〜2XとしてのユニットにそれぞれGPS受信機を設け、サーバおよび各ユニットは、通常時にはGPSからの時刻情報を個々に受信し、この時刻情報を基にしてユニット間の時刻同期を可能としておき、この状態で、マスタはGPSからの時刻情報取得が可能であるが、ユニットがGPSからの時刻情報取得が不能になったときにサーバとユニットとのイーサネット通信により時刻同期機能を確保する。
(Embodiment 1)
As a system configuration for realizing the present embodiment, in the master-slave system of FIG. 6, a GPS receiver is provided in each of the server as the master 1 and the units as the slaves 2 </ b> A to 2 </ b> X. Normally, time information from GPS is received individually, and time synchronization between units is made possible based on this time information. In this state, the master can acquire time information from GPS. When the time information acquisition from GPS becomes impossible, the time synchronization function is secured by Ethernet communication between the server and the unit.

図1はサーバと各スレーブの協動処理による時刻同期のフローチャートを示し、サーバと各ユニットにおける時刻同期のための時刻関係を図2に示す。これらを参照して時刻同期方法を以下に詳細に説明する。   FIG. 1 shows a flowchart of time synchronization by cooperative processing between a server and each slave, and FIG. 2 shows a time relationship for time synchronization between the server and each unit. The time synchronization method will be described in detail below with reference to these.

各ユニットは、GPSを利用した時刻同期が可能であると判定したとき(S1)、GPSから受信した時刻を内部時計として設定し、ユニット間の時刻同期を確保する(S2)。   When each unit determines that time synchronization using GPS is possible (S1), it sets the time received from GPS as an internal clock and ensures time synchronization between units (S2).

各ユニットは、GPSを利用した時刻同期が不能となったとき、一定周期でサーバに対し「時刻送信要求」をイーサネット経由で送信し、そのときの内部時計の時刻(t11)を保存しておく(S3)。   When the time synchronization using GPS becomes impossible, each unit transmits a “time transmission request” to the server at regular intervals via the Ethernet, and stores the time (t11) of the internal clock at that time. (S3).

サーバは、「時刻送信要求」を受け付けた時刻(t21)を保存後、サーバ自身の現在時刻を取得し、当該ユニットへ返送するときの時刻を(t22)として保存し、時刻(t21)と(t22)をユニットに対して送信する(S4)。   After saving the time (t21) when the “time transmission request” is received, the server acquires the current time of the server itself, stores the time when returning to the unit as (t22), and stores the time (t21) and ( t22) is transmitted to the unit (S4).

ユニットでは、サーバから現在時刻を受信したときの時刻(t12)を取得して保存し(S5)、次いで図2に示す演算式に従い、ユニット、サーバそれぞれの理論上の中心時刻(t13)と(t23)を算出する(S6、S7)。   In the unit, the time (t12) when the current time is received from the server is acquired and stored (S5), and then the theoretical center time (t13) and ( t23) is calculated (S6, S7).

ユニットでは、時刻(t13)と(t23)の差分がユニット・サーバ間の理論上の中心時刻のずれ(t13−t23)として算出し(S8)、この時刻のずれでユニット自身の内部時計を補正して時刻同期を得る(S9)。   In the unit, the difference between the times (t13) and (t23) is calculated as the theoretical center time difference (t13-t23) between the unit and server (S8), and the internal clock of the unit itself is corrected by this time difference. Thus, time synchronization is obtained (S9).

したがって、ユニットがGPSによる時刻同期が不能になった場合、当該ユニットはGPSによる時刻情報取得が可能なサーバとのイーサネット通信によって、GPSによる時刻同期を得ることができる。しかも、サーバにおける時刻同期処理は、ユニットからの時刻送信要求を受信したときの時刻t21とサーバ自身の現在時刻t22を当該ユニットに送信し、時刻同期処理の大部分はユニット側で行うことになり、サーバの負担を軽減することができる。   Therefore, when the unit becomes unable to synchronize time with GPS, the unit can obtain time synchronization with GPS through Ethernet communication with a server capable of acquiring time information with GPS. In addition, the time synchronization processing in the server transmits the time t21 when the time transmission request from the unit is received and the current time t22 of the server itself to the unit, and most of the time synchronization processing is performed on the unit side. , The burden on the server can be reduced.

(実施形態2)
本実施形態は、実施形態1と同様に、サーバおよび各ユニットは、通常時にはGPSからの時刻情報を個々に受信し、この時刻情報を基にしてユニット間の時刻同期を可能としておき、この状態で、マスタはGPSからの時刻情報取得が可能であるが、ユニットがGPSからの時刻情報取得が不能になったときにサーバとユニットとのイーサネット通信により時刻同期機能を確保する。
(Embodiment 2)
In the present embodiment, as in the first embodiment, the server and each unit normally receive time information from the GPS at normal times, and the time synchronization between the units is made possible based on this time information. The master can acquire the time information from the GPS, but when the unit becomes unable to acquire the time information from the GPS, the time synchronization function is secured by Ethernet communication between the server and the unit.

図3はサーバと各スレーブの協動処理による時刻同期のフローチャートを示し、サーバと各ユニットにおける時刻同期のための時刻関係を図4に示す。これらを参照して時刻同期方法を以下に詳細に説明する。   FIG. 3 is a flowchart of time synchronization by cooperative processing between the server and each slave, and FIG. 4 shows the time relationship for time synchronization between the server and each unit. The time synchronization method will be described in detail below with reference to these.

実施形態1と同様に、各ユニットは、GPSを利用した時刻同期が可能であると判定したとき(S11)、GPSから受信した時刻を内部時計として設定し、ユニット間の時刻同期を確保し(S12)、GPSを利用した時刻同期が不能となったとき、一定周期でサーバに対し「時刻送信要求」をイーサネット経由で送信し、そのときの内部時計の時刻(t11)を保存しておく(S13)。   As in the first embodiment, when each unit determines that time synchronization using GPS is possible (S11), the time received from GPS is set as an internal clock to ensure time synchronization between units ( S12) When time synchronization using GPS becomes impossible, a “time transmission request” is transmitted to the server via the Ethernet at a constant cycle, and the time (t11) of the internal clock at that time is stored (S12). S13).

サーバは、ユニットから「時刻送信要求」を受け付けたとき、サーバ自身の現在時刻(t23)をユニットに対し返送する(S14)。   When the server receives a “time transmission request” from the unit, the server returns the current time (t23) of the server itself to the unit (S14).

ユニットは、サーバから現在時刻を受信したときの時刻(t12)を取得して保存する(S15)。次いで、図4に示す演算式に従い、その理論上の中心時刻(t13)までの時間差(d1)を算出する(S16)。最後に、理論上の中心時刻(t13)とサーバの現在時刻が一致しているという仮定の下に、ユニット側では受信したサーバの現在時刻(t23)に時間差(d1)を加算して自ユニットの現在時刻を設定しなおし、時刻同期を得る(S17)。   The unit acquires and stores the time (t12) when the current time is received from the server (S15). Next, a time difference (d1) to the theoretical center time (t13) is calculated according to the arithmetic expression shown in FIG. 4 (S16). Finally, on the assumption that the theoretical center time (t13) and the current time of the server are the same, the unit adds the time difference (d1) to the received current time (t23) of the server. Is reset to obtain time synchronization (S17).

したがって、本実施形態においても、ユニットがGPSによる時刻同期が不能になった場合、当該ユニットはGPSによる時刻情報取得が可能なサーバとのイーサネット通信によって、GPSによる時刻同期を得ることができる。また、サーバにおける時刻同期処理は、ユニットからの時刻送信要求を受信したときにサーバ自身の現在時刻t22を当該ユニットに送信するのみで済み、サーバの負担を軽減することができる。   Therefore, also in this embodiment, when a unit becomes unable to synchronize time by GPS, the unit can obtain time synchronization by GPS by Ethernet communication with a server capable of acquiring time information by GPS. Further, the time synchronization processing in the server only needs to transmit the current time t22 of the server itself to the unit when the time transmission request from the unit is received, and the load on the server can be reduced.

(実施形態3)
本実施形態は、実施形態1、2と同様に、サーバおよび各ユニットは、GPSからの時刻情報を個々に受信し、この時刻情報を基にしてユニット間の時刻同期を可能とする。本実施形態が実施形態1、2と異なるのは、マスタおよびユニットが共にGPSからの時刻情報取得が不能になったときにサーバとユニットとのイーサネット通信により時刻同期機能を確保する点にある。
(Embodiment 3)
In the present embodiment, as in the first and second embodiments, the server and each unit individually receive time information from the GPS, and time synchronization between the units is enabled based on this time information. This embodiment is different from the first and second embodiments in that the time synchronization function is secured by Ethernet communication between the server and the unit when the master and the unit cannot acquire time information from the GPS.

図5はサーバと各スレーブの協動処理による時刻同期のフローチャートを示す。実施形態1または2と同様に、ユニットがGPSからの時刻情報取得が不能な状態になり、サーバに時刻送信要求を送信し、これをサーバが受信したとき、サーバは自身がGPSからの時刻情報取得が可能か否かをチェックする(S21)。このチェックで、サーバは自身がGPSからの時刻情報取得が可能であれば、サーバはGPSから取得した時刻情報を当該ユニットに送信する。この情報を送信されたユニットがGPSからの時刻情報を内部時計として設定し、GPS時刻情報による時刻同期を得る(S22)。   FIG. 5 shows a flowchart of time synchronization by the cooperative processing of the server and each slave. As in the first or second embodiment, when the unit becomes unable to acquire time information from the GPS, transmits a time transmission request to the server, and the server receives the time transmission request, the server itself receives the time information from the GPS. It is checked whether or not acquisition is possible (S21). In this check, if the server can acquire time information from GPS, the server transmits the time information acquired from GPS to the unit. The unit to which this information is transmitted sets time information from GPS as an internal clock, and obtains time synchronization based on the GPS time information (S22).

一方、ユニットとサーバが共にGPSでの時刻同期が不能になった場合(S21)、サーバは自身の現在時刻(t23)をイーサネットの一斉同報で全ユニットに対して送信する(S23)。この時刻(t23)を受信した各ユニットは、自身の現在時刻を時刻(t23)に再設定し(S24)、各ユニット間では、サーバの時刻を基準とした時刻同期を得る。   On the other hand, when both the unit and the server become unable to synchronize with the GPS (S21), the server transmits its current time (t23) to all the units in a simultaneous broadcast of Ethernet (S23). Each unit that has received this time (t23) resets its current time to the time (t23) (S24), and obtains time synchronization based on the server time between the units.

したがって、本実施形態は、実施形態1、2と同様に、ユニットがGPSにより時刻情報を取得不能になった場合にはサーバとのイーサネット通信によって時刻同期を得ることができる。これに加えて、本実施形態では、ユニットとサーバが共にGPSからの時刻情報取得が不能になった場合にもサーバの時計による時刻同期機能を確保できる。この場合も、サーバの処理は自身がGPS同期不能か否かのチェックと、自身の現在時刻を全ユニットへ一斉同報で送信するのみで済み、その負担を軽減できる。   Accordingly, in the present embodiment, as in the first and second embodiments, when the unit becomes unable to acquire time information by GPS, time synchronization can be obtained by Ethernet communication with the server. In addition to this, in the present embodiment, the time synchronization function by the clock of the server can be secured even when the unit and the server both cannot acquire the time information from the GPS. In this case as well, the server process only needs to check whether or not GPS synchronization is possible, and to send its current time to all units in a simultaneous broadcast, and the burden can be reduced.

本発明の実施形態1を示す時刻同期のフローチャート。The time synchronization flowchart which shows Embodiment 1 of this invention. 実施形態1の時刻関係。The time relationship of Embodiment 1. FIG. 本発明の実施形態2を示す時刻同期のフローチャート。The flowchart of the time synchronization which shows Embodiment 2 of this invention. 実施形態2の時刻関係。The time relationship of Embodiment 2. 本発明の実施形態3を示す時刻同期のフローチャート。The flowchart of the time synchronization which shows Embodiment 3 of this invention. マスタ・スレーブ方式のシステム構成図。The system block diagram of a master / slave system. GPS方式のシステム構成図。The system block diagram of a GPS system.

符号の説明Explanation of symbols

1 マスタ
1A 内部時計
2A、2X スレーブ
3 GPS受信機
4 時刻配分器
5A、5B、5N 端末装置
DESCRIPTION OF SYMBOLS 1 Master 1A Internal clock 2A, 2X Slave 3 GPS receiver 4 Time distribution device 5A, 5B, 5N Terminal device

Claims (2)

マスタになるサーバとスレーブになる多数のユニットとの間をネットワーク接続したマスタ・スレーブ方式のデータ処理システムにおける各ユニット間の時刻を同期させる時刻同期方法であって、
前記サーバと各ユニットは、通常時にはGPSからの時刻情報を個々に受信し、この時刻情報をそれぞれの内部時計に設定してサーバおよびユニット間の時刻同期を得ておき、
前記各ユニットは、GPSからの時刻情報取得が不能になったときに、一定周期で前記サーバに対し「時刻送信要求」をネットワーク経由で送信し、そのときの内部時計の時刻(t11)を保存しておき、
前記サーバは、ユニットから「時刻送信要求」を受け付けた時刻(t21)とサーバ自身の現在時刻(t22)を当該ユニットに対してネットワーク経由で送信し、
前記ユニットは、サーバから時刻(t21)と(t22)を受信したときの時刻(t12)を取得し、ユニットとサーバそれぞれの理論上の中心時刻(t13)と(t23)を算出し、時刻(t13)と(t23)の差分(t13−t23)を時刻のずれとして算出し、この時刻のずれでユニット自身の内部時計を補正し、
前記サーバは、前記ユニットから前記「時刻送信要求」を受け付け、GPSからの時刻情報取得が不能の状態にあるとき、サーバ自身の現在時刻を取得し、この現在時刻を全ユニットに一斉同報で送信し、
前記各ユニットは、前記サーバから前記一斉同報で受信した現在時刻にユニット自身の内部時計を設定することを特徴とするデータ処理システムの時刻同期方法。
A time synchronization method for synchronizing the time between units in a master / slave data processing system in which a master server and a number of slave units are network-connected,
The server and each unit normally receive time information from GPS individually, set this time information in each internal clock to obtain time synchronization between the server and the unit,
When the time information cannot be obtained from the GPS, each unit transmits a “time transmission request” to the server at a fixed cycle via the network, and stores the time (t11) of the internal clock at that time. Aside,
The server transmits the time (t21) at which the “time transmission request” is received from the unit and the current time (t22) of the server itself to the unit via the network,
The unit obtains the time (t12) when the times (t21) and (t22) are received from the server, calculates the theoretical central times (t13) and (t23) of the unit and the server, and calculates the time ( The difference (t13-t23) between t13) and (t23) is calculated as a time lag, and the unit's own internal clock is corrected with this time lag .
The server receives the “time transmission request” from the unit, acquires the current time of the server itself when the time information acquisition from the GPS is impossible, and broadcasts the current time to all the units simultaneously. Send
A time synchronization method for a data processing system, wherein each unit sets its own internal clock at the current time received from the server by the simultaneous broadcast .
マスタになるサーバとスレーブになる多数のユニットとの間をネットワーク接続したマスタ・スレーブ方式のデータ処理システムにおける各ユニット間の時刻を同期させる時刻同期方法であって、
前記サーバと各ユニットは、通常時にはGPSからの時刻情報を個々に受信し、この時刻情報をそれぞれの内部時計に設定してサーバおよびユニット間の時刻同期を得ておき、
前記各ユニットは、GPSからの時刻情報取得が不能になったときに、一定周期で前記サーバに対し「時刻送信要求」をネットワーク経由で送信し、そのときの内部時計の時刻(t11)を保存しておき、
前記サーバは、ユニットから「時刻送信要求」を受け付けたとき、サーバ自身の現在時刻(t23)を当該ユニットに対してネットワーク経由で送信し、
前記ユニットは、送信した時刻(t11)とサーバから現在時刻を受信したときの時刻(t12)とから理論上の中心時刻(t13)までの時間差(d1)を算出し、サーバの現在時刻(t23)に時間差(d1)を加算してユニット自身の内部時計を補正し、
前記サーバは、前記ユニットから前記「時刻送信要求」を受け付け、GPSからの時刻情報取得が不能の状態にあるとき、サーバ自身の現在時刻を取得し、この現在時刻を全ユニットに一斉同報で送信し、
前記各ユニットは、前記サーバから前記一斉同報で受信した現在時刻にユニット自身の内部時計を設定することを特徴とするデータ処理システムの時刻同期方法。
A time synchronization method for synchronizing the time between units in a master / slave data processing system in which a master server and a number of slave units are network-connected,
The server and each unit normally receive time information from GPS individually, set this time information in each internal clock to obtain time synchronization between the server and the unit,
When the time information cannot be obtained from the GPS, each unit transmits a “time transmission request” to the server at a fixed cycle via the network, and stores the time (t11) of the internal clock at that time. Aside,
When the server receives a “time transmission request” from the unit, the server transmits the current time (t23) of the server itself to the unit via the network,
The unit calculates a time difference (d1) from the transmitted time (t11) and the time (t12) when the current time is received from the server to the theoretical central time (t13), and the current time (t23) of the server ) To add the time difference (d1) to correct the unit's own internal clock ,
The server receives the “time transmission request” from the unit, acquires the current time of the server itself when the time information cannot be acquired from the GPS, and broadcasts the current time to all the units simultaneously. Send
A time synchronization method for a data processing system, wherein each unit sets its own internal clock at the current time received from the server by the simultaneous broadcast .
JP2004255039A 2004-09-02 2004-09-02 Time synchronization method for data processing system Active JP4543836B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004255039A JP4543836B2 (en) 2004-09-02 2004-09-02 Time synchronization method for data processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004255039A JP4543836B2 (en) 2004-09-02 2004-09-02 Time synchronization method for data processing system

Publications (2)

Publication Number Publication Date
JP2006071441A JP2006071441A (en) 2006-03-16
JP4543836B2 true JP4543836B2 (en) 2010-09-15

Family

ID=36152238

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004255039A Active JP4543836B2 (en) 2004-09-02 2004-09-02 Time synchronization method for data processing system

Country Status (1)

Country Link
JP (1) JP4543836B2 (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4985519B2 (en) * 2008-03-28 2012-07-25 富士通株式会社 Information processing apparatus, information processing method, and information processing program
JP2010044670A (en) * 2008-08-18 2010-02-25 Nec Infrontia Corp Information providing system
JP5332421B2 (en) * 2008-09-05 2013-11-06 横河電機株式会社 Measurement recorder system
JP5211987B2 (en) * 2008-09-26 2013-06-12 ブラザー工業株式会社 Terminal device and time adjustment method thereof
JP5159642B2 (en) * 2009-01-06 2013-03-06 日立オートモティブシステムズ株式会社 Information terminal, expiration date management system, program and method
KR101382992B1 (en) 2012-11-14 2014-04-09 숭실대학교산학협력단 Master device for calculating synchronized actuation time of multiple slave devices and method for controlling the same
JP6310758B2 (en) * 2014-04-16 2018-04-11 株式会社日立製作所 Time synchronization apparatus and method
JP6301752B2 (en) * 2014-06-25 2018-03-28 株式会社日立製作所 Information service display system and time synchronization method
JP7089372B2 (en) * 2018-02-15 2022-06-22 キヤノン株式会社 Radiography equipment, control methods for radiography equipment, radiography systems, and programs
CN110932839B (en) 2018-09-20 2023-09-22 中兴通讯股份有限公司 Network card, time synchronization method, equipment and computer storage medium
KR102380137B1 (en) * 2020-05-25 2022-03-29 한전케이디엔주식회사 Digital electric substation time synchronization system and method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001111623A (en) * 1999-10-14 2001-04-20 Nippon Telegr & Teleph Corp <Ntt> Distributed time synchronization method and distributed time synchronization system utilizing this method
JP2003108539A (en) * 2001-10-02 2003-04-11 Hitachi Kokusai Electric Inc Time synchronizing method between server and client
JP2003298630A (en) * 2002-04-01 2003-10-17 Mitsubishi Electric Corp Time synchronization method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE10210711A1 (en) * 2002-03-12 2003-11-13 Deutsche Telekom Ag Method for time synchronization of at least two measuring computers cooperating with each other via a telecommunication network, such as internet, intranet or the like

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001111623A (en) * 1999-10-14 2001-04-20 Nippon Telegr & Teleph Corp <Ntt> Distributed time synchronization method and distributed time synchronization system utilizing this method
JP2003108539A (en) * 2001-10-02 2003-04-11 Hitachi Kokusai Electric Inc Time synchronizing method between server and client
JP2003298630A (en) * 2002-04-01 2003-10-17 Mitsubishi Electric Corp Time synchronization method

Also Published As

Publication number Publication date
JP2006071441A (en) 2006-03-16

Similar Documents

Publication Publication Date Title
US10462614B2 (en) Group scheduled sensor data acquisition in a wireless sensor system
JP6183016B2 (en) Sensor information processing apparatus, sensor information processing method, and sensor information processing program
US8953645B2 (en) Communication system, communication apparatus and time synchronization method
JP5166203B2 (en) Sensor network system, sensor node, and base station
JP4543836B2 (en) Time synchronization method for data processing system
US20120250704A1 (en) Network node, time synchronization method and network system
US20090086764A1 (en) System and method for time synchronization on network
JP5804086B2 (en) Node device and time synchronization method
WO2009019067A1 (en) Estimating a time offset between stationary clocks
JP2008182385A (en) Mobile communication system, time server and intra-station synchronization method used for the same
EP3541123A1 (en) Wireless device, wireless device processing method, and program
JP5643240B2 (en) Time setting method, communication device, and time setting program
JP6674400B2 (en) Time synchronization system and time synchronization method
JP5081874B2 (en) Data collection system
JP4868212B2 (en) Time information communication system
KR102328672B1 (en) Method And System for Providing Hybrid Synchronization
JPWO2009123202A1 (en) Monitoring system
WO2015033532A1 (en) Time synchronization system
KR20150027606A (en) Apparatus and method for coverting data rate
JP5379772B2 (en) Communication system and superposition apparatus
JP2019039703A (en) Time information acquisition device and method
JP5316957B2 (en) Wireless base station, base station system, and wireless communication method
KR102328671B1 (en) Method And System for Providing Wireless Synchronization
JP6548274B2 (en) Wireless device and timing synchronization method
JPWO2016147375A1 (en) Process bus application protection system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070821

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100125

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100202

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100316

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100621

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130709

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4543836

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150