JP7243695B2 - Information processing device, information processing system, and information processing method - Google Patents

Information processing device, information processing system, and information processing method Download PDF

Info

Publication number
JP7243695B2
JP7243695B2 JP2020142149A JP2020142149A JP7243695B2 JP 7243695 B2 JP7243695 B2 JP 7243695B2 JP 2020142149 A JP2020142149 A JP 2020142149A JP 2020142149 A JP2020142149 A JP 2020142149A JP 7243695 B2 JP7243695 B2 JP 7243695B2
Authority
JP
Japan
Prior art keywords
time
counter
packet
difference
information processing
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
JP2020142149A
Other languages
Japanese (ja)
Other versions
JP2022037810A (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.)
Yokogawa Electric Corp
Original Assignee
Yokogawa Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yokogawa Electric Corp filed Critical Yokogawa Electric Corp
Priority to JP2020142149A priority Critical patent/JP7243695B2/en
Priority to KR1020210091859A priority patent/KR102523687B1/en
Priority to CN202110850650.5A priority patent/CN114116579A/en
Publication of JP2022037810A publication Critical patent/JP2022037810A/en
Application granted granted Critical
Publication of JP7243695B2 publication Critical patent/JP7243695B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/04Generating or distributing clock signals or signals derived directly therefrom
    • G06F1/14Time supervision arrangements, e.g. real time clock
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4247Bus transfer protocol, e.g. handshake; Synchronisation on a daisy chain bus
    • G06F13/4256Bus transfer protocol, e.g. handshake; Synchronisation on a daisy chain bus using a clocked protocol
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/04Generating or distributing clock signals or signals derived directly therefrom
    • G06F1/12Synchronisation of different clock signals provided by a plurality of clock generators
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Description

本開示は、情報処理装置、情報処理システム、及び情報処理方法に関する。 The present disclosure relates to an information processing device, an information processing system, and an information processing method.

PLC(Programmable Logic Controller)、温調計、及びレコーダーなどの制御機器では、機器間において時刻同期が行われている。 In control devices such as PLCs (Programmable Logic Controllers), temperature controllers, and recorders, time synchronization is performed between devices.

特許文献1には機器間における時刻同期に関する技術が記載されている。 Patent Literature 1 describes a technology related to time synchronization between devices.

特開2019-101480号公報Japanese Patent Application Laid-Open No. 2019-101480

しかし、従来の構成では、時刻の同期精度を高めようとするほど、機器間において頻繁にパケットを送受信する必要があった。また、必ずしも時刻同期の精度を高めることができなかった。 However, in the conventional configuration, it was necessary to transmit and receive packets between devices more frequently as the accuracy of time synchronization was to be improved. In addition, it has not always been possible to improve the accuracy of time synchronization.

本開示は、機器間におけるパケットの送受信を抑えつつ、時刻同期の精度を高めることが可能な情報処理装置、情報処理システム、及び情報処理方法を提供することを目的とする。 An object of the present disclosure is to provide an information processing device, an information processing system, and an information processing method capable of improving the accuracy of time synchronization while suppressing transmission and reception of packets between devices.

幾つかの実施形態に係る情報処理装置は、一定の時間周期でカウンタ値をカウントアップすることにより時刻を測定する第1のカウンタと、通信手段とを備えた情報処理装置であって、前記通信手段は、基準となる時刻を測定する第2のカウンタを備えた外部装置が送信した時刻保持用パケットを受信し、前記通信手段は、前記第2のカウンタにより測定された、前記外部装置が前記時刻保持用パケットを送信した送信時刻を、前記外部装置から受信し、前記第1のカウンタにより測定された前記時刻保持用パケットを受信した受信時刻と、前記送信時刻との差分を計算する計算手段と、前記差分により、前記第1のカウンタのカウンタ値を補正する第1の補正手段と、前記差分に基づき、前記第1のカウンタのカウンタ値を補正するタイミングを決定する決定手段と、前記決定されたタイミングにおいて、前記第1のカウンタのカウンタ値を補正する第2の補正手段とを備える。このように、情報処理装置は、時刻保持用パケットの送受信時刻の差分に基づいて定められる補正タイミングにおいて、第1のカウンタのカウンタ値を自動的に補正するため、機器間におけるパケットの送受信を抑えつつ、時刻同期の精度を高めることが可能となる。 An information processing apparatus according to some embodiments is an information processing apparatus comprising: a first counter that measures time by counting up a counter value in a constant time period; means for receiving a time keeping packet transmitted by an external device having a second counter for measuring reference time; Calculation means for receiving, from the external device, the transmission time at which the time retention packet was transmitted, and calculating the difference between the reception time at which the time retention packet was received, which is measured by the first counter, and the transmission time. a first correcting means for correcting the counter value of the first counter based on the difference; a determining means for determining timing for correcting the counter value of the first counter based on the difference; and second correction means for correcting the counter value of the first counter at the determined timing. As described above, the information processing apparatus automatically corrects the counter value of the first counter at the correction timing determined based on the difference between the transmission and reception times of the time keeping packets, thereby suppressing transmission and reception of packets between devices. In addition, it is possible to improve the accuracy of time synchronization.

一実施形態において、前記通信手段は、前記外部装置から、ドリフト補正を行う補正周期を受信し、前記通信手段は、前記補正周期の時間間隔で、前記外部装置から前記時刻保持用パケット及び当該時刻保持用パケットの送信時刻を受信し、前記計算手段は、前記外部装置から前記時刻保持用パケット及び当該時刻保持用パケットの送信時刻を受信したことに応じて、前記差分を計算し、前記決定手段は、前記計算手段が前記差分を計算したことに応じて、前記補正周期を前記差分に対応する前記第1のカウンタのカウント数で除した値により定められる時間周期を前記タイミングとして決定し、前記第2の補正手段は、前記決定されたタイミングにおいて、前記第1のカウンタのカウンタ値を1だけ補正する。このように、情報処理装置は、ドリフト補正を行う補正周期を時刻保持用パケットの送受信時刻の差分に対応する第1のカウンタのカウント数で除した値により定められる時間周期において、第1のカウンタのカウンタ値を自動的に1だけ補正する。そのため、情報処理装置は、外部装置と頻繁に通信することなく、第1のカウンタの分解能に応じた高精度な時刻同期を行うことが可能となる。 In one embodiment, the communication means receives a correction cycle for drift correction from the external device, and the communication means receives the time retention packet and the time from the external device at intervals of the correction cycle. receiving the transmission time of the retention packet, and calculating the difference in response to receiving the time retention packet and the transmission time of the time retention packet from the external device; determines, as the timing, a time period defined by a value obtained by dividing the correction period by the count number of the first counter corresponding to the difference, in response to the calculation of the difference by the calculation means; The second correction means corrects the counter value of the first counter by 1 at the determined timing. As described above, the information processing apparatus performs drift correction in a time period determined by dividing the correction period for drift correction by the number of counts of the first counter corresponding to the difference between the transmission and reception times of the time keeping packets. counter value is automatically corrected by 1. Therefore, the information processing device can perform highly accurate time synchronization according to the resolution of the first counter without frequent communication with the external device.

一実施形態において、前記通信手段は、前記計算手段により計算された前記差分が予め定められた値を下回ったことに応じて、第2の時刻保持用パケットを前記外部装置へ送信し、前記通信手段は、前記第2のカウンタにより測定された、前記外部装置が前記第2の時刻保持用パケットを受信した受信時刻を、前記外部装置から受信し、前記計算手段は、前記第1のカウンタにより測定された前記第2の時刻保持用パケットを送信した送信時刻と、前記外部装置が前記第2の時刻保持用パケットを受信した受信時刻との差分である第2の差分を計算し、前記補正手段は、前記第2の差分に基づき、前記第1のカウンタのカウンタ値を補正する。例えば、前記補正手段は、前記第2の差分の1/2の値により前記第1のカウンタのカウンタ値を補正してもよい。このように、情報処理装置は、第2の時刻保持用パケットの送受信時刻の差分に基づき第1のカウンタのカウンタ値を補正するため、外部装置との間の通信遅延に起因する時間的ずれを補正することが可能となる。 In one embodiment, the communication means transmits a second time retention packet to the external device in response to the difference calculated by the calculation means falling below a predetermined value, and the communication means for receiving, from the external device, the reception time at which the external device received the second time keeping packet, measured by the second counter; calculating a second difference, which is a difference between the transmission time when the measured second time keeping packet is transmitted and the reception time when the second time keeping packet is received by the external device, and correcting the second difference; The means corrects the counter value of the first counter based on the second difference. For example, the correcting means may correct the counter value of the first counter by half the second difference. In this manner, the information processing apparatus corrects the counter value of the first counter based on the difference between the transmission and reception times of the second time keeping packet, so that the time lag caused by the communication delay with the external device is corrected. Correction is possible.

