CN111601189B - Accurate time synchronization method and system applied to cable distance measuring device - Google Patents

Accurate time synchronization method and system applied to cable distance measuring device Download PDF

Info

Publication number
CN111601189B
CN111601189B CN202010359882.6A CN202010359882A CN111601189B CN 111601189 B CN111601189 B CN 111601189B CN 202010359882 A CN202010359882 A CN 202010359882A CN 111601189 B CN111601189 B CN 111601189B
Authority
CN
China
Prior art keywords
time synchronization
equipment
network
message
optical fiber
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
CN202010359882.6A
Other languages
Chinese (zh)
Other versions
CN111601189A (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.)
Diqing Power Supply Bureau of Yunnan Power Grid Co Ltd
Original Assignee
Diqing Power Supply Bureau of Yunnan Power Grid Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Diqing Power Supply Bureau of Yunnan Power Grid Co Ltd filed Critical Diqing Power Supply Bureau of Yunnan Power Grid Co Ltd
Priority to CN202010359882.6A priority Critical patent/CN111601189B/en
Publication of CN111601189A publication Critical patent/CN111601189A/en
Application granted granted Critical
Publication of CN111601189B publication Critical patent/CN111601189B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0079Operation or maintenance aspects
    • H04Q2011/0081Fault tolerance; Redundancy; Recovery; Reconfigurability

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Electric Clocks (AREA)

Abstract

The invention provides an accurate time synchronization method and system applied to a cable distance measuring device, which comprises the steps of determining head and tail equipment in a time synchronization network; determining a master device in a time synchronization network; numbering a plurality of slave devices in the time synchronization network to complete the detection of the time synchronization network form; the master device sequentially carries out automatic time synchronization on the plurality of slave devices; if the slave equipment can receive the time synchronization initiating message sent by the master equipment, stopping boundary detection and completing the automatic time synchronization process; and if the time synchronization initiating message sent by the master equipment can not be received even if the set time of part of the slave equipment exceeds the set time, activating boundary detection again to realize the dynamic maintenance of the network. The invention runs a clock synchronization algorithm on the basis of the existing communication network, synchronizes the equipment time in the network, and the time synchronization precision can reach nanosecond level; the optical fiber is used for connecting each device, so that the time synchronization communication channel is not influenced by environmental factors, and meanwhile, the reliability and the stability of the network are ensured to the maximum extent by using a dynamic network monitoring algorithm.

Description

