From 987353853ce7ae7137b11c1f8041a9efb01da104 Mon Sep 17 00:00:00 2001 From: Audric Date: Sun, 10 May 2026 23:09:22 +0200 Subject: [PATCH] docs: refresh peer/twin protocol docs for recent fixes PEER_PROTOCOL.md: UDP monitor-fanout filter is now gated by SelectedTgIdleFilter (commit dc3a8c0). TWIN_PROTOCOL.md: satellite-originated traffic now reaches the twin partner via forwardSatellite*ToTwin (commit ace9da6). --- docs/PEER_PROTOCOL.md | 21 ++++++++++++++------- docs/TWIN_PROTOCOL.md | 8 ++++++++ 2 files changed, 22 insertions(+), 7 deletions(-) diff --git a/docs/PEER_PROTOCOL.md b/docs/PEER_PROTOCOL.md index f811db7..025688f 100644 --- a/docs/PEER_PROTOCOL.md +++ b/docs/PEER_PROTOCOL.md @@ -250,13 +250,20 @@ keying, or marked it in its `monitoredTGs`, would never receive any audio until something forced it to PTT first. To close that gap, each reflector periodically advertises its local interest set to its trunk peers. -> The same change makes UDP audio (and `MsgUdpFlushSamples`) on a TG fan -> out to local clients monitoring it, not just the ones with that TG -> selected — the local broadcast filter is now -> `TgFilter ∪ TgMonitorFilter` for both client-originated audio and -> trunk- / satellite-received audio. Without that, the protocol-level -> interest propagation would arrive at the right reflector but stop at -> its UDP fanout — passive monitors would still hear nothing. +> UDP audio (and `MsgUdpFlushSamples`) on a TG can now fan out to local +> clients monitoring it, not just the ones with that TG selected. The +> local broadcast filter is +> `TgFilter ∪ (TgMonitorFilter ∩ SelectedTgIdleFilter)` for +> client-originated audio and trunk- / satellite-received audio, where +> `SelectedTgIdleFilter` is true iff the receiver's selected TG has no +> active local or trunk talker (with `currentTG=0` short-circuited to +> true so passive observers keep receiving). The gate keeps a busy QSO +> on the selected TG from being interleaved with monitor-TG UDP frames +> at a client whose svxlink decoder cannot demultiplex +> (`MsgUdpAudio` carries no TG field). Without the OR arm at all, the +> protocol-level interest propagation would arrive at the right +> reflector but stop at its UDP fanout — passive monitors would still +> hear nothing. `MsgPeerTgInterest(peer_id, tgs)` carries a list of TGs that this reflector's local clients have either selected (`tg`) or are monitoring diff --git a/docs/TWIN_PROTOCOL.md b/docs/TWIN_PROTOCOL.md index 2ebaa4f..95a8a10 100644 --- a/docs/TWIN_PROTOCOL.md +++ b/docs/TWIN_PROTOCOL.md @@ -161,6 +161,14 @@ but without the `isOwnedTG` gate. The twin does *not* re-forward the audio to its own external trunks (that would duplicate — external trunks are only held by the primary; see below). +Conversely, traffic originated by a downstream satellite is forwarded +to the twin partner symmetrically with how it reaches local trunks: +`SatelliteLink::handleMsgPeer{TalkerStart,TalkerStop,Audio,Flush}` +calls `Reflector::forwardSatellite{Audio,Stop,RawAudio,Flush}ToTwin`, +which delegates to the same `TwinLink::onLocal*` methods used by the +local-client TX path. Without this, the twin partner would be deaf to +all satellite-originated activity. + --- ## External-Trunk Ownership (Active/Active)