幾つかの実施形態に係る情報処理システムは、一定の時間周期でカウンタ値をカウントアップすることにより時刻を測定する第1のカウンタと、第1の通信手段とを備えた第1の情報処理装置と、基準となる時刻を測定する第2のカウンタと、第2の通信手段とを備えた第2の情報処理装置とを備える。前記第2の情報処理装置の前記第2の通信手段は、前記第1の情報処理装置へ時刻保持用パケットを送信し、前記第1の情報処理装置の前記第1の通信手段は、前記第2の情報処理装置が送信した前記時刻保持用パケットを受信し、前記第2の情報処理装置の前記第2の通信手段は、前記第2のカウンタにより測定された、前記時刻保持用パケットを送信した送信時刻を前記第1の情報処理装置へ送信し、前記第1の情報処理装置の前記第1の通信手段は、前記第2の情報処理装置が前記時刻保持用パケットを送信した送信時刻を受信し、前記第1の情報処理装置は、前記第1のカウンタにより測定された前記時刻保持用パケットを受信した受信時刻と、前記送信時刻との差分を計算する計算手段と、前記差分に基づき、前記第1のカウンタのカウンタ値を補正するタイミングを決定する決定手段と、前記決定されたタイミングにおいて、前記第1のカウンタのカウンタ値を補正する補正手段とを備える。このように、第1の情報処理装置は、時刻保持用パケットの送受信時刻の差分に基づいて定められる補正タイミングにおいて、第1のカウンタのカウンタ値を自動的に補正するため、機器間におけるパケットの送受信を抑えつつ、時刻同期の精度を高めることが可能となる。 An information processing system according to some embodiments is a first information processing device comprising a first counter that measures time by counting up a counter value in a constant time period, and first communication means. and a second information processing apparatus including a second counter for measuring reference time and a second communication means. The second communication means of the second information processing device transmits a time keeping packet to the first information processing device, and the first communication means of the first information processing device transmits the first receiving the time retention packet transmitted by the second information processing device, and the second communication means of the second information processing device transmits the time retention packet measured by the second counter; and the first communication means of the first information processing device transmits the transmission time at which the second information processing device transmitted the time retention packet to the first information processing device. and the first information processing apparatus includes: calculation means for calculating a difference between the reception time of the time retention packet measured by the first counter and the transmission time; and based on the difference, and determining means for determining timing for correcting the counter value of the first counter; and correcting means for correcting the counter value of the first counter at the determined timing. As described above, the first information processing apparatus automatically corrects the counter value of the first counter at the correction timing determined based on the difference between the transmission and reception times of the time keeping packets. It is possible to improve the accuracy of time synchronization while suppressing transmission and reception.

幾つかの実施形態に係る情報処理方法は、一定の時間周期でカウンタ値をカウントアップすることにより時刻を測定する第1のカウンタと、通信手段とを備えた情報処理装置の情報処理方法であって、前記通信手段が、基準となる時刻を測定する第2のカウンタを備えた外部装置が送信した時刻保持用パケットを受信し、前記通信手段が、前記第2のカウンタにより測定された、前記外部装置が前記時刻保持用パケットを送信した送信時刻を、前記外部装置から受信し、計算手段が、前記第1のカウンタにより測定された前記時刻保持用パケットを受信した受信時刻と、前記送信時刻との差分を計算し、第1の補正手段が、前記差分により、前記第1のカウンタのカウンタ値を補正し、決定手段が、前記差分に基づき、前記第1のカウンタのカウンタ値を補正するタイミングを決定し、第2の補正手段が、前記決定されたタイミングにおいて、前記第1のカウンタのカウンタ値を補正する。このように、情報処理装置は、時刻保持用パケットの送受信時刻の差分に基づいて定められる補正タイミングにおいて、第1のカウンタのカウンタ値を自動的に補正するため、機器間におけるパケットの送受信を抑えつつ、時刻同期の精度を高めることが可能となる。 An information processing method according to some embodiments is an information processing method for an information processing apparatus including a first counter for measuring time by counting up a counter value in a constant time cycle, and communication means. and the communication means receives a time-preserving packet transmitted by an external device having a second counter for measuring a reference time, and the communication means receives the time-preserving packet measured by the second counter. An external device receives from the external device a transmission time at which the time retention packet is transmitted, and a calculation means receives the time retention packet measured by the first counter and the transmission time. A first correcting means corrects the counter value of the first counter based on the difference, and a determining means corrects the counter value of the first counter based on the difference A timing is determined, and the second correction means corrects the counter value of the first counter at the determined timing. As described above, the information processing apparatus automatically corrects the counter value of the first counter at the correction timing determined based on the difference between the transmission and reception times of the time keeping packets, thereby suppressing transmission and reception of packets between devices. In addition, it is possible to improve the accuracy of time synchronization.

本開示によれば、機器間におけるパケットの送受信を抑えつつ、時刻同期の精度を高めることが可能な情報処理装置、情報処理システム、及び情報処理方法を提供することができる。 According to the present disclosure, it is possible to provide an information processing device, an information processing system, and an information processing method capable of improving the accuracy of time synchronization while suppressing transmission and reception of packets between devices.

本開示の一実施形態に係る時刻同期システムの構成例を示す図である。1 is a diagram illustrating a configuration example of a time synchronization system according to an embodiment of the present disclosure; FIG. 本開示の一実施形態に係る時刻同期システムの動作例を示す図である。It is a figure showing an example of operation of a time synchronous system concerning one embodiment of this indication. 比較例に係る時刻同期システムの構成を示す図である。It is a figure which shows the structure of the time synchronous system which concerns on a comparative example.

<比較例>
図3は、比較例に係る時刻同期システム9の構成を示す図である。図3の構成において、時刻同期システム9は、機器A80及び機器B90を備える。機器A80は、時刻用カウンタ81、送信時刻保持部82、受信時刻保持部83、パケット送信部84、及びパケット受信部85を備える。機器B90は、時刻用カウンタ91、送信時刻保持部92、受信時刻保持部93、パケット送信部94、パケット受信部95、及び差分計算部96を備える。機器A80のパケット送信部84から機器B90へ送信されたパケット71は、機器B90のパケット受信部95において受信される。機器B90のパケット送信部94から機器A80へ送信されたパケット72は、機器A80のパケット受信部85において受信される。機器A80の時刻用カウンタ81は基準となるカウンタであり、時刻同期システム9において、機器B90の時刻用カウンタ91を機器A80の時刻用カウンタ81に合わせて同期させる処理が行われる。
<Comparative example>
FIG. 3 is a diagram showing the configuration of a time synchronization system 9 according to a comparative example. In the configuration of FIG. 3, the time synchronization system 9 includes device A80 and device B90. The device A 80 includes a time counter 81 , a transmission time holding section 82 , a reception time holding section 83 , a packet transmission section 84 and a packet reception section 85 . The device B 90 includes a time counter 91 , a transmission time holding section 92 , a reception time holding section 93 , a packet transmission section 94 , a packet reception section 95 and a difference calculation section 96 . The packet 71 transmitted from the packet transmission unit 84 of the device A80 to the device B90 is received by the packet reception unit 95 of the device B90. The packet 72 transmitted from the packet transmission unit 94 of the device B90 to the device A80 is received by the packet reception unit 85 of the device A80. The time counter 81 of the device A80 is a reference counter, and in the time synchronization system 9, a process of synchronizing the time counter 91 of the device B90 with the time counter 81 of the device A80 is performed.

機器A80の時刻用カウンタ81及び機器B90の時刻用カウンタ91はいずれも、独立した発振源を元にしたカウンタであり、非同期に動作している。これらの時刻用カウンタ81及び時刻用カウンタ91を同期させる場合、例えば、IEEE1588のように、機器間においてパケットを送受信して時刻の差分を補正することができる。このような時刻同期の処理手順は、次の動作191~動作198のとおりである。 Both the time counter 81 of the device A 80 and the time counter 91 of the device B 90 are counters based on independent oscillation sources and operate asynchronously. When synchronizing the time counter 81 and the time counter 91, packets can be transmitted and received between devices to correct the time difference, as in IEEE1588, for example. The processing procedure for such time synchronization is as described in the following operations 191-198.

(動作191)
機器A80は、パケット送信部84から機器B90へ、時刻保持用パケット71を送信する。機器B90は、パケット受信部95において、時刻保持用パケット71を受信する。
(action 191)
The device A80 transmits the time retention packet 71 from the packet transmission unit 84 to the device B90. The device B 90 receives the time keeping packet 71 in the packet receiving section 95 .

(動作192)
機器A80は、パケット送信部84から時刻保持用パケット71を送信した時刻であるパケット送信時刻を送信時刻保持部82に保持する。機器B90は、パケット受信部95において時刻保持用パケット71を受信した時刻であるパケット受信時刻を受信時刻保持部93に保持する。
(action 192)
The device A 80 holds the packet transmission time, which is the time at which the time holding packet 71 is transmitted from the packet transmission section 84 , in the transmission time holding section 82 . The device B 90 holds the packet reception time, which is the time when the packet reception unit 95 receives the time holding packet 71 , in the reception time holding unit 93 .

(動作193)
機器A80は、動作192において送信時刻保持部82に保持したパケット送信時刻を示すパケット71を、パケット送信部84から機器B90へ送信する。機器B90は、パケット受信部95において、パケット送信時刻を示すパケット71を受信する。
(action 193)
The device A 80 transmits the packet 71 indicating the packet transmission time held in the transmission time holding unit 82 in operation 192 from the packet transmission unit 84 to the device B 90 . The device B 90 receives the packet 71 indicating the packet transmission time in the packet receiving section 95 .

(動作194)
機器B90の差分計算部96は、動作192において受信時刻保持部93に保持したパケット受信時刻と、動作193において機器A80から受信したパケット71により示されるパケット送信時刻との差分を計算する。差分計算部96は、計算した差分により、時刻用カウンタ91を補正する。
(action 194)
The difference calculation unit 96 of the device B 90 calculates the difference between the packet reception time held in the reception time holding unit 93 in operation 192 and the packet transmission time indicated by the packet 71 received from the device A 80 in operation 193 . The difference calculator 96 corrects the time counter 91 based on the calculated difference.

(動作195)
機器B90は、パケット送信部94から機器A80へ、時刻保持用パケット72を送信する。機器A80は、パケット受信部85において、時刻保持用パケット72を受信する。
(action 195)
The device B 90 transmits the time retention packet 72 from the packet transmission unit 94 to the device A 80 . The device A 80 receives the time keeping packet 72 in the packet receiving section 85 .

(動作196)
機器A80は、パケット受信部85において時刻保持用パケット72を受信した時刻であるパケット受信時刻を受信時刻保持部83に保持する。機器B90は、パケット送信部94から時刻保持用パケット72を送信した時刻であるパケット送信時刻を送信時刻保持部92に保持する。
(action 196)
The device A 80 holds the packet reception time, which is the time when the packet reception unit 85 receives the time holding packet 72 , in the reception time holding unit 83 . The device B 90 holds the packet transmission time, which is the time at which the time holding packet 72 is transmitted from the packet transmission section 94 , in the transmission time holding section 92 .