Accurate time synchronization method and system applied to cable distance measuring device
Technical Field
The invention relates to the technical field of network system time synchronization, in particular to an accurate time synchronization method and system applied to a cable distance measuring device.
Background
With the continuous and high-speed development of economy, the era of digitalization and networking of various industries has come. The processor and the network equipment provide a better platform for data exchange, analysis and application among all control information systems, but simultaneously put forward higher requirements on the accuracy of timestamps of various real-time data and historical data in the systems, and the network equipment in the systems runs respective time, so that the time of the whole system is seriously disordered after the time is long, normal data statistical analysis service cannot be normally carried out, and the time of the network equipment in the whole system needs to be unified.
In the prior art, common network time synchronization methods include GPS satellite time synchronization, network protocol synchronization and the like, but because the GPS satellite time synchronization network time synchronization method needs to receive satellite signals in real time, the quality of the satellite signals is greatly influenced by weather, and no signals exist in special environments such as tunnels, the reliability of the GPS satellite time synchronization network time synchronization method is poor, the GPS satellite time synchronization network time synchronization method can be used only in certain situations, and the usability is limited; in addition, in most cable lines, the cable is generally buried directly or arranged in an underground tunnel, and it is difficult to acquire a GPS signal, which makes it difficult to apply the cable based on the clock synchronization principle to a detection system. The precision of the network protocol synchronous network time synchronization method is only microsecond level, and the time synchronization precision is lower.
Disclosure of Invention
The invention provides an accurate time synchronization method and system applied to a cable distance measuring device, and aims to solve the problems that a network time synchronization method in the prior art is greatly influenced by environment, poor in reliability and low in time synchronization accuracy.
In one aspect, the present invention provides an accurate time synchronization method applied to a cable distance measuring device, where the accurate time synchronization method includes the following steps:
determining head and tail equipment in an optical fiber time setting network;
determining a master device in the fiber time tick network;
numbering a plurality of slave devices in the optical fiber time synchronization network to complete detection of the optical fiber time synchronization network form;
the master device sequentially carries out automatic time synchronization on the plurality of slave devices;
if the slave equipment can receive the time synchronization initiating message sent by the master equipment, stopping boundary detection and completing an automatic time synchronization process;
and if the time synchronization initiating message sent by the main equipment can not be received even if the set time is exceeded by part of the slave equipment, activating boundary detection again to realize the dynamic maintenance of the optical fiber time synchronization network.
Optionally, the specific process of determining the head-to-tail device in the optical fiber time pairing network is as follows:
a plurality of devices in the optical fiber time setting network periodically send boundary query messages to ports on two sides;
the devices receiving the boundary query message all reply a boundary query response message;
the head and tail devices only receive the boundary inquiry response message returned by the port on one side.
Optionally, a specific process of determining the master device in the optical fiber time pairing network is as follows:
the head and tail devices send a main device declaration message, and the first sending is the main device;
and if the head and tail equipment simultaneously send the main equipment declaration message, sending the main equipment declaration message again at intervals until the main equipment is determined.
Optionally, a specific process of numbering a plurality of slave devices in the optical fiber time tick network is as follows:
the main device continuously and periodically sends a boundary query message to a port on the idle side, sends a main device declaration message to the other end, and marks the device number of the main device;
the first slave device receiving the main device declaration message adds 1 to the device number of the main device to serve as the device number of the first slave device, and replies a main device declaration response message;
the first slave equipment continuously forwards the main equipment declaration message to second slave equipment, and the second slave equipment adds 1 to the equipment number of the first slave equipment and replies a main equipment declaration response message;
and the second slave equipment continues to forward the master equipment declaration message until the numbering of all the slave equipment in the optical fiber time tick network is completed, and the master equipment receives master equipment declaration response messages replied by all the slave equipment.
Optionally, the automatic time setting process specifically includes:
the master device sends a time synchronization initiating message to the target time synchronization device;
the time setting initiating message contains the number of the target time setting device, and the time setting initiating message is forwarded if the target time setting device is not the target time setting device until the time setting initiating message is sent to the target time setting device;
after receiving the time synchronization initiating message, the target time synchronization equipment feeds back a time synchronization response message to the master equipment;
the master device calculates delay data according to the time synchronization initiating message and the time synchronization responding message;
and the master device sends a time synchronization correction message to the target time synchronization device, and the target time synchronization device performs time synchronization according to the time synchronization correction message.
By adopting the technical scheme, the main equipment in the optical fiber time synchronization network can automatically initiate the time synchronization action, thereby greatly reducing the workload of manual configuration and reducing the network construction and maintenance cost.
Optionally, the specific process of dynamic maintenance of the optical fiber time synchronization network is as follows:
activating boundary detection for part of slave devices which cannot receive the time synchronization initiation message sent by the master device, namely, the part of slave devices sends boundary query messages to ports on two sides again;
determining head-to-tail equipment in a new optical fiber time-tick network formed by the partial slave equipment;
determining a master-slave device in the new fiber pair network of the partial slave devices;
and in the new optical fiber time synchronization network, restarting an automatic time synchronization process.
By adopting the technical scheme, when some equipment in the optical fiber time synchronization network fails, the serious problem that a large amount of equipment in the network system cannot continue time synchronization due to the failure of some or a few of equipment can be avoided, and the reliability of the whole network system is improved; and each device is connected through the optical fiber, so that the communication channel is not influenced by weather conditions and installation environment any more, and meanwhile, the reliability and the stability of the optical fiber time synchronization network are ensured to the maximum extent by using a dynamic network monitoring algorithm.
On the other hand, the invention also provides an accurate time setting network system applied to the cable distance measuring device, which comprises a plurality of devices connected end to end through optical fibers, wherein the devices form a linear optical fiber network system.
Optionally, the equipment includes the connector, the one end and the power supply terminal of connector are connected electrically, the other end of connector is connected with the one end of FPGA chip is electric, the other end and the one end of Serdes chip of FPGA chip are connected electrically, the other end and the optical interface electricity of Serdes chip are connected, optical interface passes through another equipment of fiber connection.
In the technical scheme, each device is provided with two paths of external optical fiber interfaces, and the two optical fiber paths are necessary conditions that all devices in the optical fiber time synchronization network can be connected end to end through optical fibers to form a linear optical fiber network system; the connector on the equipment is used for supplying power to the equipment.
By adopting the technical scheme, the clock synchronization algorithm is operated on the basis of the existing communication network, the FPGA chip is used as the main control chip, the practicability of the network time synchronization algorithm is improved, the recovery clock of the Serdes chip is used as the working clock of the FPGA chip, the uniformity of the clock in the network is solved, and the nanosecond-level network time synchronization precision can be achieved.
Compared with the prior art, the invention has the following beneficial effects:
(1) the invention can automatically identify the scale of the optical fiber time synchronization network, thereby initiating an automatic time synchronization process without manual configuration, reducing the workload input, and when some nodes in the optical fiber time synchronization network have faults, the invention can avoid the serious problem that a large amount of equipment in the optical fiber time synchronization network cannot continuously time synchronization because some or a small amount of equipment has faults through dynamic network maintenance, thereby improving the reliability of the whole optical fiber time synchronization network.
(2) The invention uses FPGA as the main control chip, improves the real-time performance of the network time synchronization algorithm, adopts the recovery clock of the Serdes chip as the working clock of the FPGA in the equipment, solves the problem of the clock uniformity in the optical fiber time synchronization network, has higher time synchronization precision and can reach nanosecond level.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious to those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
Fig. 1 is a flowchart of an accurate time synchronization method applied to a cable distance measuring device according to the present invention;
FIG. 2 is a schematic structural diagram of an apparatus applied to a precise time synchronization system of a cable distance measuring device according to the present invention;
FIG. 3 is a schematic diagram of a network structure of an accurate time synchronization system applied to a cable distance measuring device according to the present invention;
FIG. 4 is a schematic diagram illustrating a numbering principle of slave devices according to an embodiment of the present invention;
FIG. 5 is a schematic diagram illustrating a slave device timing principle according to an embodiment of the present invention;
FIG. 6 is a diagram illustrating a slave device time tick process according to an embodiment of the present invention;
fig. 7 is a schematic diagram of dynamic network maintenance in accordance with the present invention.
Detailed Description
As shown in fig. 1, the present invention provides an accurate time synchronization method applied to a cable distance measuring device, where the accurate time synchronization method includes the following steps:
determining head and tail equipment in an optical fiber time setting network;
determining a master device in the fiber time tick network;
numbering a plurality of slave devices in the optical fiber time synchronization network to complete detection of the optical fiber time synchronization network form;
the master device sequentially carries out automatic time synchronization on the plurality of slave devices;
if the slave equipment can receive the time synchronization initiating message sent by the master equipment, stopping boundary detection and completing an automatic time synchronization process;
and if the time synchronization initiating message sent by the main equipment can not be received even if the set time is exceeded by part of the slave equipment, activating boundary detection again to realize the dynamic maintenance of the optical fiber time synchronization network.
On the basis of the above embodiment, further, a specific process for determining head-to-tail equipment in the optical fiber pair network is as follows:
a plurality of devices in the optical fiber time setting network periodically send boundary query messages to ports on two sides;
the devices receiving the boundary query message all reply a boundary query response message;
the head and tail devices only receive the boundary inquiry response message returned by the port on one side.
On the basis of the foregoing embodiment, further, a specific process of determining the master device in the optical fiber pair network is as follows:
the head and tail devices send a main device declaration message, and the first sending is the main device;
and if the head and tail equipment simultaneously send the main equipment declaration message, sending the main equipment declaration message again at intervals until the main equipment is determined.
On the basis of the above embodiment, further, a specific process of numbering a plurality of slave devices in the optical fiber time tick network is as follows:
the main device continuously and periodically sends a boundary query message to a port on the idle side, sends a main device declaration message to the other end, and marks the device number of the main device;
the first slave device receiving the main device declaration message adds 1 to the device number of the main device to serve as the device number of the first slave device, and replies a main device declaration response message;
the first slave equipment continuously forwards the main equipment declaration message to second slave equipment, and the second slave equipment adds 1 to the equipment number of the first slave equipment and replies a main equipment declaration response message;
and the second slave equipment continues to forward the master equipment declaration message until the numbering of all the slave equipment in the optical fiber time tick network is completed, and the master equipment receives master equipment declaration response messages replied by all the slave equipment.
On the basis of the above embodiment, further, the automatic time setting process specifically includes:
the master device sends a time synchronization initiating message to the target time synchronization device;
the time setting initiating message contains the number of the target time setting device, and the time setting initiating message is forwarded if the target time setting device is not the target time setting device until the time setting initiating message is sent to the target time setting device;
after receiving the time synchronization initiating message, the target time synchronization equipment feeds back a time synchronization response message to the master equipment;
the master device calculates delay data according to the time synchronization initiating message and the time synchronization responding message;
and the master device sends a time synchronization correction message to the target time synchronization device, and the target time synchronization device performs time synchronization according to the time synchronization correction message.
By adopting the technical scheme, the main equipment in the optical fiber time synchronization network can automatically initiate the time synchronization action, thereby greatly reducing the workload of manual configuration and reducing the network construction and maintenance cost.
On the basis of the above embodiment, further, the specific process of dynamic maintenance of the optical fiber time synchronization network is as follows:
activating boundary detection for part of slave devices which cannot receive the time synchronization initiation message sent by the master device, namely, the part of slave devices sends boundary query messages to ports on two sides again;
determining head-to-tail equipment in a new optical fiber time-tick network formed by the partial slave equipment;
determining a master-slave device in the new fiber pair network of the partial slave devices;
and in the new optical fiber time synchronization network, restarting an automatic time synchronization process.
By adopting the technical scheme, when some equipment in the optical fiber time synchronization network fails, the serious problem that a large amount of equipment in the network system cannot continue time synchronization due to the failure of some or a few of equipment can be avoided, and the reliability of the whole network system is improved; and each device is connected through the optical fiber, so that the communication channel is not influenced by weather conditions and installation environment any more, and meanwhile, the reliability and the stability of the optical fiber time synchronization network are ensured to the maximum extent by using a dynamic network monitoring algorithm.
The invention also provides an accurate time synchronization network system applied to the cable distance measuring device, which comprises a plurality of devices connected end to end through optical fibers, wherein the devices form a linear optical fiber network system.
As shown in fig. 2, in addition to the above embodiment, the device further includes a connector, one end of the connector is electrically connected to a power terminal, the other end of the connector is electrically connected to one end of an FPGA chip, the other end of the FPGA chip is electrically connected to one end of a Serdes chip, the other end of the Serdes chip is electrically connected to an optical interface, and the optical interface is connected to another device through an optical fiber, and it should be particularly noted that, as shown in fig. 2, the present invention uses Serdes1 to connect an optical interface 1 to form one optical fiber path, and uses Serdes2 to connect an optical interface 2 to form another optical fiber path, and the FPGA chip specifically uses FPGA EP4CE 30.
In the technical scheme, each device is provided with two paths of external optical fiber interfaces, and the two optical fiber paths are necessary conditions that all devices in the optical fiber time synchronization network can be connected end to end through optical fibers to form a linear optical fiber network system; the connector on the equipment is used for supplying power to the equipment.
By adopting the technical scheme, the clock synchronization algorithm is operated on the basis of the existing communication network, the FPGA chip is used as the main control chip, the practicability of the network time synchronization algorithm is improved, the recovery clock of the Serdes chip is used as the working clock of the FPGA chip, the uniformity of the clock in the network is solved, and the nanosecond-level network time synchronization precision can be achieved.
Examples
The method of the invention is explained in detail by adopting a linear optical fiber time synchronization network consisting of seven devices as follows:
referring to fig. 3, for a linear optical fiber time-tick network structure diagram formed by seven devices connected end to end by optical fibers, first, after each device in the diagram is powered on, each device periodically sends a boundary query message to two ports, and devices receiving the boundary query message all reply a boundary query response message, but the device 1 and the device 7 in the diagram only receive a boundary query response message, so that it can be determined that the device 1 and the device 7 are two devices located at the head and the tail, respectively.
Secondly, the head and the tail of the two devices both send a main device declaration message, and the first sending is the main device, in this embodiment, it is assumed that the device 1 is the main device, and the devices 2 to 7 are all slave devices; after determining that the device 1 is the master device, the process of numbering the slave devices in the entire optical fiber time tick network is shown in fig. 4, where the device 1 is used as the first station in the optical fiber time tick network to send a message declared by the master device, therefore, the source device number is 1 (source 1 in the figure), the device 2 receiving the master declaration message sent by the device 1 will add 1 to the source device number, and forwards the main device declaration message to the device 3, and at the same time, adopts its own source device number 2, (source 2 in fig. 4) to the main device, that is, the device 1 replies a master declaration response message until the device 1 receives master declaration response messages replied by all devices in the optical fiber pair network, that is, until the device 7 in fig. 4 replies the master declaration response packet to the master device, the process of numbering all devices in the optical fiber timing network is completed, and the number of devices in the optical fiber timing network is recorded.
Then, the master device, i.e. the device 1, refers to the IEEE1588 accurate clock time synchronization principle according to the point-to-point time synchronization method, and time synchronization is performed on all nodes in the optical fiber time synchronization network, i.e. the slave devices from the device 2 to the device 7, in sequence, since the time synchronization initiation message sent by the master device includes the number of the target time synchronization device, the slave device that is not the target time synchronization device will forward the time synchronization initiation message.
As shown in fig. 5, taking the device 3 as an example of a target time synchronization device, the device 1 first sends a time synchronization initiating message, the number of the target time synchronization device in the time synchronization initiating message is 3, the device 2 that receives the time synchronization initiating message forwards the time synchronization initiating message to the device 3, the device 3 feeds back a time synchronization response message, the time synchronization response message is fed back to the device 1 through the device 2, after the device 1 calculates delay data according to the time synchronization initiating message and the time synchronization response message, the device 2 forwards the time synchronization correcting message to the device 3, and the device 3 performs time synchronization according to the time synchronization correcting message, it needs to be noted that all slave devices in the optical fiber time synchronization network are target time synchronization devices, and time synchronization of all devices in the optical fiber time synchronization network is sequentially completed through the above time synchronization method.
Explaining the time synchronization process of the device 3 by adopting an IEEE1588 timestamp, wherein the device 1 is a master device, the devices 2 to 7 are all slave devices, and the device 3 is a target time synchronization device, as shown in fig. 6, the master device records the time of the time synchronization starting moment, i.e. t1And will t1Sending the data packet to the device 2 in the form of a data packet, forwarding the data packet to the destination time synchronization device by the device 2, immediately returning the received data packet to the device 2 by the device 3 (slave device), forwarding the data packet to the master device by the device 2, namely the device 1, and recording the current time as t by the master device when the master device receives the data packet returned by the device 32The transmission delay t from the master to the slaveΔ=0.5*(t2-t1). The master device calculates good tΔThen, at t3Time of day transmission t3+tΔTo a slave device, i.e. device 3, device 3 will t3+tΔUpdated to local time, i.e. time T-T of device 33+tΔ
Referring to fig. 3 and 7, the dynamic network maintenance process performed by the present invention is described. When the devices 1 to 7 in fig. 3 all work normally, the network master-slave devices, the network forms and the device numbers are determined by the above time synchronization method, assuming that the device 1 is determined as the master device, after the network form is determined, the master device will periodically send a time synchronization initiation message to the slave device, and when the devices 2 to 7 all can receive the time synchronization initiation message sent by the master device, the boundary detection will be actively stopped, that is, the devices in the optical fiber time synchronization network will stop sending the boundary query message. Referring to fig. 7, if the device 4 fails, the device 5-device 7 in the optical fiber time synchronization network may not receive the time synchronization initiation message of the master device, and once the time synchronization initiation message is still not received after a period of time, the device 5-device 7 reactivates the boundary detection, that is, restarts sending the boundary query message, finds out the master device and the slave device in the new independent optical fiber time synchronization network formed by the device 5-device 7, and further restarts the automatic time synchronization process in the new independent optical fiber time synchronization network, thereby implementing dynamic network maintenance.
It should be noted that, in the present invention, the terms "first" and "second" are sequentially mentioned, and the second slave device is located behind the first slave device, which is only for better describing the method of the present invention, but has no practical meaning.
The examples provided are only for illustrating the general concept of the present invention and do not constitute a limitation to the scope of the present invention. Any other embodiments extended by the solution according to the invention without inventive step will be within the scope of protection of the invention for a person skilled in the art.

