Time distribution apparatus, synchronization system, and program
The synchronization system corrects device clocks using a common frequency signal to synchronize time distribution devices, addressing nanosecond-level accuracy issues and maintaining system stability during device switching.
Patent Information
- Application Number
- JP2023038086
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-10
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2043-03-10
AI Technical Summary
Existing time synchronization systems struggle to achieve highly accurate time synchronization to the nanosecond level when GNSS is unavailable, leading to time differences and potential phase shifts during device switching, which impact control systems.
A synchronization system and program that adjusts device clocks using a common frequency signal to eliminate time differences between multiple time distribution devices by correcting clocks based on synchronization timing deviations in units of predetermined cycles, utilizing wired communication and phase signals.
Ensures synchronized time distribution among multiple devices without time differences, maintaining system stability even when time distribution devices are switched.
Smart Images

Figure 2024128836000001
Abstract
Description
[Technical field]
[0001] The present invention relates to a time distribution device, a synchronization system, and a program, and more particularly to a time distribution device, a synchronization system, and a program for distributing time. [Background technology]
[0002] It is common for multiple devices that distribute time, such as Precision Time Protocol (PTP) GrandMasters (GMs), to be installed within a system for redundancy purposes. Generally, each GM synchronizes with the Global Navigation Satellite System (GNSS) (obtaining time, phase, and frequency from the GNSS), thereby limiting the time difference between GMs to within the GNSS synchronization accuracy, achieving highly accurate time synchronization between devices.
[0003] Patent Document 1 also discloses a time synchronization system that includes a plurality of master nodes and slave nodes configured to perform corrections to a local slave clock by time synchronizing with a local master clock, in which a first master node performs corrections to the first local master clock by synchronizing with a timing synchronization signal from a source clock node at a predetermined period, and if the second local master clock has a larger error than the first local master clock based on the source clock, the second master node performs the first correction by time synchronizing with the first local master clock, and performs the second correction by synchronizing with the timing synchronization signal from the source clock node, on the condition that the error of the second local master clock based on the first local master clock is within a predetermined range. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2018-37885 A Summary of the Invention [Problem to be solved by the invention]
[0005] Time synchronization requires that three synchronization elements - time, phase, and frequency - be coordinated between devices. However, in an environment where GNSS cannot be used and the only common synchronization element is frequency, high-precision time synchronization to the nanosecond level is not possible even if a time synchronization protocol such as NTP (Network Time Protocol) is used.
[0006] Without high-precision time synchronization, a time difference will occur when the GM is switched, which will have a significant effect on the control of devices that receive time from the GM. Also, if a phase signal is output based on the time received from the GM, a sudden phase shift will occur.
[0007] The present invention has been made to solve the above-mentioned problems, and aims to provide a time distribution device, a synchronization system, and a program that can adjust device clocks so that no time difference occurs between the devices in a redundant configuration having multiple time distribution devices, and can distribute the same time between multiple devices. [Means for solving the problem]
[0008] In order to achieve the above-mentioned object, the time distribution device of the present invention is configured to include a first clock correction unit that acquires time from its own clock at a synchronization timing contained at a predetermined period in a phase signal input from another time distribution device via wired communication, and corrects the clock of its own device so that the acquired time becomes a predetermined time for the synchronization timing, a time difference measurement unit that measures the time difference between the clock of its own device corrected by the first clock correction unit and the clock of the other time distribution device obtained via communication other than the wired communication, a second clock correction unit that corrects the clock of its own device by a time difference corresponding to the deviation in units of the predetermined period based on the measured time difference and the predetermined period, and a time distribution unit that distributes the time obtained by the clock of its own device to an external device.
[0009] Here, the synchronization timing included in the phase signal has a predetermined period, and the time is determined in advance.
[0010] According to this invention, when each of the multiple time distribution devices corrects its own clock using the synchronization timing included in the phase signal input via wired communication, the clock of the local device is corrected by the time difference corresponding to the deviation in units of a predetermined period, taking advantage of the fact that the deviation between the multiple time distribution devices corresponds to the deviation in units of the period of the synchronization timing. As a result, in a redundant configuration having multiple time distribution devices, the device clocks can be adjusted so that no time difference occurs between the devices, and the same time can be distributed between the multiple devices.
[0011] Furthermore, in the time distribution device, the clock of the device itself can be advanced based on a signal of a specific frequency generated by a frequency signal generator.
[0012] In addition, in the time distribution device, the first clock correction unit can correct the clock of the device itself based on a predetermined delay time derived from wired communication so that the time at which the synchronization timing contained in a predetermined period is detected becomes a predetermined time for the synchronization timing.
[0013] The synchronization system of the present invention is a synchronization system including a plurality of time distribution devices, at least one of which functions as a master time distribution device and the rest function as slave time distribution devices, in which the master time distribution device outputs a first phase signal to the slave time distribution device via wired communication at a first time, and the slave time distribution device acquires time from its own clock at a synchronization timing included at a predetermined period in the first phase signal input from the master time distribution device via wired communication, and, assuming that there is no delay time in the input time of the first phase signal, the acquired time is within a predicted time for the synchronization timing. and outputs a second phase signal including a synchronization timing at the predetermined period based on the corrected clock of the master time distribution device via the wired communication. The master time distribution device obtains the second time from its clock at the synchronization timing included in the second phase signal input from the slave time distribution device via wired communication, estimates a delay time caused by the wired communication based on the remainder when the time difference between the first time and the second time is divided by the predetermined period, and transmits the estimated delay time to the slave time distribution device.
[0014] The synchronization system of the present invention is a synchronization system including a plurality of time distribution devices, at least one of which functions as a master time distribution device and the rest function as slave time distribution devices, each of the plurality of time distribution devices having a time distribution unit that distributes the time obtained by the clock of the own device to an external device, and a first clock correction unit that, when the own device functions as a slave time distribution device, obtains the time from the clock of the own device at a synchronization timing included in a predetermined cycle of the clock of the master time distribution device in a phase signal input from the master time distribution device via wired communication, and corrects the clock of the own device so that the obtained time becomes a time predetermined for the synchronization timing, and a time distribution unit that corrects the clock of the own device when the own device functions as a slave time distribution device. and when the device functions as a slave time distribution device, the time distribution unit is provided with a time difference measurement unit that measures the time difference between the clock of the device itself corrected by the first clock correction unit and the clock of the master time distribution device obtained through communication different from the wired communication, and when the device functions as a slave time distribution device, the time distribution unit corrects the clock of the device itself by the time difference corresponding to the deviation in units of the specified period based on the measured time difference and the specified period, and when the device functions as a master time distribution device, the time distribution unit distributes the time obtained from the clock of the device itself corrected by the second clock correction unit to the outside.
[0015] The program of the present invention is a program for causing a computer to function as each unit of the time distribution device of the present invention. Effect of the Invention
[0016] According to the present invention, in a redundant configuration including a plurality of time distribution devices, the device clocks can be adjusted so that no time difference occurs between the devices, and the same time can be distributed between the plurality of devices. [Brief description of the drawings]
[0017] [Figure 1] 1 is a diagram illustrating an example of a synchronization system according to an embodiment of the present invention. [Diagram 2]1 is a block diagram showing a configuration of a time distribution device according to an embodiment of the present invention; [Diagram 3] FIG. 11 is a diagram for explaining time correction using synchronization timing. [Figure 4] FIG. 11 is a sequence diagram showing a process flow for measuring a time difference between devices. [Diagram 5] FIG. 1 is a diagram illustrating an example of time synchronization between a master time distribution device and a slave time distribution device. [Figure 6] FIG. 4 is a flowchart showing a time correction process of the time distribution device according to the embodiment of the present invention. [Figure 7] FIG. 13 is a diagram for explaining interactions between devices when a master time distribution device fails. [Figure 8] FIG. 11 is a diagram for explaining a method for estimating a delay time in wired communication. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0018] Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings.
[0019] First, an outline of the embodiment of the present invention will be described.
[0020] In the embodiment of the present invention, time synchronization between time distribution devices is achieved by inputting only a common frequency signal (10 MHz).
[0021] Specifically, a redundant configuration is provided with multiple time distribution devices, and the time distribution devices are divided into a representative device (master time distribution device) and a subordinate device (slave time distribution device).Even in an environment where the only common synchronization element is frequency, the time distribution devices are synchronized in time to eliminate the time difference between the time distribution devices, thereby minimizing the impact on the entire synchronization system even when the time distribution device distributing the time is switched.
[0022] <System configuration according to an embodiment of the present invention> The configuration of a synchronization system according to an embodiment of the present invention will be described. As shown in Fig. 1, a synchronization system 100 according to an embodiment of the present invention includes a frequency signal generator 10, time distribution devices 20 and 22, switch devices 24 and 26, and time termination devices 28 and 29. The frequency signal generator 10 and the time distribution device 20, the frequency signal generator 10 and the time distribution device 22, and the time distribution device 20 and the time distribution device 22 are connected by wires. In addition, the time distribution device 20, the time distribution device 22, the switch devices 24 and 26, and the time termination devices 28 and 29 are connected via a LAN (Local Area Network) such as Ethernet (registered trademark).
[0023] The frequency signal generator 10 outputs an electrical signal of a specific frequency (for example, 10 MHz) to the time distribution device 20 and the time distribution device 22 via wired communication.
[0024] Depending on the settings, one of the time distribution devices 20 and 22 functions as a master time distribution device and the other functions as a slave time distribution device. In this embodiment, an example will be described in which the time distribution device 20 is set to function as the master time distribution device and the time distribution device 22 is set to function as the slave time distribution device.
[0025] That is, the time distribution device 20 as a master time distribution device distributes its own time via the switch device 24 using PTP, and distributes time information to the time terminal devices 28 and 29. The time distribution device 22 as a slave time distribution device distributes time information to the time terminal devices 28 and 29 using PTP via the switch device 26 on behalf of the time distribution device 20 when the time distribution device 20 is unable to distribute the time information due to a malfunction or the like.
[0026] The switch devices 24 and 26 are PTP-compatible switch devices.
[0027] The phase signals output by the time terminal devices 28 and 29 must be synchronized.
[0028] The time distribution devices 20 and 22 in this embodiment can be configured as a computer including a CPU, a RAM, and a ROM storing programs and various data for executing various processing routines described later. As shown in Fig. 2, the time distribution devices 20 and 22 functionally include an input unit 30, a communication unit 32, a device clock 34, a timing signal detection unit 36, a clock correction unit 38, a time correction calculation unit 40, a cable delay information setting unit 42, a time difference measurement unit 44, a period difference calculation unit 46, and a period information setting unit 48. The communication unit 32 is an example of a time distribution unit, the clock correction unit 38 and the time correction calculation unit 40 are examples of a first clock correction unit, and the clock correction unit 38 and the period difference calculation unit 46 are examples of a second clock correction unit. The components of the time distribution device 22, which is a slave time distribution device, will be described below.
[0029] A signal of a specific frequency (for example, 10 MHz), which is an electrical signal output from the frequency signal generator 10, is input to the input unit 30 via wired communication.
[0030] A phase signal (1PPS (Pulse Per Second) signal) output from another time distribution device 20, which is a master time distribution device, is input to the input unit 30 via wired communication. Note that in this embodiment, a 1PPS signal that is output exactly on the second in a 1-second cycle is used, but the signal is not limited to the 1PPS signal as long as it has periodicity and the timing at which the PPS signal is output is agreed upon between the time distribution devices.
[0031] The phase signal generating unit 49 generates a phase signal (1PPS signal) at the timing of every second of the device clock . The output unit 50 outputs the phase signal (1PPS signal) generated by the phase signal generating unit 49 to the time distribution device 20 via wired communication.
[0032] The communication unit 32 communicates with the time distribution device 20 to measure the time difference between the devices, and also communicates with the switch device 26 to distribute the time obtained by the device clock 34 to the time terminal devices 28 and 29.
[0033] The device clock 34 is the time source of the device itself. The device clock 34 advances the clock using a signal of a specific frequency output from the frequency signal generator 10.
[0034] The timing signal detection unit 36 detects the synchronization timing contained in the input phase signal at a predetermined cycle (for example, every second) and notifies the device clock 34 of the detected timing. When the device clock 34 is notified of the timing, it latches the time and outputs it to the time correction calculation unit 40. Here, "latching the time" means obtaining the time at that point in time.
[0035] For example, as shown in FIG. 3, the time obtained by the device clock 34 is latched at the timing when each of the synchronization timings of the 1PPS signal (pulse timings of the 1PPS signal) is detected.
[0036] The clock correction section 38 corrects the time of the device clock 34 based on the correction amount instructions obtained from the time correction calculation section 40 and the period difference calculation section 46, respectively.
[0037] The cable delay information setting unit 42 has preset therein a delay time caused by wired communication with the time distribution device 20, which is the master time distribution device.
[0038] The time correction calculation unit 40 calculates the amount of correction for the time of the device clock 34 based on the time latched by the device clock 34 in accordance with the synchronization timing detected by the timing signal detection unit 36 and the delay time set in the cable delay information setting unit 42, so that the time of the synchronization timing latched by the device clock 34 becomes a predetermined time for the synchronization timing.
[0039] For example, as shown in FIG. 3, the time T S0 (199.9) and time T S0 The closest predetermined time T S1 Difference t from (200.0) d1Calculate the difference t d1 The delay time of wired communication t d0 time difference t d2 Calculate the time T S1 Time difference t d2 The time T S2 (200.0+t d0 ) matches the synchronization timing of the input 1PPS signal (see Step 1 in FIG. 3). Here, when the signal is a 1PPS signal, the "predetermined time for the synchronization timing" refers to the time of the device clock 34, which is a precise second where any value less than a second, such as 199.0 seconds or 200.0 seconds, is 0, and is measured in seconds.
[0040] The clock correction unit 38 corrects the time in accordance with this correction amount, so that the time T M0 (100.0) and the time T of the synchronization timing of the 1PPS signal latched by the device clock 34. S2 (200.0+t d0 ) phase (synchronization timing) is the same.
[0041] The time difference measurement unit 44 measures the time difference with the clock of the time distribution device 20 by using communication with the time distribution device 20 via the communication unit 32 (see Step 2 in FIG. 3).
[0042] 4, first, the time distribution device 22 transmits a time acquisition request including a time stamp T1 indicating the time of the device clock 34 at the time of packet transmission to the time distribution device 20. Next, the time distribution device 20 acquires and records the time of receiving the time acquisition request including the time stamp T1 as time stamp T2 in the device clock 34 of the time distribution device 20. Then, the time distribution device 20 transmits a time response including the time stamp T2 and a time stamp T3 indicating the time of the device clock 34 of the time distribution device 20 at the time of packet transmission to the time distribution device 22. Next, the time distribution device 22 acquires and records the time of receiving the time response including the time stamps T2 and T3 in the device clock 34 as time stamp T4.
[0043] The time difference measurement unit 44 then calculates the time difference Td3 with respect to the time distribution device 22 according to the following formula.
[0044] T d3 =(T3-T4)+((T4-T1)-(T3-T2)) / 2
[0045] Here, T calculated above d3 Since the time always includes a measurement error, the device clock 34 of the time distribution device 22 is d3 Even if the time is corrected by the above, it will not match the device clock 34 of the time distribution device 20.
[0046] Based on the time difference measured by the time difference measurement unit 44 and the length of the PPS period (a predetermined period, for example, one second) set by the period information setting unit 48, the period difference calculation unit 46 calculates how many PPS periods the time difference corresponds to when counted as a deviation in PPS periods, and outputs the amount of correction of the time of the device clock 34 for correction by the calculated number of PPS periods to the clock correction unit 38. In other words, the clock of the device itself is corrected by the time difference corresponding to the deviation in units of PPS periods (see Step 3 in FIG. 3).
[0047] Therefore, the period difference calculation unit 46 calculates the time difference T d3 Using the PPS period preset in the period information setting unit 48, the PPS period×N (N=0, 1, . . . ) is T d3 Calculate N when it is closest to T d3 In order to calculate N when it is closest to , an error in the time difference between the time distribution devices 20 and 22 is allowed up to half the PPS period (i.e., 500 ms).
[0048] Then, a time difference corresponding to the PPS period deviation is calculated from the value of N, and this is used as the correction amount for the time of the device clock 34 of the time distribution device 22. When the clock correction unit 38 corrects the time of the device clock 34 in accordance with this correction amount, the time of the device clock 34 is shifted by N PPS periods, and the PPS period deviation between the time distribution devices 20, 22 is eliminated. For example, as shown in Fig. 3, the time of the device clock 34 of the time distribution device 22 is shifted by 100 PPS periods, and the PPS period deviation between the time distribution devices 20, 22 is eliminated.
[0049] In the cycle information setting unit 48, the length of the PPS cycle is preset.
[0050] The above describes the configuration of the slave time distribution device, but when the time distribution device 20, 22 is a master time distribution device, it is equipped with an input unit 30, a communication unit 32, a device clock 34, and an output unit 50, and the timing signal detection unit 36, the clock correction unit 38, the time correction calculation unit 40, the cable delay information setting unit 42, the time difference measurement unit 44, the period difference calculation unit 46, and the period information setting unit 48 are omitted.
[0051] <Operation of the embodiment of the present invention> Next, the processing performed by the time distribution devices 20, 22 according to the embodiment of the present invention will be described with reference to FIGS.
[0052] First, as shown in FIG. 5, a signal of a specific frequency, which is an electrical signal output from a frequency signal generator 10, is input to the time distribution devices 20 and 22. The time distribution devices 20 and 22 are connected to each other so that a 1PPS signal is input and output between them. When each of the time distribution devices 20 and 22 is started, a redundancy protocol is used to determine whether the time distribution device 20 or 22 is to be a master time distribution device or a slave time distribution device (Step 0). This determination may be made by a specific algorithm or may be fixedly determined by settings. As a specific algorithm, a device that has been time-synchronized first may be given priority and determined as the master time distribution device, or the master time distribution device may be determined according to the elapsed time after the device is started.
[0053] Then, each of the time distribution devices 20, 22 executes the time correction processing routine shown in FIG.
[0054] First, in step S100, the device determines whether it is set as a master time distribution device or as a slave time distribution device. If it is set as a slave time distribution device, the process proceeds to step S102, where the initial time is set. On the other hand, if it is set as a master time distribution device, it starts operating as a master time distribution device.
[0055] Then, in step S104, it is determined whether or not synchronization has been achieved between the input 1PPS signal and the signal of the specific frequency. If synchronization has not been achieved between the 1PPS signal and the signal of the specific frequency, the process waits until synchronization is achieved between the 1PPS signal and the signal of the specific frequency, and when synchronization is achieved between the 1PPS signal and the signal of the specific frequency, the process proceeds to step S106. Here, "synchronization" means that the signal is being received normally.
[0056] At this time, when synchronization with the 1PPS signal is achieved, the timing signal detection unit 36 detects the synchronization timing contained in the input 1PPS signal at a predetermined cycle, and notifies the detected timing to the device clock 34. When the device clock 34 is notified of the timing, it latches the time and outputs it to the time correction calculation unit 40.
[0057] In step S106, the time correction calculation unit 40 calculates the amount of correction for the time of the device clock 34 based on the time latched by the device clock 34 in accordance with the synchronization timing detected by the timing signal detection unit 36, the delay time set in the cable delay information setting unit 42, and the predetermined time for the synchronization timing, so that the time of the synchronization timing latched by the device clock 34 becomes the predetermined time for the synchronization timing.
[0058] Then, the clock correction unit 38 corrects the time of the device clock 34 based on the instruction for the amount of correction obtained from the time correction calculation unit 40 (see Step 1 in FIG. 5).
[0059] In step S108, the time difference measurement unit 44 measures the time difference with the clock of the time distribution device 20, using communication with the time distribution device 20 via the communication unit 32. Specifically, as shown in Step 2 of Fig. 5, a time acquisition request is sent to the master time distribution device, a time response is received, and the time difference with the clock of the time distribution device 20 is measured.
[0060] In step S110, the period difference calculation unit 46 counts the time difference as a deviation in PPS period units, based on the time difference measured by the time difference measurement unit 44 and the length of the PPS period set by the period information setting unit 48. This deviation is defined as the PPS period difference.
[0061] In step S112, the period difference calculation unit 46 determines whether or not there is a PPS period difference based on the count value corresponding to the difference in PPS periods. If there is no PPS period difference, it determines that correction of the clock of its own device is not necessary, considers that redundant synchronization is complete, and starts operating as a slave time distribution device.
[0062] On the other hand, if there is a deviation in the PPS period difference, in step S114, the period difference calculation unit 46 outputs to the clock correction unit 38 the amount of correction to the time of the device clock 34, for correcting the time by the calculated number of PPS periods, based on the count value corresponding to the deviation in PPS periods.
[0063] Then, in step S116, the clock correction unit 38 corrects the clock of its own device by the time difference corresponding to the deviation in units of PPS periods (see Step 3 in Figure 5), and begins operating as a slave time distribution device, assuming that redundant synchronization has been completed.
[0064] As shown in Fig. 7, when the time distribution device 20, which is the master time distribution device, breaks down, the time distribution device 22, which is the slave time distribution device, determines that the time distribution device 20 has broken down due to a timeout while waiting for a response when a time acquisition request is sent to the time distribution device 20 (Step 10). Then, the time distribution device 22 switches to the master time distribution device (Step 11). At this time, since the time distribution device 20 and the time distribution device 22 are synchronized and in a redundant synchronization state as described above, there is no phase difference in the distributed time. Therefore, even if a terminal (time terminal device 28, 29) that was time-synchronized with the time distribution device 20 transitions to time synchronization with the time distribution device 22, the effects of time jumps and the like can be eliminated.
[0065] When the time distribution device 20 recovers from the failure, the decision algorithm determines whether the time distribution devices 20, 22 will be the master time distribution device or the slave time distribution device. At this time, taking into consideration the impact on the terminals that are time-synchronized with the master time distribution device, the device that is started later (recovered from the failure) generally transitions to a slave time distribution device, with "priority given to the device that was time-synchronized earlier."
[0066] As described above, according to the synchronization system of the embodiment of the present invention, when each of a plurality of time distribution devices having device clocks based on a common frequency signal corrects its own device clock using the pulse timing of a 1PPS signal input via wired communication, the clock of the own device is corrected by the time difference corresponding to the deviation in units of the PPS period, taking advantage of the fact that the deviation between the plurality of time distribution devices corresponds to the deviation in units of the PPS period. As a result, in a redundant configuration having a plurality of time distribution devices, the device clocks can be adjusted so that no time difference occurs between devices having device clocks based on a common frequency signal, and the same time can be distributed between the plurality of devices.
[0067] Furthermore, even in an environment where the only common synchronization element is frequency, by synchronizing time using the time distribution device and eliminating the time difference between time distribution devices, the impact on the entire synchronization system can be reduced even if the time distribution device that distributes the time is switched.
[0068] The present invention is not limited to the above-described embodiment, and various modifications and applications are possible without departing from the spirit and scope of the present invention.
[0069] For example, in the above embodiment, the cable delay information setting unit 42 is set with a delay time determined in advance in wired communication with the master time distribution device, but the present invention is not limited to this. The delay time in wired communication with the master time distribution device may be estimated. In this case, the time distribution device further includes a delay time estimation unit. The delay time estimation unit acquires a first time from the device clock of the master time distribution device at a predetermined cycle, acquires time from the clock of the device itself at a synchronization timing included in a phase signal (1PPS signal) input from the master time distribution device via wired communication at a predetermined cycle, and corrects the clock of the device itself so that the acquired time becomes a time predetermined for the synchronization timing, assuming that there is no delay time. The slave time distribution device then outputs a phase signal (1PPS signal) including synchronization timing at a predetermined period of the corrected clock of its own device to the master time distribution device via wired communication, obtains the second time from the device clock of the master time distribution device at the synchronization timing included at the predetermined period in the phase signal (1PPS signal) input at the master time distribution device, and estimates the delay time based on the remainder when the time difference between the first time and the second time is divided by the predetermined period. The time correction calculation unit 40 then calculates the amount of correction to the time of the device clock using the delay time estimated by the delay time estimation unit.
[0070] Here, the first time is the time when the master time distribution device issues a 1PPS signal, and the second time is the time when the master time distribution device receives the 1PPS signal issued by the slave time distribution device. However, for example, if various processes in the slave time distribution device take time, the slave time distribution device may not be able to immediately return a phase signal to the master time distribution device. In other words, the time difference between the second time and the first time is not necessarily twice the cable delay (it may include a processing delay inside the slave time distribution device). However, even in this case, since the timing at which the 1PPS signal is transmitted from the slave time distribution device is a predetermined period (1 second), the time in seconds of the time difference between the first time and the second time is due to the processing delay of the slave time distribution device, and the time less than a second (the time of the phase signal deviation (phase difference)) is due to the delay due to the cable. Therefore, in this embodiment, the delay time is estimated using the remainder when the time difference is divided by the predetermined period. In this embodiment, the predetermined period is 1 PPS (1 second), and the timing is exact, so the remainder obtained by dividing the time difference by the predetermined period is a time less than a second. Therefore, the delay time can be estimated based on the remainder obtained by dividing the time difference between the first time and the second time by the predetermined period. Note that the "remainder obtained by dividing the time difference by the predetermined period" is the time remaining when the time unit of the predetermined period is subtracted from the time difference.
[0071] For example, as shown in FIG. 8, the master time distribution device outputs a 1PPS signal at a predetermined timing. The slave time distribution device outputs a delay value T d0 The slave time distribution device receives the 1PPS signal with a delay of 0, but in this case, the delay value is assumed to be 0 and the synchronization operation is started. The slave time distribution device then assumes that the delay time of wired communication is 0 and starts time synchronization operation with the master time distribution device, and synchronizes with the time T latched by the device clock 34 according to the pulse timing of the 1PPS signal. S0 (199.9) and the predetermined time T S1 Difference t from (200.0) d1 Calculate the difference t d1The time of the device clock 34 is corrected by the amount of the time (see Step 1 in FIG. 8).
[0072] The master time distribution device calculates the delay value t of the wired communication from the phase difference between the 1PPS signal output from the slave time distribution device and the device clock of the master time distribution device. d0 Calculate the delay value t d0 , t d0 ' is the sum of the delay times of two-way wired communication, T RTD The total delay time of two-way wired communication is T RTD The delay time of one-way wired communication is estimated as 1 / 2 of the delay time of the other-way wired communication. Here, it is assumed that the cable length of the two-way wired communication is the same. If the cable lengths of the two-way wired communication are different, the ratio of the cable lengths of the two-way wired communication is used to estimate the total delay time of the two-way wired communication, T RTD The delay time of one-way wired communication can be estimated from the
[0073] As described above, by estimating the delay time of wired communication before time synchronization between the time distribution devices, it is possible to omit setting the delay time of wired communication for the slave time distribution devices.
[0074] Although the redundant configuration with two time distribution devices has been described as an example, the present invention is not limited to this, and a redundant configuration with three or more time distribution devices may be used. In this case, one of the devices may be designated as a master time distribution device, and the others as slave time distribution devices. [Explanation of symbols]
[0075] 10 Frequency Signal Generator 20, 22 Time distribution device 28, 29 Time terminating device 30 Input section 32 Communications Department 34 Device Clock 36 Timing signal detector 38 Clock correction section 40 Time correction calculation section 42 Cable delay information setting section 44 Time Difference Measurement Section 46 Period difference calculation section 48 Cycle information setting section 50 Output section 100 Synchronous System
Claims
1. Obtaining time from the clock of the own device at a synchronous timing included at a predetermined period in a phase signal input via wired communication from another time distribution device; a first clock correction unit that corrects a clock of the device itself so that the acquired time coincides with a predetermined time for the synchronization timing; a time difference measurement unit that measures a time difference between a clock of the own device corrected by the first clock correction unit and a clock of the other time distribution device obtained via a communication different from the wired communication; a second clock correction unit that corrects a clock of the device by a time difference corresponding to a deviation in units of the predetermined period, based on the measured time difference and the predetermined period; a time distribution unit that distributes the time obtained by the clock of the device to an external device; A time distribution device including:
2. 2. The time distribution device according to claim 1, wherein the clock of the device advances based on a signal of a specific frequency generated by a frequency signal generator.
3. The time distribution device described in claim 1, wherein the first clock correction unit corrects the clock of the device itself so that the time at which a synchronization timing contained in a predetermined period is detected based on a predetermined delay time derived from wired communication becomes a predetermined time for the synchronization timing.
4. A synchronization system including a plurality of time distribution devices, at least one of which functions as a master time distribution device and the remaining time distribution devices function as slave time distribution devices, The master time distribution device outputting a first phase signal to the slave time distribution device via wired communication at a first time; The slave time distribution device acquiring a time from a clock of the own device at a synchronization timing included at a predetermined period in the first phase signal input from the master time distribution device via wired communication; correcting a clock of the device itself so that the acquired time coincides with a predetermined time for the synchronization timing, assuming that there is no delay time in the input time of the first phase signal; outputting a second phase signal including a synchronization timing at the predetermined period based on the corrected clock of the own device to the master time distribution device via the wired communication; the master time distribution device acquires a second time from its own clock at a synchronization timing included in the second phase signal input from the slave time distribution device via wired communication, at the predetermined period; estimate a delay time caused by the wired communication based on a remainder obtained by dividing a time difference between the first time and the second time by a predetermined period, and transmit the estimated delay time to the slave time distribution device. Synchronous system.
5. A synchronization system including a plurality of time distribution devices, at least one of which functions as a master time distribution device and the remaining time distribution devices function as slave time distribution devices, Each of the plurality of time distribution devices a time distribution unit that distributes the time obtained by the clock of the device to an external device; When the device itself functions as a slave time distribution device, the device acquires the time from the clock of the device itself at a synchronization timing included in a predetermined cycle of the clock of the master time distribution device in a phase signal input from the master time distribution device via wired communication, a first clock correction unit that corrects a clock of the device itself so that the acquired time coincides with a predetermined time for the synchronization timing; a time difference measurement unit that, when the device itself functions as a slave time distribution device, measures the time difference between the clock of the device itself corrected by the first clock correction unit and the clock of the master time distribution device obtained via communication different from the wired communication; a second clock correction unit that corrects the clock of the own device by a time difference corresponding to a deviation in units of the predetermined period based on the measured time difference and the predetermined period when the own device functions as a slave time distribution device; Equipped with When the time distribution unit functions as a master time distribution device, the time distribution unit distributes the time obtained by the clock of the device to an external device; When the device itself functions as a slave time distribution device, the time obtained by the clock of the device itself corrected by the second clock correction unit is distributed to the outside. Synchronous system.
6. The synchronization system described in claim 5, wherein the first clock correction unit corrects the clock of the device so that the time at which a synchronization timing contained in a predetermined period is detected based on a predetermined delay time derived from wired communication becomes a predetermined time for the synchronization timing.
7. 7. The synchronization system according to claim 5, wherein each of the plurality of time distribution devices advances its own clock based on a signal of a specific frequency generated by a frequency signal generator.
8. A program for causing a computer to function as each unit of the time distribution device according to any one of claims 1 to 3.
Citation Information
Patent Citations
Time synchronization system
JP2018037885A
Time management device, time reference device, reference time management system, and reference time management method
JP2019035591A
Time distribution device, synchronization system, and program
JP2020077929A
Time comparison device, and time quality monitor device
JP2020096257A
Cited By
Bath tank, bathroom, and bath tank drying method
CN121843628A
Bathtub, bathroom, and bathtub drying method
EP4763017A1
Bathtub, bathroom, and bathtub drying method
WO2025164471A1