(動作197)
機器A80は、動作196において受信時刻保持部83に保持したパケット受信時刻を示すパケット71を、パケット送信部84から機器B90へ送信する。機器B90は、パケット受信部95において、パケット送信時刻を示すパケット71を受信する。
(action 197)
The device A 80 transmits the packet 71 indicating the packet reception time held in the reception time holding unit 83 in operation 196 from the packet transmission unit 84 to the device B 90 . The device B 90 receives the packet 71 indicating the packet transmission time in the packet receiving section 95 .

(動作198)
機器B90の差分計算部96は、動作196において送信時刻保持部92に保持したパケット送信時刻と、動作197において機器A80から受信したパケット71により示されるパケット受信時刻との差分を計算する。差分計算部96は、計算した差分により機器間の通信による遅延時間を計算し、その遅延時間により時刻用カウンタ91を補正する。
(action 198)
The difference calculation unit 96 of the device B 90 calculates the difference between the packet transmission time held in the transmission time holding unit 92 in operation 196 and the packet reception time indicated by the packet 71 received from the device A 80 in operation 197 . The difference calculator 96 calculates the delay time due to the communication between the devices based on the calculated difference, and corrects the time counter 91 based on the delay time.

上述の処理による時刻同期には、次のような問題がある。 The time synchronization by the above process has the following problems.

まず、機器A80の時刻用カウンタ81及び機器B90の時刻用カウンタ91においてはいずれも、発振源の周波数偏差によるドリフトが発生する。そのため、時刻用カウンタ81及び時刻用カウンタ91は、定期的に補正する必要がある。補正する頻度は、時刻精度を上げるほど高める必要がある。例えば、時刻用カウンタの精度が50ppm(parts per million)の場合、1秒間に50μsの誤差が生じる。この時刻用カウンタを1μsの精度に維持するためには1秒間に最低50回の補正を行わなければならない。したがって、精度を高めるには頻繁な補正が必要であり、そのためにはパケットの送受信の頻度(回数)を増加させる必要がある。 First, in both the time counter 81 of the device A80 and the time counter 91 of the device B90, drift occurs due to the frequency deviation of the oscillation source. Therefore, the time counter 81 and the time counter 91 need to be corrected periodically. The frequency of correction needs to be increased as the time accuracy is increased. For example, if the accuracy of the time counter is 50 ppm (parts per million), an error of 50 μs occurs per second. In order to maintain this time counter with an accuracy of 1 μs, it must be corrected at least 50 times per second. Therefore, frequent correction is required to improve accuracy, and for that purpose, it is necessary to increase the frequency (number of times) of packet transmission/reception.

また、動作194において機器B90の時刻用カウンタ91のずれを補正した後、動作198において機器間の通信による遅延時間を補正するまでの間にもドリフトによる時刻用カウンタのずれが発生する。したがって、上記の手法では、時刻同期を必ずしも高精度で行うことができない。 Further, the deviation of the time counter 91 of the device B 90 due to drift occurs during the period from the correction of the deviation of the time counter 91 of the device B 90 in the operation 194 to the correction of the delay time due to the communication between the devices in the operation 198 . Therefore, with the above method, time synchronization cannot necessarily be performed with high accuracy.

<本開示の実施形態>
本開示は、補正の頻度を増やすことなく時刻同期の精度を高めるものである。以下、本開示の一実施形態が、図面を参照して説明される。各図面中、同一又は相当する部分には、同一符号を付している。本実施形態の説明において、同一又は相当する部分については、説明を適宜省略又は簡略化する。
<Embodiment of the Present Disclosure>
The present disclosure increases the accuracy of time synchronization without increasing the frequency of correction. An embodiment of the present disclosure is described below with reference to the drawings. In each drawing, the same reference numerals are given to the same or corresponding parts. In the description of this embodiment, the description of the same or corresponding parts will be omitted or simplified as appropriate.

(時刻同期システムの構成)
図1は、本開示の一実施形態に係る時刻同期システム1の構成例を示す図である。図1の例では、情報処理システムとしての時刻同期システム1は、外部装置又は第2の情報処理装置としての機器A10及び第1の情報処理装置としての機器B20を備える。機器A10は、第2のカウンタとしての時刻用カウンタ11、送信時刻保持部12、受信時刻保持部13、パケット送信部14、及びパケット受信部15を備える。機器A10のパケット送信部14及びパケット受信部15は、第1の通信手段として機能する。機器B20は、第1のカウンタとしての時刻用カウンタ21、送信時刻保持部22、受信時刻保持部23、パケット送信部24、パケット受信部25、差分計算部26、補正周期保持部27、及びドリフト補正部28を備える。機器B20のパケット送信部24及びパケット受信部25は、第2の通信手段として機能する。
(Configuration of time synchronization system)
FIG. 1 is a diagram showing a configuration example of a time synchronization system 1 according to an embodiment of the present disclosure. In the example of FIG. 1, the time synchronization system 1 as an information processing system includes a device A10 as an external device or a second information processing device and a device B20 as a first information processing device. The device A 10 includes a time counter 11 as a second counter, a transmission time holding section 12, a reception time holding section 13, a packet transmission section 14, and a packet reception section 15. FIG. The packet transmitter 14 and the packet receiver 15 of the device A10 function as first communication means. The device B 20 includes a time counter 21 as a first counter, a transmission time storage unit 22, a reception time storage unit 23, a packet transmission unit 24, a packet reception unit 25, a difference calculation unit 26, a correction cycle storage unit 27, and a drift A correction unit 28 is provided. The packet transmitter 24 and the packet receiver 25 of the device B20 function as second communication means.

機器A10の時刻用カウンタ11は、基準となる時刻を測定するカウンタである。時刻同期システム1では、機器B20の時刻用カウンタ21を機器A10の時刻用カウンタ11に合わせて同期させる処理が行われる。時刻用カウンタ11は、予め定められた分解能(例えば、1ns)に対応する一定の時間周期でカウンタ値をカウントアップすることで時刻を測定する。 The time counter 11 of the device A 10 is a counter that measures the reference time. In the time synchronization system 1, a process of synchronizing the time counter 21 of the device B20 with the time counter 11 of the device A10 is performed. The time counter 11 measures time by counting up the counter value in a constant time period corresponding to a predetermined resolution (for example, 1 ns).

送信時刻保持部12は、機器A10が機器B20へ時刻保持用パケットを送信した時刻を保持する保持部である。受信時刻保持部13は、機器A10が機器B20から時刻保持用パケットを受信した時刻を保持する保持部である。送信時刻保持部12及び受信時刻保持部13は、機器A10の時刻用カウンタ11により測定された時刻を保持する。パケット送信部14は、機器B20へパケットを送信する送信部である。パケット受信部15は、機器B20からパケットを受信する受信部である。 The transmission time holding unit 12 is a holding unit that holds the time when the device A10 transmitted the time holding packet to the device B20. The reception time holding unit 13 is a holding unit that holds the time when the device A10 received the time holding packet from the device B20. The transmission time holding unit 12 and the reception time holding unit 13 hold the time measured by the time counter 11 of the device A10. The packet transmission unit 14 is a transmission unit that transmits packets to the device B20. The packet receiver 15 is a receiver that receives packets from the device B20.

機器B20の時刻用カウンタ21は、機器A10の時刻用カウンタ11に同期させられるカウンタである。時刻用カウンタ21は、予め定められた分解能(例えば、1ns)に対応する一定の時間周期でカウンタ値をカウントアップすることで時刻を測定する。 The time counter 21 of the device B20 is a counter synchronized with the time counter 11 of the device A10. The time counter 21 measures the time by counting up the counter value in a constant time period corresponding to a predetermined resolution (for example, 1 ns).

送信時刻保持部22は、機器B20が機器A10へ時刻保持用パケットを送信した時刻を保持する保持部である。受信時刻保持部23は、機器B20が機器A10から時刻保持用パケットを受信した時刻を保持する保持部である。送信時刻保持部22及び受信時刻保持部23は、機器B20の時刻用カウンタ21により測定された時刻を保持する。パケット送信部24は、機器A10へパケットを送信する送信部である。パケット受信部25は、機器A10からパケットを受信する受信部である。 The transmission time holding unit 22 is a holding unit that holds the time when the device B20 transmitted the time holding packet to the device A10. The reception time holding unit 23 is a holding unit that holds the time when the device B20 received the time holding packet from the device A10. The transmission time holding unit 22 and the reception time holding unit 23 hold the time measured by the time counter 21 of the device B20. The packet transmission unit 24 is a transmission unit that transmits packets to the device A10. The packet receiver 25 is a receiver that receives packets from the device A10.

計算手段及び第1の補正手段としての差分計算部26は、機器A10が送信した時刻保持用パケットの、機器A10において測定された送信時刻と機器B10において測定された受信時刻との差分等を計算する。補正周期保持部27は、後述するドリフト補正周期を保持する保持部である。決定手段及び第2の補正手段としてのドリフト補正部28は、ドリフト補正周期と、機器A10が送信した時刻保持用パケットの、機器A10において測定された送信時刻及び機器B10において測定された受信時刻の差分と、に基づきドリフト補正タイミングを計算する。ドリフト補正部28は、ドリフト補正タイミングにおいて、時刻用カウンタ21のカウンタ値を1カウント補正するドリフト補正を行う。 A difference calculation unit 26 as a calculation means and a first correction means calculates the difference between the transmission time measured by the device A10 and the reception time measured by the device B10 of the time retention packet transmitted by the device A10. do. The correction cycle holding unit 27 is a holding unit that holds a drift correction cycle, which will be described later. A drift correction unit 28 as a determination means and a second correction means determines the drift correction cycle and the transmission time measured in the device A10 and the reception time measured in the device B10 of the time retention packet transmitted by the device A10. Calculate the drift correction timing based on the difference. The drift correction unit 28 performs drift correction by correcting the counter value of the time counter 21 by one count at the drift correction timing.

