docs: catalogue v1.1 jay additions and v1.2 Redis store in README + protocol doc
README 'What it adds over SvxReflector' was still on the pre-v1.1
surface. Add entries for:
- per-trunk TG filters (BLACKLIST_TGS/ALLOW_TGS/TG_MAP/PEER_ID) with
the shared filter syntax
- node-list broadcasting (MsgTrunkNodeList) and its MQTT republishing
- PTY admin channel (TRUNK MUTE/UNMUTE/RELOAD/STATUS, CFG)
- optional Redis-backed config store (points at docs/REDIS.md)
Also refresh the /status and MQTT bullets to mention muted-callsigns,
Redis metrics, node lists, and MQTT_NAME.
TRUNK_PROTOCOL.md protocol-messages table was missing the jayReflector
message types — add 121 MsgTrunkNodeList and 122 MsgTrunkFilter with
their fields, plus a short paragraph explaining each. Also flesh out
MsgTrunkHello's listed fields to include the nonce/hmac/role actually
on the wire.
This commit is contained in:
1 parent
db9dcf6917
commit
65063fd92a
2 files changed
+41
-5
No files matched your search
@@ -52,11 +52,33 @@ automatically.
|
||||
- **Satellite reflectors** — lightweight relay instances that connect to a parent
|
||||
reflector instead of joining the full mesh, reducing configuration overhead for
|
||||
large deployments
|
||||
- **Per-trunk TG filters** — `BLACKLIST_TGS`, `ALLOW_TGS`, `TG_MAP` (with
|
||||
explicit-route bypass of the prefix routing check), and `PEER_ID` on each
|
||||
`[TRUNK_x]` section, with a shared filter syntax (exact, `24*` prefix,
|
||||
`2427-2438` range). Reloadable at runtime via the PTY admin channel
|
||||
- **Node-list broadcasting** — on local client login / logout / TG change the
|
||||
reflector debounces (500 ms) and emits a `MsgTrunkNodeList` to every peer
|
||||
carrying callsign + current TG + optional lat/lon/QTH. Inbound lists are
|
||||
republished via MQTT under `nodes/<peer_id>`; the local list under
|
||||
`nodes/local`
|
||||
- **PTY admin channel** — live commands written to `/dev/shm/reflector_ctrl`:
|
||||
`TRUNK MUTE|UNMUTE <section> <callsign>` (applied on the inbound audio path),
|
||||
`TRUNK RELOAD [<section>]` (re-reads filters without restart),
|
||||
`TRUNK STATUS [<section>]`, plus CFG GET/SET and the existing certificate
|
||||
commands
|
||||
- **HTTP `/status` endpoint** — JSON status with trunk state,
|
||||
active talkers, satellite connections, and static configuration
|
||||
active talkers, satellite connections, per-trunk muted callsigns,
|
||||
Redis metrics (when enabled), and static configuration
|
||||
- **MQTT publishing** — real-time event-driven updates (talker, client,
|
||||
trunk state, receiver signal levels) to an external MQTT broker, plus
|
||||
configurable periodic full status dumps
|
||||
trunk state, receiver signal levels, node lists) to an external MQTT broker,
|
||||
plus configurable periodic full status dumps. Optional `MQTT_NAME` inserts
|
||||
a path component so multiple reflectors can share a `TOPIC_PREFIX`
|
||||
- **Optional Redis-backed config store** — when `[REDIS]` is configured,
|
||||
users/passwords, cluster TGs, per-trunk filters, and trunk peers themselves
|
||||
are read from Redis. A web dashboard can add/remove users and trunk peers,
|
||||
push filter changes, and subscribe to live state (`live:client:*`,
|
||||
`live:talker:*`, `live:trunk:*`) without restarting the reflector. See
|
||||
[`docs/REDIS.md`](docs/REDIS.md)
|
||||
- SvxLink client nodes are **unmodified** — they connect to their local
|
||||
reflector as normal and are unaware of the trunk
|
||||
|
||||
|
||||
+16
-2
@@ -320,15 +320,29 @@ payload, packed using the `ASYNC_MSG_MEMBERS` macro.
|
||||
|
||||
| Type | Name | Fields |
|
||||
|------|-----------------------|--------------------------------------------------|
|
||||
| 115 | `MsgTrunkHello` | `string id`, `string local_prefix`, `uint32 priority` |
|
||||
| 115 | `MsgTrunkHello` | `string id`, `string local_prefix`, `uint32 priority`, `uint8[] nonce`, `uint8[] hmac`, `uint8 role` |
|
||||
| 116 | `MsgTrunkTalkerStart` | `uint32 tg`, `string callsign` |
|
||||
| 117 | `MsgTrunkTalkerStop` | `uint32 tg` |
|
||||
| 118 | `MsgTrunkAudio` | `uint32 tg`, `uint8[] audio` |
|
||||
| 119 | `MsgTrunkFlush` | `uint32 tg` |
|
||||
| 120 | `MsgTrunkHeartbeat` | *(no fields)* |
|
||||
| 121 | `MsgTrunkNodeList` | `string[] callsigns`, `uint32[] tgs`, `float[] lats`, `float[] lons`, `string[] qth_names` |
|
||||
| 122 | `MsgTrunkFilter` | `string filter` (shared-syntax TG filter: exact / `24*` / `10-20`, comma-separated) |
|
||||
|
||||
Type numbers 115–120 are chosen to follow the last existing SvxReflector TCP
|
||||
message type (114 = `MsgStartUdpEncryption`) without collision.
|
||||
message type (114 = `MsgStartUdpEncryption`) without collision. Types 121–122
|
||||
were added by the jayReflector integration (v1.1.0) and are optional —
|
||||
older peers silently ignore unknown message types, preserving backward
|
||||
compatibility.
|
||||
|
||||
`MsgTrunkNodeList` is emitted by the reflector on local client login, logout,
|
||||
or TG change, debounced to 500 ms, and broadcast to every trunk peer. Peers
|
||||
republish it via MQTT under `nodes/<peer_id>` so a central dashboard can see
|
||||
who is connected to each reflector.
|
||||
|
||||
`MsgTrunkFilter` is intended for satellite links to advertise TG interest to
|
||||
the parent. The parent uses it to avoid forwarding TGs the satellite does not
|
||||
want. Reserved for satellite use; trunk peers do not currently emit it.
|
||||
|
||||
Audio is transported over TCP (not UDP) — the trunk is a reliable server-to-server
|
||||
link, not a lossy radio gateway path, so TCP framing is appropriate and avoids
|
||||
|
||||
Reference in new issue
Block a user