Claims (8)

1. An accurate time synchronization method applied to a cable distance measuring device is characterized by comprising the following steps:
sequentially connecting a plurality of devices in the optical fiber time setting network end to end through optical fibers;
determining head-to-tail equipment in a plurality of equipment in the optical fiber time setting network;
determining a main device in the optical fiber time synchronization network, wherein the main device is one of the head and tail devices;
numbering a plurality of slave devices in the optical fiber time synchronization network to complete detection of the optical fiber time synchronization network form;
the master device sequentially carries out automatic time synchronization on the plurality of slave devices;
if the slave equipment can receive the time synchronization initiating message sent by the master equipment, stopping boundary detection and completing an automatic time synchronization process;
and if the time synchronization initiating message sent by the main equipment can not be received even if the set time is exceeded by part of the slave equipment, activating boundary detection again to realize the dynamic maintenance of the optical fiber time synchronization network.
2. The method for accurate time synchronization of a cable distance measuring device according to claim 1, wherein the specific process of determining the head-to-tail device in the optical fiber time synchronization network is as follows:
a plurality of devices in the optical fiber time setting network periodically send boundary query messages to ports on two sides;
the devices receiving the boundary query message all reply a boundary query response message;
the head and tail devices only receive the boundary inquiry response message returned by the port on one side.
3. The method for accurate time synchronization of a cable distance measuring device according to claim 1, wherein the specific process of determining the master device in the optical fiber time synchronization network is as follows:
the head and tail devices send a main device declaration message, and the first sending is the main device;
and if the head and tail equipment simultaneously send the main equipment declaration message, sending the main equipment declaration message again at intervals until the main equipment is determined.
4. The method for accurately time tick according to claim 1 applied to a cable distance measuring device, wherein the specific process of numbering the slave devices in the optical fiber time tick network is as follows:
the main device continuously and periodically sends a boundary query message to a port on the idle side, sends a main device declaration message to the other end, and marks the device number of the main device;
the first slave device receiving the main device declaration message adds 1 to the device number of the main device to serve as the device number of the first slave device, and replies a main device declaration response message;
the first slave equipment continuously forwards the main equipment declaration message to second slave equipment, and the second slave equipment adds 1 to the equipment number of the first slave equipment and replies a main equipment declaration response message;
and the second slave equipment continues to forward the master equipment declaration message until the numbering of all the slave equipment in the optical fiber time tick network is completed, and the master equipment receives master equipment declaration response messages replied by all the slave equipment.
5. The accurate time synchronization method applied to the cable distance measuring device according to claim 1, wherein the automatic time synchronization process specifically comprises the following steps:
the master device sends a time synchronization initiating message to the target time synchronization device;
the time setting initiating message contains the number of the target time setting device, and the time setting initiating message is forwarded if the target time setting device is not the target time setting device until the time setting initiating message is sent to the target time setting device;
after receiving the time synchronization initiating message, the target time synchronization equipment feeds back a time synchronization response message to the master equipment;
the master device calculates delay data according to the time synchronization initiating message and the time synchronization responding message;
and the master device sends a time synchronization correction message to the target time synchronization device, and the target time synchronization device performs time synchronization according to the time synchronization correction message.
6. The method for accurately setting time of a cable distance measuring device according to claim 1, wherein the dynamic maintenance of the optical fiber setting time network comprises the following steps:
activating boundary detection for part of slave devices which cannot receive the time synchronization initiation message sent by the master device, namely, the part of slave devices sends boundary query messages to ports on two sides again;
determining head-to-tail equipment in a new optical fiber time-tick network formed by the partial slave equipment;
determining a master-slave device in the new fiber pair network of the partial slave devices;
and in the new optical fiber time synchronization network, restarting an automatic time synchronization process.
7. An accurate time synchronization system applied to a cable distance measuring device, which is characterized in that the accurate time synchronization method applied to the cable distance measuring device based on any one of claims 1 to 6 comprises a plurality of devices which are connected end to end through optical fibers, and a plurality of devices form a linear optical fiber time synchronization network system.
8. The accurate time synchronization system applied to the cable distance measuring device as claimed in claim 7, wherein the device comprises a connector, one end of the connector is electrically connected with a power terminal, the other end of the connector is electrically connected with one end of an FPGA chip, the other end of the FPGA chip is electrically connected with one end of a Serdes chip, the other end of the Serdes chip is electrically connected with an optical interface, and the optical interface is connected with another device through an optical fiber.
CN202010359882.6A 2020-04-30 2020-04-30 Accurate time synchronization method and system applied to cable distance measuring device Active CN111601189B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010359882.6A CN111601189B (en) 2020-04-30 2020-04-30 Accurate time synchronization method and system applied to cable distance measuring device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010359882.6A CN111601189B (en) 2020-04-30 2020-04-30 Accurate time synchronization method and system applied to cable distance measuring device