機器A10のパケット送信部14から機器B20へ送信された各パケット31は、機器B20のパケット受信部25において受信される。機器B20のパケット送信部24から機器A10へ送信された各パケット32は、機器A10のパケット受信部15において受信される。 Each packet 31 transmitted from the packet transmission unit 14 of the device A10 to the device B20 is received by the packet reception unit 25 of the device B20. Each packet 32 transmitted from the packet transmission unit 24 of the device B20 to the device A10 is received by the packet reception unit 15 of the device A10.

(時刻同期システムの処理手順)
上記のような構成において、機器A10のパケット送信部14は、機器B20へ時刻保持用パケットを送信する。機器B20のパケット受信部25は、機器A10が送信した時刻保持用パケットを受信する。さらに、機器A10のパケット送信部14は、時刻用カウンタ11により測定された、時刻保持用パケットを送信した送信時刻を機器B20へ送信する。機器B20のパケット受信部25は、機器A10が時刻保持用パケットを送信した送信時刻を受信する。機器B20の差分計算部26は、時刻用カウンタ21により測定された時刻保持用パケットを受信した受信時刻と、機器A10から受信した送信時刻との差分を計算する。差分計算部26は、この差分により時刻用カウンタ21のカウンタ値を補正する。機器B20のドリフト補正部28は、計算した差分に基づき、時刻用カウンタ21のカウンタ値を補正するタイミングを決定する。ドリフト補正部28は、時刻用カウンタ21のカウンタ値を補正する。このように、機器B20は、時刻保持用パケットの送受信時刻の差分に基づいて定められる補正タイミングにおいて、時刻用カウンタ21のカウンタ値を自動的に補正する。したがって、機器B20によれば、機器間におけるパケットの送受信を抑えつつ、時刻同期の精度を高めることが可能となる。
(Processing procedure of the time synchronization system)
In the configuration as described above, the packet transmission unit 14 of the device A10 transmits the time keeping packet to the device B20. The packet receiving unit 25 of the device B20 receives the time retention packet transmitted by the device A10. Furthermore, the packet transmission unit 14 of the device A 10 transmits the transmission time at which the time retention packet was transmitted, which is measured by the time counter 11 to the device B 20 . The packet receiving unit 25 of the device B20 receives the transmission time when the device A10 transmitted the time keeping packet. The difference calculator 26 of the device B 20 calculates the difference between the reception time of the time retention packet measured by the time counter 21 and the transmission time received from the device A 10 . The difference calculator 26 corrects the counter value of the time counter 21 based on this difference. The drift correction unit 28 of the device B20 determines the timing for correcting the counter value of the time counter 21 based on the calculated difference. The drift corrector 28 corrects the counter value of the time counter 21 . In this way, the device B20 automatically corrects the counter value of the time counter 21 at the correction timing determined based on the difference between the transmission and reception times of the time keeping packets. Therefore, according to the device B20, it is possible to improve the accuracy of time synchronization while suppressing transmission and reception of packets between devices.

時刻同期システム1における時刻同期の処理手順は、次の動作110~動作140のとおりである。本実施形態に係る情報処理方法は、時刻同期システム1に含まれる各装置が次の処理を行うことにより実現される。 The processing procedure for time synchronization in the time synchronization system 1 is as follows: operation 110 to operation 140. FIG. The information processing method according to this embodiment is realized by each device included in the time synchronization system 1 performing the following processes.

○動作110
機器A10は、パケット送信部14から機器B20へ、ドリフト補正周期を示す補正周期パケット31を送信する。ドリフト補正周期とは、後述の動作121~動作127(「ドリフト補正」という。)を行う時間的間隔(補正周期)である。機器B20は、パケット受信部25において補正周期パケット31を受信し、補正周期パケット31により示されるドリフト補正周期を補正周期保持部27に保持する。
○ Action 110
Device A 10 transmits a correction cycle packet 31 indicating a drift correction cycle from packet transmission section 14 to device B 20 . The drift correction cycle is a time interval (correction cycle) at which operations 121 to 127 (referred to as "drift correction") are performed. The device B 20 receives the correction period packet 31 in the packet receiving section 25 and holds the drift correction period indicated by the correction period packet 31 in the correction period holding section 27 .

○動作120
機器A10及び機器B20は、補正周期パケット31により示されるドリフト補正周期の時間間隔で、次の動作121~動作127を繰り返し実行する。これらの動作のうち、動作121~動作124は、比較例の動作191~動作194と同様である。さらに、機器B20は、動作121~動作127と並行して、動作128を実行する。
○ Action 120
The device A 10 and the device B 20 repeatedly perform the following operations 121 to 127 at time intervals of the drift correction cycle indicated by the correction cycle packet 31 . Among these operations, the operations 121 to 124 are the same as the operations 191 to 194 of the comparative example. Further, the device B20 executes an operation 128 in parallel with the operations 121 to 127. FIG.

(動作121)
機器A10は、パケット送信部14から機器B20へ、時刻保持用パケット31を送信する。機器B20は、パケット受信部25において、時刻保持用パケット31を受信する。
(Action 121)
The device A 10 transmits the time retention packet 31 from the packet transmission unit 14 to the device B 20 . The device B 20 receives the time keeping packet 31 in the packet receiving section 25 .

(動作122)
機器A10は、動作121においてパケット送信部14から時刻保持用パケット31を送信した時刻であるパケット送信時刻を送信時刻保持部12に保持する。パケット送信時刻は、時刻用カウンタ11のカウンタ値により測定される。具体的には、例えば、パケット送信部14が、機器B20への時刻保持用パケット31を送信したことを送信時刻保持部12に通知する。これに応じて、送信時刻保持部12は、時刻用カウンタ11から時刻を取得して、保持する。
(Action 122)
The device A 10 holds in the transmission time holding unit 12 the packet transmission time, which is the time when the time holding packet 31 is transmitted from the packet transmission unit 14 in operation 121 . The packet transmission time is measured by the counter value of the time counter 11 . Specifically, for example, the packet transmission unit 14 notifies the transmission time storage unit 12 that the time storage packet 31 has been transmitted to the device B20. In response to this, the transmission time holding unit 12 acquires the time from the time counter 11 and holds it.

機器B20は、パケット受信部25において時刻保持用パケット31を受信した時刻であるパケット受信時刻を受信時刻保持部23に保持する。パケット受信時刻は、時刻用カウンタ21のカウンタ値により測定される。具体的には、例えば、パケット受信部25が、機器A10からの時刻保持用パケット31を受信したことを受信時刻保持部23に通知する。これに応じて、受信時刻保持部23は、時刻用カウンタ21から時刻を取得して、保持する。 The device B 20 holds the packet reception time, which is the time when the packet reception unit 25 receives the time holding packet 31 , in the reception time holding unit 23 . The packet reception time is measured by the counter value of the time counter 21 . Specifically, for example, the packet receiving unit 25 notifies the reception time holding unit 23 that the time holding packet 31 has been received from the device A10. In response to this, the reception time holding unit 23 acquires the time from the time counter 21 and holds it.

(動作123)
機器A10は、動作122において送信時刻保持部12に保持したパケット送信時刻を示すパケット31を、パケット送信部14から機器B20へ送信する。機器B20は、パケット受信部25において、このパケット送信時刻を示すパケット31を受信する。
(Action 123)
The device A 10 transmits the packet 31 indicating the packet transmission time held in the transmission time holding unit 12 in operation 122 from the packet transmission unit 14 to the device B 20 . The device B 20 receives the packet 31 indicating this packet transmission time in the packet receiving section 25 .

(動作124)
機器B20の差分計算部26は、動作122において受信時刻保持部23に保持したパケット受信時刻と、動作123において機器A10から受信したパケット31により示されるパケット送信時刻との差分を計算する。差分計算部26は、計算した差分により、時刻用カウンタ21のカウンタ値を補正する。
(Action 124)
The difference calculation unit 26 of the device B 20 calculates the difference between the packet reception time held in the reception time holding unit 23 in operation 122 and the packet transmission time indicated by the packet 31 received from the device A 10 in operation 123 . The difference calculator 26 corrects the counter value of the time counter 21 based on the calculated difference.

(動作125)
機器B20のドリフト補正部28は、補正周期保持部27からドリフト補正周期を取得する。
(Action 125)
The drift correction unit 28 of the device B 20 acquires the drift correction cycle from the correction cycle holding unit 27. FIG.

(動作126)
機器B20のドリフト補正部28は、動作124により計算された差分を差分計算部26から取得する。ドリフト補正部28は、差分を取得するたびに、その累積値を計算する。累積値の初期値には0が設定されている。したがって、動作124により計算された差分を取得したのが初回の場合、累積値はその差分の値となる。
(action 126)
The drift correction unit 28 of the device B 20 acquires the difference calculated by operation 124 from the difference calculation unit 26 . The drift correction unit 28 calculates the cumulative value each time the difference is obtained. 0 is set as the initial value of the accumulated value. Therefore, if the difference calculated by operation 124 is obtained for the first time, the accumulated value is the value of that difference.

(動作127)
機器B20のドリフト補正部28は、動作125で取得したドリフト補正周期を、動作126で累積した差分に対応する時刻用カウンタ21のカウント数で除すことで、ドリフト補正タイミング(1カウント当たりの差分)を計算する。ドリフト補正タイミングは、機器A10の時刻用カウンタ11と機器B20の時刻用カウンタ21とが時刻用カウンタ21の1カウント分(例えば、1ns)ずれるのに要する時間に相当する。
(Action 127)
The drift correction unit 28 of the device B 20 divides the drift correction cycle obtained in operation 125 by the count number of the time counter 21 corresponding to the difference accumulated in operation 126, thereby obtaining the drift correction timing (difference per count ). The drift correction timing corresponds to the time required for the time counter 11 of the device A 10 and the time counter 21 of the device B 20 to deviate by one count (for example, 1 ns) of the time counter 21 .

