博文

目前显示的是标签为“IEEE-1588”的博文

How to run IEEE-1588 on Raspberry Pi hardware?

图片
  IEEE-1588 (Precision Time Protocol, PTP) provides sub-microsecond clock synchronization for networked devices. Here's how to implement it on Raspberry Pi : 1. Hardware Requirements Raspberry Pi 4 /5 (recommended) or Pi 3B+ Ethernet connection (PTP works best with wired networking) Optional: GPS module (for grandmaster clock functionality) 2. Software Setup Install Required Packages bash sudo apt update sudo apt install linuxptp ethtool Configure Network Interface Check your Ethernet interface name: bash ip a (typically  eth0  for wired connections) Enable hardware timestamping (if supported): bash sudo ethtool -T eth0 Look for: Hardware Transmit Timestamping: yes Hardware Receive Timestamping: yes If supported, enable PTP features: bash sudo ethtool --set-ts eth0 rx-filter ptpv2 3. Running PTP Option A: Ordinary Clock (Slave) bash sudo ptp4l -i eth0 -m -S -i : Interface -m : Print messages to stdout -S : Software timestamping (use  -H  for hardwa...