Publications (2)

Publication Number Publication Date
CN111601189A CN111601189A (en) 2020-08-28
CN111601189B true CN111601189B (en) 2022-01-25

Family

ID=72189499

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010359882.6A Active CN111601189B (en) 2020-04-30 2020-04-30 Accurate time synchronization method and system applied to cable distance measuring device

Country Status (1)

Country Link
CN (1) CN111601189B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112737723A (en) * 2020-12-23 2021-04-30 东禾电气有限公司 Optical fiber time synchronization method based on network delay and node ad hoc network
CN114095086B (en) * 2021-11-13 2023-05-19 南京智汇电力技术有限公司 Regional time setting method suitable for optical fiber communication

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102833062A (en) * 2012-09-25 2012-12-19 广东电网公司珠海供电局 Time synchronization method and system for synchronous messages of IEEE1588 (Precision Time Protocol) master-slave clocks of intelligent transformer substation
CN109981206A (en) * 2019-02-26 2019-07-05 深圳猛犸电动科技有限公司 Time synchronization method, device, system and terminal device, storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101998192B (en) * 2009-08-25 2015-07-22 中兴通讯股份有限公司 Method and system for time synchronization on passive optical network
CN102111380B (en) * 2009-12-25 2014-05-07 华为技术有限公司 Time synchronization method, device and system
CN103532231B (en) * 2013-09-30 2015-05-27 国家电网公司 Intelligent power distribution network IEEE1588 timing synchronization system on basis of industrial Ethernet direct connection access rings
CN110365111B (en) * 2019-07-15 2022-09-02 国电南瑞科技股份有限公司 Power line communication-based power distribution network topology automatic identification method, device and system
CN111064505B (en) * 2019-12-23 2020-10-27 广州索识信息科技有限公司 Point distribution method of optical fiber testing equipment, storage medium and optical fiber testing system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102833062A (en) * 2012-09-25 2012-12-19 广东电网公司珠海供电局 Time synchronization method and system for synchronous messages of IEEE1588 (Precision Time Protocol) master-slave clocks of intelligent transformer substation
CN109981206A (en) * 2019-02-26 2019-07-05 深圳猛犸电动科技有限公司 Time synchronization method, device, system and terminal device, storage medium