(動作128)
動作121~動作127と並行して、機器B20のドリフト補正部28は、時刻用カウンタ21を、ドリフト補正タイミング毎に1カウントだけ補正する。累積した差分の値が大きければ大きいほど、ドリフト補正タイミングは短くなる。これにより、機器A10の時刻用カウンタ11と機器B20の時刻用カウンタ21との誤差はより大きく補正される。結果として、差分計算部26から取得する差分は、0に近いプラス又はマイナスの値となる。その結果、差分の累積値は時刻用カウンタ21の誤差と同じ値に近づくように補正され、最終的に0に収束する。
(Action 128)
In parallel with operations 121 to 127, the drift correction unit 28 of the device B20 corrects the time counter 21 by one count at each drift correction timing. The greater the value of the accumulated difference, the shorter the drift correction timing. As a result, the error between the time counter 11 of the device A10 and the time counter 21 of the device B20 is corrected to a greater extent. As a result, the difference obtained from the difference calculator 26 is a positive or negative value close to zero. As a result, the accumulated value of the difference is corrected so as to approach the same value as the error of the time counter 21, and finally converges to zero.

○動作130
機器B20は、ドリフト補正部28が差分計算部26から取得する差分が十分に0に近い値になってから、次の動作131~動作134を実行する。機器B20は、例えば、求められる精度に応じて予め定められた値(閾値)を取得した差分が下回るか否かを判定し、下回ると判定された場合に動作131~動作134を実行してもよい。これらの動作131~動作134は、比較例の動作195~動作198と同様である。
○ Action 130
The device B 20 executes the following operations 131 to 134 after the difference obtained by the drift correction unit 28 from the difference calculation unit 26 becomes sufficiently close to zero. For example, the device B20 determines whether or not the acquired difference is less than a predetermined value (threshold value) according to the required accuracy, and executes operations 131 to 134 if it is determined to be less than good. These operations 131 to 134 are similar to the operations 195 to 198 of the comparative example.

(動作131)
機器B20は、パケット送信部24から機器A10へ、時刻保持用パケット32を送信する。機器A10は、パケット受信部15において、時刻保持用パケット32を受信する。
(Action 131)
The device B20 transmits the time retention packet 32 from the packet transmission unit 24 to the device A10. The device A 10 receives the time keeping packet 32 in the packet receiving section 15 .

(動作132)
機器A10は、パケット受信部15において時刻保持用パケット32を受信した時刻であるパケット受信時刻を受信時刻保持部13に保持する。パケット受信時刻は、時刻用カウンタ11のカウンタ値により測定される。具体的には、例えば、パケット受信部15が、機器B20からの時刻保持用パケット32を受信したことを受信時刻保持部13に通知する。これに応じて、受信時刻保持部13は、時刻用カウンタ11から時刻を取得して、保持する。
(Action 132)
The device A 10 holds the packet reception time, which is the time when the packet reception unit 15 receives the time holding packet 32 , in the reception time holding unit 13 . The packet reception time is measured by the counter value of the time counter 11 . Specifically, for example, the packet reception unit 15 notifies the reception time holding unit 13 that the time holding packet 32 from the device B20 has been received. In response to this, the reception time holding unit 13 acquires the time from the time counter 11 and holds it.

機器B20は、パケット送信部24から時刻保持用パケット32を送信した時刻であるパケット送信時刻を送信時刻保持部22に保持する。パケット送信時刻は、時刻用カウンタ21のカウンタ値により測定される。具体的には、例えば、パケット送信部24が、機器A10への時刻保持用パケット31を送信したことを送信時刻保持部22に通知する。これに応じて、送信時刻保持部22は、時刻用カウンタ21から時刻を取得して、保持する。 The device B 20 holds the packet transmission time, which is the time at which the time holding packet 32 is transmitted from the packet transmission section 24 , in the transmission time holding section 22 . The packet transmission time is measured by the counter value of the time counter 21 . Specifically, for example, the packet transmission unit 24 notifies the transmission time storage unit 22 that the time storage packet 31 has been transmitted to the device A10. In response to this, the transmission time holding unit 22 acquires the time from the time counter 21 and holds it.

(動作133)
機器A10は、動作132において受信時刻保持部13に保持したパケット受信時刻を示すパケット31を、パケット送信部14から機器B20へ送信する。機器B20は、パケット受信部25において、パケット送信時刻を示すパケット31を受信する。
(Action 133)
The device A 10 transmits the packet 31 indicating the packet reception time held in the reception time holding unit 13 in operation 132 from the packet transmission unit 14 to the device B 20 . The device B 20 receives the packet 31 indicating the packet transmission time at the packet receiver 25 .

(動作134)
機器B20の差分計算部26は、動作132において送信時刻保持部22に保持したパケット送信時刻と、動作133において機器A10から受信したパケット31により示されるパケット受信時刻との差分を計算する。差分計算部26は、計算した差分により機器間の通信による遅延時間を計算し、その遅延時間により時刻用カウンタ21を補正する。機器A10におけるパケット受信時刻と機器B20におけるパケット送信時刻との差分は、機器A10と機器B20と間を通信が往復するための時間が含まれる。そこで、例えば、差分計算部26は、機器A10におけるパケット受信時刻と機器B20におけるパケット送信時刻との差分の1/2を遅延時間として計算してもよい。
(Action 134)
The difference calculation unit 26 of the device B 20 calculates the difference between the packet transmission time held in the transmission time holding unit 22 in operation 132 and the packet reception time indicated by the packet 31 received from the device A 10 in operation 133 . The difference calculation unit 26 calculates a delay time due to communication between devices based on the calculated difference, and corrects the time counter 21 based on the delay time. The difference between the packet reception time at the device A10 and the packet transmission time at the device B20 includes the time required for communication to make a round trip between the device A10 and the device B20. Therefore, for example, the difference calculation unit 26 may calculate 1/2 of the difference between the packet reception time at the device A10 and the packet transmission time at the device B20 as the delay time.

○動作140
機器B20は、上記の動作120を継続し、機器A10と時刻が同期された状態を維持する。
○ Action 140
The device B20 continues the operation 120 described above and maintains a state in which the time is synchronized with the device A10.

上記のように、機器B20のパケット受信部25は、機器A10から、ドリフト補正を行う補正周期を受信するとともに、この補正周期の時間間隔で、機器A10から時刻保持用パケット及び当該時刻保持用パケットの送信時刻を受信する。機器A10から時刻保持用パケット及び当該時刻保持用パケットの送信時刻を受信したことに応じて、機器B20の差分計算部26は、時刻用カウンタ21により測定された時刻保持用パケットの受信時刻と、機器A10から受信したその送信時刻との差分を計算する。ドリフト補正部28は、差分計算部26が差分を計算したことに応じて、ドリフト補正周期を差分に対応する時刻用カウンタ21のカウント数で除した値により定められる時間周期をドリフト補正のタイミングとして決定し、そのタイミングにおいて、時刻用カウンタ21のカウンタ値を1だけ補正する。このように、機器B20は、ドリフト補正を行う補正周期を時刻保持用パケットの送受信時刻の差分に対応する時刻用カウンタ21のカウント数で除した値により定められる時間周期において、時刻用カウンタ21のカウンタ値を自動的に1だけ補正する。そのため、機器B20は、機器A10と頻繁に通信することなく、時刻用カウンタ21の分解能に応じた高精度な時刻同期を行うことが可能となる。 As described above, the packet receiving unit 25 of the device B20 receives the correction cycle for drift correction from the device A10, and at the time interval of the correction cycle, the time retention packet and the time retention packet from the device A10. receive the transmission time of In response to receiving the time retention packet and the transmission time of the time retention packet from the device A 10, the difference calculator 26 of the device B 20 calculates the reception time of the time retention packet measured by the time counter 21, A difference from the transmission time received from the device A10 is calculated. When the difference calculation unit 26 calculates the difference, the drift correction unit 28 sets the time period determined by dividing the drift correction period by the count number of the time counter 21 corresponding to the difference as the drift correction timing. At that timing, the counter value of the time counter 21 is corrected by one. In this way, the device B 20 performs drift correction in a time period determined by dividing the correction period for drift correction by the number of counts of the time counter 21 corresponding to the difference between the transmission and reception times of the time retention packets. Automatically correct the counter value by 1. Therefore, the device B 20 can perform highly accurate time synchronization according to the resolution of the time counter 21 without frequent communication with the device A 10 .

また、機器B20のパケット送信部24は、差分計算部26により計算された時刻保持用パケットの受信時刻と機器A10から受信したその送信時刻との差分が予め定められた値を下回ったことに応じて、第2の時刻保持用パケットを機器A10へ送信する。機器B20のパケット受信部25は、機器A10の時刻用カウンタ11により測定された、機器A10が第2の時刻保持用パケットを受信した受信時刻を、機器A10から受信する。機器B20の差分計算部26は、時刻用カウンタ21により測定された第2の時刻保持用パケットを送信した送信時刻と、機器A10が第2の時刻保持用パケットを受信した受信時刻との差分である第2の差分を計算する。機器B20の差分計算部26は、第2の差分に基づき、時刻用カウンタ21のカウンタ値を補正する。例えば、差分計算部26は、第2の差分の1/2の値により時刻用カウンタ21のカウンタ値を補正してもよい。このように、機器B20は、第2の時刻保持用パケットの送受信時刻の差分に基づき時刻用カウンタ21のカウンタ値を補正するため、機器A10との間の通信遅延に起因する時間的ずれを補正することが可能となる。 Further, the packet transmission unit 24 of the device B20 responds to the fact that the difference between the reception time of the time retention packet calculated by the difference calculation unit 26 and the transmission time received from the device A10 has fallen below a predetermined value. Then, the second time keeping packet is transmitted to the device A10. The packet receiving unit 25 of the device B20 receives from the device A10 the reception time at which the device A10 received the second time keeping packet, which is measured by the time counter 11 of the device A10. The difference calculator 26 of the device B 20 calculates the difference between the transmission time when the second time keeping packet measured by the time counter 21 is transmitted and the reception time when the device A 10 receives the second time keeping packet. Compute some second difference. The difference calculator 26 of the device B20 corrects the counter value of the time counter 21 based on the second difference. For example, the difference calculation unit 26 may correct the counter value of the time counter 21 by half the value of the second difference. As described above, the device B20 corrects the counter value of the time counter 21 based on the difference between the transmission and reception times of the second time retention packet, and thus corrects the time shift caused by the communication delay with the device A10. It becomes possible to

