The application of precision time protocol on EAST timing system

Z. Zhang, Binjia Xiao, Zhenshan Ji, Yong Wang, Ping WangarXiv 2018 · DOI · arXiv

Abstract: The timing system focuses on synchronizing and coordinating each subsystem according to the trigger signals. A new prototype timing slave node based on precision time protocol has been developed by using ARM STM32 platform. The proposed slave timing module is tested and results show that the synchronization accuracy between slave nodes is in sub-microsecond range.

Introduction

In nuclear fusion research, specifically for the Experimental Advanced Superconducting Tokamak (EAST), timing synchronization is critical. The system must coordinate dozens of subsystems to trigger plasma discharges simultaneously. The legacy timing system at EAST utilized a star-type topology with expensive PXI (PCI eXtensions for Instrumentation) devices and specialized multi-mode fibers. This setup was difficult to maintain because accuracy depended on matching physical fiber lengths, and each node cost upwards of $20,000. To address these scalability and cost issues, researchers developed a new prototype slave node based on the Precision Time Protocol (PTP).

System Implementation

The researchers adopted the IEEE 1588-2008 standard, known as PTP, which enables sub-microsecond synchronization through hardware-assisted timestamping.

Hardware Architecture

The prototype slave node is built around the ARM STM32F407 (Cortex-M4) microcontroller. This chip was selected for its integrated MAC (Media Access Control) unit that natively supports IEEE 1588 v2 hardware timestamping. The MAC interfaces with a LAN8720 low-power Ethernet transceiver via a Reduced Media Independent Interface (RMII).

Hardware block diagram of the STM32-based slave node.

By implementing "Approach B" timestamping at the MAC layer, the system avoids the non-deterministic jitter introduced by software stacks and operating systems, ensuring high precision.

Software Stack

The software environment utilizes the LwIP (Lightweight IP) stack. To minimize latency, the LwIP "raw API" is used to interface directly with the protocol. The PTP logic is handled by a ported version of PTPd v2 (PTP daemon), an open-source implementation of the IEEE 1588 standard.

Experimental Results

The system's performance was evaluated by comparing the 1 PPS (Pulse Per Second) signals from two prototype slave nodes against a GPS-synchronized master node. Measurements were taken using a high-precision Agilent oscilloscope.

Oscilloscope trace showing the synchronization of rising edges between two slave nodes.

The results demonstrated that the rising edges of the PPS signals between slave nodes were synchronized to within 100 ns. This level of precision meets the rigorous requirements of the EAST CODAC (Control, Data Access, and Communication) system while significantly reducing costs compared to legacy PXI-based hardware.

Conclusion

The development of an ARM-based PTP slave node provides a low-cost, scalable solution for fusion diagnostics. By leveraging standard Ethernet infrastructure, the system eliminates the need for meticulously matched fiber optic cables. Future work will focus on testing the system's robustness against network congestion and its long-term stability within the high-electromagnetic interference environment of the tokamak.

Summary updated

Abstract

The timing system focuses on synchronizing and coordinating each subsystem according to the trigger signals. A new prototype timing slave node based on precision time protocol has been developed by using ARM STM32 platform. The proposed slave timing module is tested and results show that the synchronization accuracy between slave nodes is in sub-microsecond range.
BibTeX
@misc{zhang2018application,
  author = {Z. Zhang and Binjia Xiao and Zhenshan Ji and Yong Wang and Ping Wang},
  title = {{The application of precision time protocol on EAST timing system}},
  year = {2018},
  eprint = {1806.10036},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1806.10036},
}
Figure