diff --git a/README.md b/README.md index 00cb027..4aeda3a 100644 --- a/README.md +++ b/README.md @@ -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 \ No newline at end of file + -f rtp rtp://239.69.150.243:5004 + +# troubleshooting +- if rtp sources keep 'piling up' + - $ systemctl --user restart pipewire.service \ No newline at end of file diff --git a/ptp_aes67_1.conf b/ptp_aes67_1.conf new file mode 100644 index 0000000..c4c1283 --- /dev/null +++ b/ptp_aes67_1.conf @@ -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 \ No newline at end of file diff --git a/aes67.conf b/ptp_aes67_2.conf similarity index 78% rename from aes67.conf rename to ptp_aes67_2.conf index d1931cc..03ff3fb 100644 --- a/aes67.conf +++ b/ptp_aes67_2.conf @@ -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 \ No newline at end of file +dscp_general 34 + +tx_timestamp_timeout 20 \ No newline at end of file