(動作例)
本実施形態に係る時刻同期システム1の具体的な動作手順の例が、図2を参照して説明される。以下、一例として時刻はμs単位で示されるが、別の単位でもよい。
(Operation example)
An example of a specific operation procedure of the time synchronization system 1 according to this embodiment will be described with reference to FIG. Hereinafter, as an example, the time is shown in units of μs, but other units may be used.

○手順210
機器A10は、パケット送信部14から機器B20へ、ドリフト補正周期として1sを通知する補正周期パケット31を送信する(図2のS1)。機器B20は、パケット受信部25において補正周期パケット31を受信し、補正周期パケット31により示されるドリフト補正周期1sを補正周期保持部27に保持する(図2のS2)。
○Step 210
The device A 10 transmits a correction cycle packet 31 notifying 1 s as the drift correction cycle from the packet transmission unit 14 to the device B 20 (S1 in FIG. 2). The device B 20 receives the correction period packet 31 in the packet receiving section 25, and holds the drift correction period 1s indicated by the correction period packet 31 in the correction period holding section 27 (S2 in FIG. 2).

○手順220
機器A10及び機器B20は、ドリフト補正周期1sの間隔で、次の手順221~手順227を繰り返し実行する。機器B20は、手順221~手順227と並行して、手順228を実行する。
○Step 220
The device A10 and the device B20 repeatedly execute the following steps 221 to 227 at a drift correction period of 1 s. Device B 20 executes procedure 228 in parallel with procedures 221 to 227 .

(手順221)
機器A10は、パケット送信部14から機器B20へ、時刻保持用パケット31を送信する(図2のS3)。機器B20は、パケット受信部25において、時刻保持用パケット31を受信する。
(Step 221)
The device A 10 transmits the time retention packet 31 from the packet transmission unit 14 to the device B 20 (S3 in FIG. 2). The device B 20 receives the time keeping packet 31 in the packet receiving section 25 .

(手順222)
機器A10のパケット送信部14は、手順221において機器B20へ時刻保持用パケット31を送信したことを送信時刻保持部12に通知する。これに応じて、送信時刻保持部12は、図2のS4に示すように、時刻用カウンタ11から時刻301μsを取得して、これを保持する。
(Step 222)
The packet transmission unit 14 of the device A 10 notifies the transmission time storage unit 12 that the time storage packet 31 has been transmitted to the device B 20 in step 221 . In response to this, the transmission time holding unit 12 acquires the time 301 μs from the time counter 11 and holds it, as shown in S4 of FIG.

機器B20のパケット受信部25は、時刻保持用パケット31を受信すると、受信時刻保持部23にパケット受信を通知する。これに応じて、受信時刻保持部23は時刻用カウンタ21から時刻106μsを取得して、これを保持する(図2のS5)。 Upon receiving the time retention packet 31, the packet reception unit 25 of the device B20 notifies the reception time retention unit 23 of the packet reception. In response to this, the reception time holding unit 23 acquires the time 106 μs from the time counter 21 and holds it (S5 in FIG. 2).

(手順223)
機器A10は、手順222において送信時刻保持部12に保持された時刻情報301μsを示すパケット31を、パケット送信部14から機器B20へ送信する(図2のS6)。機器B20は、パケット受信部25において、このパケット送信時刻を示すパケット31を受信する。
(Step 223)
The device A 10 transmits the packet 31 indicating the time information 301 μs held in the transmission time holding unit 12 in step 222 from the packet transmitting unit 14 to the device B 20 (S6 in FIG. 2). The device B 20 receives the packet 31 indicating this packet transmission time in the packet receiving section 25 .

(手順224)
機器B20の差分計算部26は、機器A10から受信したパケット31により示される時刻(図2に示す例では301μs)と、受信時刻保持部23に保持された時刻情報(図2に示す例では106μs)とから、時刻用カウンタ21のずれ195μs(=301μs-106μs)を計算する(図2のS7)。差分計算部26は、図2のS8に示すように、計算した差分により、時刻用カウンタ21を補正する。
(Step 224)
The difference calculator 26 of the device B 20 combines the time indicated by the packet 31 received from the device A 10 (301 μs in the example shown in FIG. 2) and the time information held in the reception time holding unit 23 (106 μs in the example shown in FIG. ), the shift of 195 μs (=301 μs−106 μs) of the time counter 21 is calculated (S7 in FIG. 2). The difference calculator 26 corrects the time counter 21 based on the calculated difference, as shown in S8 of FIG.

(手順225)
機器B20のドリフト補正部28は、補正周期保持部27からドリフト補正周期1sを取得する。
(Step 225)
The drift correction unit 28 of the device B 20 acquires the drift correction period 1 s from the correction period holding unit 27 .

(手順226)
機器B20のドリフト補正部28は、手順224により計算された差分を差分計算部26から取得する。ドリフト補正部28は、差分を取得するたびに、その累積値を計算する(図2のS9)。図2の例では、累積値は195μsとなる。
(Step 226)
The drift corrector 28 of the device B 20 acquires the difference calculated in step 224 from the difference calculator 26 . The drift correction unit 28 calculates the cumulative value each time the difference is acquired (S9 in FIG. 2). In the example of FIG. 2, the accumulated value is 195 μs.

(手順227)
機器B20のドリフト補正部28は、手順225で取得したドリフト補正周期1sを累積した差分195μsに対応する時刻用カウンタ21のカウント数で除してドリフト補正タイミングを計算する(図2のS10)。例えば、時刻用カウンタ21の分解能が1nsである場合、差分195μsに対応する時刻用カウンタ21のカウント数は、195000カウントである。したがって、図2に示す例では、ドリフト補正タイミングは、1s÷19500カウント=約5.128μs/カウントとなる。
(Step 227)
The drift correction unit 28 of the device B 20 calculates the drift correction timing by dividing the drift correction period 1 s acquired in step 225 by the count number of the time counter 21 corresponding to the accumulated difference 195 μs (S10 in FIG. 2). For example, when the resolution of the time counter 21 is 1 ns, the number of counts of the time counter 21 corresponding to the difference of 195 μs is 195000 counts. Therefore, in the example shown in FIG. 2, the drift correction timing is 1 s/19500 counts=approximately 5.128 μs/count.

(手順228)
手順221~手順227と並行して、機器B20のドリフト補正部28は、ドリフト補正タイミング5.128μs毎に時刻用カウンタ21を1カウントだけ補正する(図2のS11)。
(Step 228)
In parallel with procedures 221 to 227, the drift correction unit 28 of the device B20 corrects the time counter 21 by one count every drift correction timing of 5.128 μs (S11 in FIG. 2).

○手順230
ドリフト補正部28が差分計算部26から取得する差分が十分に0に近い値になってから、機器B20は、手順221から手順227の繰り返しを停止し、次の手順231~手順234を実行する。機器B20は、例えば、求められる精度に応じて予め定められた値を取得した差分が下回るか否かを判定し、下回ると判定された場合に手順231~手順234を実行してもよい。
○Step 230
After the difference acquired by the drift correction unit 28 from the difference calculation unit 26 becomes a value sufficiently close to 0, the device B20 stops repeating steps 221 to 227, and executes the following steps 231 to 234. . The device B20 may, for example, determine whether or not the acquired difference is less than a predetermined value according to the required accuracy, and execute steps 231 to 234 when it is determined to be less.

(手順231)
機器B20は、パケット送信部24から機器A10へ、時刻保持用パケット32を送信する(図2のS12)。機器A10は、パケット受信部15において、時刻保持用パケット32を受信する。
(Step 231)
The device B20 transmits the time retention packet 32 from the packet transmission unit 24 to the device A10 (S12 in FIG. 2). The device A 10 receives the time keeping packet 32 in the packet receiving section 15 .

(手順232)
機器Aのパケット受信部15は、時刻保持用パケット32を受信すると、受信時刻保持部13にパケット受信を通知する。これに応じて、図2のS13に示すように、受信時刻保持部13は時刻用カウンタ11から時刻522μsを取得して、これを保持する。
(Step 232)
Upon receiving the time retention packet 32, the packet reception unit 15 of the device A notifies the reception time retention unit 13 of the packet reception. In response to this, as shown in S13 of FIG. 2, the reception time holding unit 13 acquires the time 522 μs from the time counter 11 and holds it.

機器B20のパケット送信部24は、手順231において機器A10へ時刻保持用パケット32を送信したことを送信時刻保持部22に通知する。これに応じて、図2のS14に示すように、送信時刻保持部22は、時刻用カウンタ21から時刻(図2の例では518μs)を取得して、これを保持する。 The packet transmission unit 24 of the device B 20 notifies the transmission time storage unit 22 that the time storage packet 32 has been transmitted to the device A 10 in step 231 . In response to this, as shown in S14 of FIG. 2, the transmission time holding unit 22 acquires the time (518 μs in the example of FIG. 2) from the time counter 21 and holds it.

(手順233)
機器A10は、手順232において受信時刻保持部13に保持したパケット受信時刻522μsを示すパケット31を、パケット送信部14から機器B20へ送信する(図2のS15)。機器B20は、パケット受信部25において、パケット送信時刻(図2に示す例では522μs)を示すパケット31を受信する。
(Step 233)
The device A 10 transmits the packet 31 indicating the packet reception time of 522 μs held in the reception time holding unit 13 in step 232 from the packet transmission unit 14 to the device B 20 (S15 in FIG. 2). The device B 20 receives the packet 31 indicating the packet transmission time (522 μs in the example shown in FIG. 2) at the packet receiving unit 25 .