Also Published As

Publication number Publication date
CN111601189A (en) 2020-08-28

Similar Documents

Publication Publication Date Title
CN106451763B (en) A kind of intelligent substation station level bus network system without global synchronization system
CN107171441B (en) Electric power information network with clock synchronization and position positioning functions
EP3540982B1 (en) Delay management for distributed communications networks
CN111601189B (en) Accurate time synchronization method and system applied to cable distance measuring device
CN105262555B (en) Time synchronization method, programmable logic device, single board and network element
CN101697502A (en) Method for precisely synchronizing wireless sensor network under coal mine
CN103715766B (en) A kind of looped network decentralized bus protection synchronous method
CN112003768B (en) Multi-node test system and method for executing multi-node test
CN105515708B (en) A kind of clock synchronization accuracy test device and method based on FC networks
CN110035468B (en) High-reliability high-safety wireless network topology control system
CN102508113A (en) Data collection synchronous method of electrical railway distance measurement device
CN108872910B (en) Timing system and method for online verification of power quality monitoring device
CN105281885B (en) Time synchronization method and device for network equipment and time synchronization server
CN105634641A (en) Precise timing system and method based on cascade network communication of switching architecture
EP2800287B1 (en) Method and device for detecting symmetry of optical fiber
CN101145896A (en) Control system and method for clock synchronization between control stations
CN111082888B (en) Marine distributed optical fiber time service system
CN102647782B (en) A kind of physical circuit time delay defining method, clock synchronizing method and equipment thereof
CN106549822B (en) Method and device for testing response time of time synchronization message and test equipment
CN103399264A (en) Online monitoring and positioning system for local discharge of high-voltage cable
CN213126054U (en) Clock synchronization device and system
CN103427976B (en) Distribution type fiber-optic method for synchronizing time in high precision
CN116112318A (en) Electric power edge computing gateway of multi-core architecture and electric power tunnel system
CN103078728B (en) Clock synchronization system
CN112737723A (en) Optical fiber time synchronization method based on network delay and node ad hoc network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant