update ptp config and readme

This commit is contained in:
pstruebi
2025-07-21 11:24:22 +02:00
parent 3e129c3d09
commit 897705d796
3 changed files with 33 additions and 4 deletions

View File

@@ -10,8 +10,8 @@ sudo cp 90-pipewire-aes67-ptp.rules /etc/udev/rules.d/
sudo udevadm control --reload-rules && sudo udevadm trigger
# start ptp
sudo ptp4l -mq -i eth0 -f aes67.conf
also try:
sudo ptp4l -mq -i eth0 -f ptp_aes67_1.conf
also try (SOFTWARE sync!):
sudo ptp4l -i eth0 -s -l 7 -m -q
TODO: try to use two cm4 clock sync - with rpi5 and cm4 sync is lost periodicaly
@@ -30,6 +30,8 @@ pw-link -i # List input ports (sinks, e.g. Jabra SPEAK 410)
# Attach a monitor
pw-link stream_box1:receive_CH1 alsa_output.usb-0b0e_Jabra_SPEAK_410_USB_08C8C2AE9777x011200-00.analog-stereo:playback_FL
pw-link AVIOUSB-8f6326 : 2:receive_Left alsa_output.usb-0b0e_Jabra_SPEAK_410_USB_08C8C2AE9777x011200-00.analog-stereo:playback_FL
systemctl --user status pipewire
should not show broken pipe
@@ -43,4 +45,8 @@ pw-link -l
apt install ffmpeg
ffmpeg -re -i /usr/share/sounds/alsa/Front_Center.wav \
-acodec pcm_s16le -ar 48000 -ac 2 \
-f rtp rtp://239.69.150.243:5004
-f rtp rtp://239.69.150.243:5004
# troubleshooting
- if rtp sources keep 'piling up'
- $ systemctl --user restart pipewire.service

19
ptp_aes67_1.conf Normal file
View File

@@ -0,0 +1,19 @@
[global]
priority1 255
priority2 254
# Lower = more likely to become Grandmaster. Keep the same on both for "either can be master".
domainNumber 0
# Default domain
logSyncInterval -3
# AES67 profile: Sync messages every 125ms
logAnnounceInterval 1
# Announce messages every 2s (AES67 default)
logMinDelayReqInterval 0
dscp_event 46
# QoS for event messages
dscp_general 0
# QoS for general messages
step_threshold 1
# Fast convergence on time jumps
tx_timestamp_timeout 20

View File

@@ -1,6 +1,8 @@
[global]
# Avoid becoming the Grandmaster
priority1 255
priority2 254
# Converge faster when time jumps
step_threshold 1
## AES67 Profile options
@@ -8,4 +10,6 @@ step_threshold 1
logSyncInterval -3
# QoS
dscp_event 46
dscp_general 34
dscp_general 34
tx_timestamp_timeout 20