(手順234)
機器B20の差分計算部26は、機器A10から受信したパケット31により示されるパケット受信時刻522μsと、送信時刻保持部22に保持されたパケット送信時刻518μsとの差分4μs(=522μs-518μs)を計算する(図2のS16)。そして、差分計算部26は、差分4μsの1/2である2μsを機器間の通信による遅延時間として計算し、その遅延時間により時刻用カウンタ21を補正する(図2のS17)。
(Step 234)
The difference calculation unit 26 of the device B20 calculates the difference 4 μs (=522 μs−518 μs) between the packet reception time 522 μs indicated by the packet 31 received from the device A10 and the packet transmission time 518 μs held in the transmission time holding unit 22. (S16 in FIG. 2). Then, the difference calculator 26 calculates 2 μs, which is 1/2 of the difference 4 μs, as the delay time due to the communication between the devices, and corrects the time counter 21 based on the delay time (S17 in FIG. 2).

○手順240
機器B20は、上記の手順220を継続し、機器A10と時刻が同期された状態を維持する。
○Step 240
The device B20 continues the above procedure 220 and maintains a state in which the time is synchronized with the device A10.

上記の構成によれば、補正の頻度を減らして高精度な時刻同期を確立させることができる。例えば、機器B20の時刻用カウンタ21の精度50ppmが分解能1nsである場合、時刻同期の精度を1/1000ppmにすることができる。その結果、従来の技術では1μsの精度を維持するためには1秒に50回の頻度で補正が必要であったが、1000秒に1回の頻度に減らすことができ、通信経路を他の通信に使用できるようになる。また、高精度ではない安価な発振器を使用して、機器B20の時刻用カウンタ21の分解能1nsに相当する高精度な時刻同期を確立させることができる。 According to the above configuration, it is possible to reduce the frequency of correction and establish highly accurate time synchronization. For example, if the accuracy of the time counter 21 of the device B 20 is 50 ppm with a resolution of 1 ns, the accuracy of time synchronization can be reduced to 1/1000 ppm. As a result, although the conventional technology required correction at a frequency of 50 times per second in order to maintain an accuracy of 1 μs, the frequency can be reduced to once per 1000 seconds, and the communication path can be changed to another one. be used for communication. Also, by using an inexpensive oscillator that is not highly accurate, it is possible to establish highly accurate time synchronization corresponding to the resolution of 1 ns of the time counter 21 of the device B20.

上記のように、時刻同期システム1では、機器B20が、ドリフト補正周期毎に時刻保持用パケットの送受信時刻の差分を自身で累積し、その値に基づきドリフト補正周期を決定して、自動的にドリフト補正を行う。そのため、時刻同期システム1によれば、任意の補正頻度で高精度な時刻同期をおこなうことができる。 As described above, in the time synchronization system 1, the device B20 accumulates the difference between the transmission and reception times of the time retention packets for each drift correction cycle, determines the drift correction cycle based on the value, and automatically Perform drift correction. Therefore, according to the time synchronization system 1, highly accurate time synchronization can be performed with an arbitrary correction frequency.

なお、機器A10と機器B20は通信パケットによる時刻情報のやり取りができればよく、任意の通信プロトコルで高精度な時刻同期を実現することができる。 Note that the device A 10 and the device B 20 only need to be able to exchange time information using communication packets, and high-precision time synchronization can be achieved using any communication protocol.

また、機器B20が複数ある場合においても、同様の手法により、時刻同期を行うことができる。機器B20が複数ある場合、その配線構成は、スター型配線又はデイジーチェーンなど、任意の構成をとることができる。 Moreover, even when there are a plurality of devices B20, time synchronization can be performed by a similar method. When there are a plurality of devices B20, the wiring configuration can be any configuration such as star wiring or daisy chain.

本開示は上述の実施形態に限定されるものではない。例えば、ブロック図に記載の複数のブロックは統合されてもよい。あるいは、1つのブロックは、分割されてもよい。フローチャートに記載の複数のステップは、記述に従って時系列に実行する代わりに、各ステップを実行する装置の処理能力に応じて、又は必要に応じて、並列的に又は異なる順序で実行されてもよい。その他、本開示の趣旨を逸脱しない範囲での変更が可能である。 The disclosure is not limited to the embodiments described above. For example, several blocks shown in block diagrams may be combined. Alternatively, one block may be divided. Instead of being performed in chronological order according to the description, multiple steps described in the flowcharts may be performed in parallel or in different orders, depending on the processing power of the device performing each step or as required. . Other modifications are possible without departing from the scope of the present disclosure.

1 時刻同期システム
10 機器A
11 時刻用カウンタ
12 送信時刻保持部
13 受信時刻保持部
14 パケット送信部
15 パケット受信部
20 機器B
21 時刻用カウンタ
22 送信時刻保持部
23 受信時刻保持部
24 パケット送信部
25 パケット受信部
26 差分計算部
27 補正周期保持部
28 ドリフト補正部
31、32 パケット
9 時刻同期システム
80 機器A
81 時刻用カウンタ
82 送信時刻保持部
83 受信時刻保持部
84 パケット送信部
85 パケット受信部
90 機器B
91 時刻用カウンタ
92 送信時刻保持部
93 受信時刻保持部
94 パケット送信部
95 パケット受信部
96 差分計算部
71、72 パケット
1 time synchronization system 10 device A
REFERENCE SIGNS LIST 11 time counter 12 transmission time holding unit 13 reception time holding unit 14 packet transmission unit 15 packet reception unit 20 device B
21 time counter 22 transmission time holding unit 23 reception time holding unit 24 packet transmission unit 25 packet reception unit 26 difference calculation unit 27 correction period holding unit 28 drift correction unit 31, 32 packet 9 time synchronization system 80 device A
81 time counter 82 transmission time holding unit 83 reception time holding unit 84 packet transmission unit 85 packet reception unit 90 device B
91 time counter 92 transmission time storage unit 93 reception time storage unit 94 packet transmission unit 95 packet reception unit 96 difference calculation unit 71, 72 packets

Claims (6)

一定の時間周期でカウンタ値をカウントアップすることにより時刻を測定する第1のカウンタと、通信手段とを備えた情報処理装置であって、
前記通信手段は、基準となる時刻を測定する第2のカウンタを備えた外部装置が送信した時刻保持用パケットを受信し、
前記通信手段は、前記第2のカウンタにより測定された、前記外部装置が前記時刻保持用パケットを送信した送信時刻を、前記外部装置から受信し、
前記第1のカウンタにより測定された前記時刻保持用パケットを受信した受信時刻と、前記送信時刻との差分を計算する計算手段と、
前記差分により、前記第1のカウンタのカウンタ値を補正する第1の補正手段と、
ドリフト補正を行う補正周期及び前記差分に基づき、前記第1のカウンタのカウンタ値を1カウントだけ補正するタイミングを決定する決定手段と、
前記決定されたタイミングにおいて、前記第1のカウンタのカウンタ値を1カウントだけ補正する第2の補正手段と
を備える情報処理装置。
An information processing apparatus comprising: a first counter for measuring time by counting up a counter value in a constant time cycle; and communication means,
The communication means receives a time keeping packet transmitted by an external device having a second counter for measuring a reference time,
the communication means receives, from the external device, the transmission time at which the external device transmitted the time retention packet, which is measured by the second counter;
calculating means for calculating the difference between the reception time of the time retention packet measured by the first counter and the transmission time;
a first correcting means for correcting the counter value of the first counter based on the difference;
determining means for determining a timing for correcting the counter value of the first counter by one count based on the correction cycle for drift correction and the difference;
and second correction means for correcting the counter value of the first counter by one count at the determined timing.
前記通信手段は、前記外部装置から、前記補正周期を受信し、
前記通信手段は、前記補正周期の時間間隔で、前記外部装置から前記時刻保持用パケット及び当該時刻保持用パケットの送信時刻を受信し、
前記計算手段は、前記外部装置から前記時刻保持用パケット及び当該時刻保持用パケットの送信時刻を受信したことに応じて、前記差分を計算し、
前記決定手段は、前記計算手段が前記差分を計算したことに応じて、前記補正周期を前記差分に対応する前記第1のカウンタのカウント数で除した値により定められる時間周期を前記タイミングとして決定し、
前記第2の補正手段は、前記決定されたタイミングにおいて、前記第1のカウンタのカウンタ値を1カウントだけ補正する
請求項1に記載の情報処理装置。
The communication means receives the correction period from the external device,
The communication means receives the time retention packet and the transmission time of the time retention packet from the external device at time intervals of the correction cycle,
the calculation means calculates the difference in response to receiving the time retention packet and the transmission time of the time retention packet from the external device;
The determination means determines, as the timing, a time period determined by dividing the correction period by the count number of the first counter corresponding to the difference, in response to the calculation of the difference by the calculation means. death,
2. The information processing apparatus according to claim 1, wherein said second correction means corrects the counter value of said first counter by one count at said determined timing.
前記通信手段は、前記計算手段により計算された前記差分が予め定められた値を下回ったことに応じて、第2の時刻保持用パケットを前記外部装置へ送信し、
前記通信手段は、前記第2のカウンタにより測定された、前記外部装置が前記第2の時刻保持用パケットを受信した受信時刻を、前記外部装置から受信し、
前記計算手段は、前記第1のカウンタにより測定された前記第2の時刻保持用パケットを送信した送信時刻と、前記外部装置が前記第2の時刻保持用パケットを受信した受信時刻との差分である第2の差分を計算し、
前記第1の補正手段は、前記第2の差分に基づき、前記第1のカウンタのカウンタ値を補正する
請求項1又は2に記載の情報処理装置。
The communication means transmits a second time retention packet to the external device in response to the difference calculated by the calculation means being below a predetermined value,
the communication means receives, from the external device, the reception time at which the external device received the second time keeping packet, which is measured by the second counter;
The calculation means calculates the difference between the transmission time of the second time retention packet measured by the first counter and the reception time of the second time retention packet received by the external device. Compute some second difference,
3. The information processing apparatus according to claim 1, wherein said first correction means corrects the counter value of said first counter based on said second difference.
前記第1の補正手段は、前記第2の差分の1/2の値により前記第1のカウンタのカウンタ値を補正する請求項3に記載の情報処理装置。 4. The information processing apparatus according to claim 3, wherein said first correcting means corrects the counter value of said first counter by a value of 1/2 of said second difference. 一定の時間周期でカウンタ値をカウントアップすることにより時刻を測定する第1のカウンタと、第1の通信手段とを備えた第1の情報処理装置と、
基準となる時刻を測定する第2のカウンタと、第2の通信手段とを備えた第2の情報処理装置と
を備えた情報処理システムであって、
前記第2の情報処理装置の前記第2の通信手段は、前記第1の情報処理装置へ時刻保持用パケットを送信し、
前記第1の情報処理装置の前記第1の通信手段は、前記第2の情報処理装置が送信した前記時刻保持用パケットを受信し、
前記第2の情報処理装置の前記第2の通信手段は、前記第2のカウンタにより測定された、前記時刻保持用パケットを送信した送信時刻を前記第1の情報処理装置へ送信し、
前記第1の情報処理装置の前記第1の通信手段は、前記第2の情報処理装置が前記時刻保持用パケットを送信した送信時刻を受信し、
前記第1の情報処理装置は、
前記第1のカウンタにより測定された前記時刻保持用パケットを受信した受信時刻と、前記送信時刻との差分を計算する計算手段と、
前記差分により、前記第1のカウンタのカウンタ値を補正する第1の補正手段と、
ドリフト補正を行う補正周期及び前記差分に基づき、前記第1のカウンタのカウンタ値を1カウントだけ補正するタイミングを決定する決定手段と、
前記決定されたタイミングにおいて、前記第1のカウンタのカウンタ値を1カウントだけ補正する第2の補正手段と
を備える情報処理システム。
a first information processing apparatus comprising: a first counter for measuring time by counting up a counter value in a constant time period; and a first communication means;
An information processing system comprising: a second counter for measuring reference time; and a second information processing device comprising a second communication means,
The second communication means of the second information processing device transmits a time retention packet to the first information processing device,
The first communication means of the first information processing device receives the time retention packet transmitted by the second information processing device,
the second communication means of the second information processing device transmits to the first information processing device a transmission time at which the time retention packet was transmitted, which is measured by the second counter;
the first communication means of the first information processing device receives a transmission time at which the second information processing device transmits the time retention packet;
The first information processing device is
calculating means for calculating the difference between the reception time of the time retention packet measured by the first counter and the transmission time;
a first correcting means for correcting the counter value of the first counter based on the difference;
determining means for determining a timing for correcting the counter value of the first counter by one count based on the correction cycle for drift correction and the difference;
and a second correction means for correcting the counter value of the first counter by one count at the determined timing.
一定の時間周期でカウンタ値をカウントアップすることにより時刻を測定する第1のカウンタと、通信手段とを備えた情報処理装置の情報処理方法であって、
前記通信手段が、基準となる時刻を測定する第2のカウンタを備えた外部装置が送信した時刻保持用パケットを受信し、
前記通信手段が、前記第2のカウンタにより測定された、前記外部装置が前記時刻保持用パケットを送信した送信時刻を、前記外部装置から受信し、
計算手段が、前記第1のカウンタにより測定された前記時刻保持用パケットを受信した受信時刻と、前記送信時刻との差分を計算し、
第1の補正手段が、前記差分により、前記第1のカウンタのカウンタ値を補正し、
決定手段が、ドリフト補正を行う補正周期及び前記差分に基づき、前記第1のカウンタのカウンタ値を1カウントだけ補正するタイミングを決定し、
第2の補正手段が、前記決定されたタイミングにおいて、前記第1のカウンタのカウンタ値を1カウントだけ補正する
情報処理方法。
An information processing method for an information processing apparatus comprising: a first counter for measuring time by counting up a counter value in a constant time cycle; and communication means, comprising:
The communication means receives a time retention packet transmitted by an external device having a second counter for measuring a reference time,
the communication means receives, from the external device, the transmission time at which the external device transmitted the time retention packet, which is measured by the second counter;
calculating means for calculating the difference between the reception time of the time retention packet measured by the first counter and the transmission time;
A first correcting means corrects the counter value of the first counter by the difference,
determining means determines a timing for correcting the counter value of the first counter by one count based on the correction cycle for drift correction and the difference;
The information processing method, wherein a second correcting means corrects the counter value of the first counter by one count at the determined timing.
JP2020142149A 2020-08-25 2020-08-25 Information processing device, information processing system, and information processing method Active JP7243695B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2020142149A JP7243695B2 (en) 2020-08-25 2020-08-25 Information processing device, information processing system, and information processing method
KR1020210091859A KR102523687B1 (en) 2020-08-25 2021-07-13 Information processing apparatus, information processing system, and information processing method
CN202110850650.5A CN114116579A (en) 2020-08-25 2021-07-27 Information processing apparatus, information processing system, and information processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020142149A JP7243695B2 (en) 2020-08-25 2020-08-25 Information processing device, information processing system, and information processing method

Publications (2)

Publication Number Publication Date
JP2022037810A JP2022037810A (en) 2022-03-09
JP7243695B2 true JP7243695B2 (en) 2023-03-22

Family

ID=80359399

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020142149A Active JP7243695B2 (en) 2020-08-25 2020-08-25 Information processing device, information processing system, and information processing method

Country Status (3)

Country Link
JP (1) JP7243695B2 (en)
KR (1) KR102523687B1 (en)
CN (1) CN114116579A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020059137A1 (en) 2018-09-21 2020-03-26 三菱電機株式会社 Communication device, communication system, communication method, and communication program

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3849891B2 (en) * 1996-09-09 2006-11-22 ソニー株式会社 Filter device and wireless communication terminal device
JP2000276377A (en) * 1999-03-25 2000-10-06 Toshiba Corp System timer correcting device and computer-readable storage medium stored with program
JP4874058B2 (en) * 2006-11-07 2012-02-08 シャープ株式会社 Receiver and clock synchronization method
WO2008129593A1 (en) * 2007-04-04 2008-10-30 Mitsubishi Electric Corporation Communication system, management apparatus, communication apparatus and computer program
KR100902601B1 (en) * 2007-05-17 2009-06-12 한양네비콤주식회사 Wireless Time System And Method for Synchronizing Time
KR20110014909A (en) * 2009-08-06 2011-02-14 주식회사 케이티 Method and apparatus for time compensating between network device
WO2014041592A1 (en) * 2012-09-11 2014-03-20 三菱電機株式会社 Correction parameter calculation device and system, correction parameter calculation method, and computer program
CN104838615B (en) * 2012-12-13 2017-08-18 富士电机株式会社 Signal synchronizing system, node synchronization system, signal synchronizing method and node synchronization method
KR101689077B1 (en) * 2015-04-14 2016-12-22 엘에스산전 주식회사 Method for synchronizing time and time synchronizer
CN107111280B (en) * 2015-06-24 2019-05-07 三菱电机株式会社 Communication device, time adjustment method and network system
US20210281339A1 (en) * 2017-06-27 2021-09-09 Mitsubishi Electric Corporation Communication system and slave device
JP2019101480A (en) 2017-11-28 2019-06-24 オムロン株式会社 Control device and control method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020059137A1 (en) 2018-09-21 2020-03-26 三菱電機株式会社 Communication device, communication system, communication method, and communication program

Also Published As

Publication number Publication date
JP2022037810A (en) 2022-03-09
KR20220026479A (en) 2022-03-04
KR102523687B1 (en) 2023-04-19
CN114116579A (en) 2022-03-01

Similar Documents

Publication Publication Date Title
US9671761B2 (en) Method, time consumer system, and computer program product for maintaining accurate time on an ideal clock
JP5804086B2 (en) Node device and time synchronization method
JP6192995B2 (en) COMMUNICATION DEVICE, COMMUNICATION SYSTEM, COMMUNICATION METHOD, AND COMPUTER PROGRAM
KR102148943B1 (en) Programmable controller system and controller therefor
US9883474B2 (en) Ring-shaped synchronous network system and time slave station
KR101636496B1 (en) Signal synchronization system, node synchronization system, signal synchronization method, and node synchronization method
US10594424B2 (en) Time synchronization slave apparatus capable of adjusting time synchronization period, and method of determining time synchronization period
CN109302255B (en) Time synchronization control method, device and system and computer readable storage medium
JP2016152488A (en) Time synchronization method and time synchronization device
JPWO2020149103A1 (en) Monitoring system and synchronization method
US20200382233A1 (en) Information processing apparatus and time synchronization method
CN112395231B (en) Method and device for calculating data delay time among multiple processors
JP7243695B2 (en) Information processing device, information processing system, and information processing method
JP5391964B2 (en) Clock synchronization method and packet communication system
CN115567143A (en) High precision time synchronization method, apparatus, system and medium for data acquisition system
EP3068076A1 (en) Automatic determination of asymmetrical delay in transmission networks
EP3812716A1 (en) Dynamic weighing device
KR101972798B1 (en) Network Time Protocol based Time synchronization apparatus and method
JP5409165B2 (en) Clock correction period correction method and radio base station apparatus
US20240089021A1 (en) System and methods for network data processing
EP3814868B1 (en) Precision timing between systems
JP2012004940A (en) Remote i/o system and time synchronization method in remote i/o system
EP4160948A1 (en) Determining a skew between a master clock and a local clock
KR101018465B1 (en) Apparatus for synchronizing time tick
RU161053U1 (en) SYSTEM OF NETWORK SYNCHRONIZATION OF SIGNALS OF GENERATORS OF TIME TIME

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220216

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220823

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20221020

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230220

R150 Certificate of patent or registration of utility model

Ref document number: 7243695

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150