docs: sync the guides with what changed since 2.6.0

Unit data on a shared MASTER, TG 4000 on a multi-peer MASTER, the
announcements' quiet-TG wait and tg_quiet_for, connected_at in topology;
monitor MAP section, dashboard config reload, SERVER_STATUS_URL and the
WebSocket compressed once per broadcast. English and Spanish.
pull/148/head
Rodrigo Pérez 1 month ago
parent b896ceefd1
commit 2e7a995efc

@ -25,7 +25,7 @@ Single uvicorn/FastAPI process:
| Route / role | Content |
|--------------|---------|
| `/api/*` | Dashboard config, auth, self-service, alias/status proxies |
| `/ws` | `conf,<group>` protocol — CTABLE, Last Heard, voice |
| `/ws` | `conf,<group>` protocol — CTABLE, Last Heard, voice. See [WebSocket compression](#websocket-compression). |
| Ingest (background) | `MONITOR_APP.INGEST`: `tcp` (client to `ADN_CONNECTION`) or `mqtt` |
| Aliases (background) | Download → import with staging + RENAME |
@ -41,6 +41,11 @@ Legacy pickle, v1 HELLO, and v2 slim (`dashboard_state` + `voice_event`) — see
- Dev: Vite proxies `/api` and `/ws` to `MONITOR_APP.LISTEN_PORT`.
- Production: nginx serves `frontend/dist/` and proxies `/api` + `/ws` to the same FastAPI port.
<a id="websocket-compression"></a>
### WebSocket compression
The dashboard opens `/ws?z=1` when the browser has `DecompressionStream`. Each broadcast of 512 bytes or more is then compressed once with zlib and sent as the same binary frame to every such tab, which inflates it and handles the messages in arrival order; shorter ones stay text. Tabs without `?z=1` (older browsers, or a tab still on an older frontend) get plain text. uvicorn's per-connection `permessage-deflate` is off: it compressed every message once per tab, which was the largest share of the monitor's CPU with many tabs open (37 % on a server with 29). Opcodes and JSON are the same either way, and nginx needs no change.
## Hotspot proxy
**Integrated (default):** **`adn-server.py`** runs UDP fan-in from **`PROXY.LISTEN_PORT`** into **`PROXY.TARGET_SYSTEM`**; **`SELF_SERVICE`** in **`adn-server.yaml`** drives **RPTO** from MySQL **`Clients`**. See [Hotspot proxy (integrated)](../server/user-guide/hotspot-proxy.md).

@ -98,8 +98,28 @@ Obsolete **`WEBSOCKET_SERVER`** YAML (Twisted on a separate port) is ignored; us
| **SELF_SERVICE** | If `true`, the UI can show the **Self-service** nav entry (monitor API + MySQL required). |
| **SHOW_CONSOLE** | Show console page (call start/end messages). |
| **MIN_DURATION** | Minimum call duration (seconds) for **dashboard** Last Heard table (Last Heard page may still show shorter). |
| **SERVER_STATUS_URL** | JSON feed for the network server list (`/serverstatus`), proxied at `GET /api/servers/status`. Default `https://adn.systems/servers/status.json`. |
| **nav_links**, **footer**, **news** | Optional structured links / marquee items. |
Changes to **`DASHBOARD`** and **`MAP`** apply without a restart: `/api/config/dashboard` rebuilds them when `adn-monitor.yaml` changes on disk and keeps the last good version if a save leaves the file broken. Visitors get them on their next page load. Ports, database and ingest are still read only at start.
---
## `MAP`
Maps on **Home** (a flag over each country with a call on air) and **Linked Systems** (the connected systems). Markers come from the coordinates each peer sends when it logs in (RPTC); systems that report none are left out, or placed on their country with `APPROX_BY_COUNTRY`.
| Key | Meaning |
|-----|---------|
| **ENABLED** | Show both maps (default `true`). |
| **STYLE** | `1` (default) raster tiles from `TILE_URL`; `2` vector world: country shapes with their codes, active countries outlined, no tile provider. |
| **TILE_URL**, **TILE_URL_DARK**, **ATTRIBUTION**, **MAX_ZOOM** | Raster tiles for style 1. By default OpenStreetMap, darkened with a CSS filter in the dark theme; `TILE_URL_DARK` uses a real dark basemap instead. Keep `ATTRIBUTION` as the tile provider asks. |
| **ZOOM**, **CENTER** | First view when the visitor has no saved one. `auto` (default) fits the whole world to each map, phone or desktop; a number (quarter steps, e.g. `6` or `7.5`) fixes the zoom around `CENTER` `[lat, lon]`. |
| **HOTSPOT_PRECISION**, **REPEATER_PRECISION** | Decimals kept in the coordinates sent to the browser: `2` is about 1 km, `3` about 100 m, `null` keeps them as reported. Hotspots default to `2`, since they usually sit at someone's home; repeaters to `null`. |
| **APPROX_BY_COUNTRY** | Place systems with no coordinates on their country (from the DMR ID prefix), drawn dashed and labelled approximate (default `true`). |
| **GPS_URL**, **GPS_LABEL**, **GPS_REFRESH_SEC** | Optional extra layer from your own feed (APRS gateway, GPS service): GeoJSON points, a list of `{callsign, lat, lon}` or `{"stations": [...]}`. Not offered while `GPS_URL` is empty. |
| **OVERRIDES** | Fixed coordinates for systems that report none, as `peer ID: [lat, lon]`. |
---
## Database schema and migrations

@ -171,6 +171,7 @@ Committed example: `schemas/examples/dashboard_state.json`.
| `systems[].peers[]` | array | no | `{id, connected, ip?, port?}` per peer radio. |
| `systems[].peers[].latitude`, `longitude`, `height` | string | no | Site data as the peer sent it in RPTC. |
| `systems[].peers[].options` | string | no | OPTIONS line with the static TGs the peer actually gets (its own plus the MASTER's `TS1_STATIC` / `TS2_STATIC`, yaml ones first); `PASS=` stripped. |
| `systems[].peers[].connected_at` | int | no | Unix time when the peer finished logging in. |
| `systems[].peers[].ts1_static`, `ts2_static` | array of string | no | Static TGs the peer actually gets per slot, same order. |
| `systems[].peers[].single_mode` | bool | no | `SINGLE=1` from the peer's OPTIONS, else the MASTER's `SINGLE_MODE`. |
| `systems[].peers[].ua_timer_min` | number | no | `TIMER` from the peer's OPTIONS (minutes), else `DEFAULT_UA_TIMER`; omitted when infinite. |

@ -97,6 +97,7 @@ Passed to `on_load` as `server_ctx` (`application/plugins/application/context.py
| `call_later(delay_s, fn, *args)` | Reactor timer |
| `send_dmrd(pkt) -> bool` | Send one DMRD frame — **only** for a plugin granted it in `PLUGINS.send`, otherwise `None` ([Sending](#sending-unit-data-and-group-voice-opt-in)) |
| `voice_slot_for_tg(tg)` | MASTER slot to speak `tg` on now (where it has a dynamic session or an active bridge leg first, then TS2, then TS1), `None` while every slot is busy or `tg` is not in the plugin's `group_voice_tgs` |
| `tg_quiet_for(tg)` | Seconds `tg` has been quiet: `0.0` while a stream on it is live on any MASTER, PEER or OpenBridge, else the time since an over on it last started or ended; `inf` if never heard. The server's own voice does not count. `0.0` if `tg` is not in the plugin's `group_voice_tgs` |
**Pattern:** do only dispatch in `on_event`; call `defer_to_thread` for file writes, HTTP, heavy CPU.

@ -11,6 +11,16 @@
- Unit data (SMS, ACKs) whose destination was last heard on the same hotspot it came from is not sent back to that hotspot: both radios hear each other on RF, and the echo would transmit over their own exchange.
- Unit data to an individual ID last heard on a non-OPENBRIDGE system less than 900 s ago is not fanned out to the OpenBridges; the `SUB_MAP` lookup delivers it locally. Subscribers learned over an OpenBridge, or older entries, keep the fan-out.
<a id="unit-data-shared-master"></a>
### Unit data on a shared MASTER
Unit data (CSBK preambles, data headers and rate 1/2, 3/4 and 1 blocks: SMS, GPS/LRRP, ARS) only goes to the hotspot where its destination was last heard:
- To an ID never heard on the MASTER, or whose hotspot is no longer connected, it is dropped on a MASTER shared by several hotspots (`MAX_PEERS` above 1, like the integrated proxy's target) instead of being sent to all of them. A single-peer MASTER keeps the legacy broadcast.
- It is not sent to a hotspot while that hotspot carries voice on the slot (on any slot if it is simplex). MMDVMHost takes a CSBK or data header in the middle of a network call, switches the slot to data and drops the voice until the next sync burst, so listeners heard a short crackle each time a radio sent its position. A radio never sends data over a busy slot either; what is dropped is left to the radio's own retries.
Private voice is not affected.
<a id="sub_map-persistence"></a>
### SUB_MAP persistence

@ -67,11 +67,11 @@ In-band bridge activation/deactivation is applied on **voice terminator (VTERM)*
- Clears per-peer UA sessions in memory (**all slots** for that peer).
- Deletes matching rows from **`peer_dynamic_tgs`** (MariaDB).
- Clears stale **STATUS** RX fields so a later **RPTO** does not re-seed the old TG.
- On a MASTER of its own, runs **in-band bridge deactivation** on the slot (same as legacy). On a shared **inject-only** MASTER it does not: its legs belong to every hotspot on it, and in-band 4000 would set them all IDLE on that slot (the other hotspots' dynamics and OPTIONS statics).
- On a MASTER of its own, runs **in-band bridge deactivation** on the slot (same as legacy). On a MASTER shared by several hotspots (the **inject-only** proxy target, or `MAX_PEERS` above 1) it does not: its legs belong to every hotspot on it, and in-band 4000 would set them all IDLE on that slot (the other hotspots' dynamics and OPTIONS statics).
- Sends **`GROUP VOICE,INGRESS,RX,…,4000`** to the monitor (not **START**) so **SINGLE=0** multi-dynamic chips clear **without** lighting a live TX chip.
- On **inject-only** MASTER, pushes updated **CONFIG_SND** to the monitor.
- On a shared MASTER, pushes updated **CONFIG_SND** to the monitor.
**Inject-only vs global:** With integrated **`PROXY`**, reset is **per peer** (only that hotspot’s dynamics). Without inject-only filtering, legacy **`deactivate_all_dynamic_bridges`** still runs for the whole system.
**Shared vs single-peer MASTER:** With integrated **`PROXY`**, or on any MASTER with `MAX_PEERS` above 1, reset is **per peer** (only that hotspot’s dynamics). On a single-peer MASTER, legacy **`deactivate_all_dynamic_bridges`** still runs for the whole system.
**TG 4000 must never appear** as a dynamic UA chip on the monitor or in `peer_dynamic_tgs`.

@ -62,7 +62,7 @@ Configure **`TTS_VOCODER_CMD`** or **`TTS_AMBESERVER_HOST`** / **`TTS_AMBESERVER
## Anti-collision (QSO) with announcements
The plugin plays **one announcement per TG at a time**; others for the same TG wait in order, 1.5 s apart. An item that fires while its TG is on air is retried every 3 s. The slot comes from `voice_slot_for_tg` (where the TG has a dynamic session or an active bridge leg on the MASTER, then TS2, then TS1); while every slot is busy it retries every 5 s, up to 60 times, then skips that playback. Frames are paced at 58 ms after a 0.5 s start delay.
The plugin plays **one announcement per TG at a time**; others for the same TG wait in order, 1.5 s apart. An item that fires while its TG is on air is retried every 3 s. Before choosing a slot it waits until the TG has been quiet for `tg_quiet_s` (the plugin's `config.yaml`, default 3 s; `0` turns it off): no over starting or ending on that TG from any hotspot, MASTER, bridge or OpenBridge, so an announcement never starts in the pause between two overs of a QSO. While voice is live it checks again every 5 s; in a pause it starts as soon as the TG has been quiet long enough. The slot comes from `voice_slot_for_tg` (where the TG has a dynamic session or an active bridge leg on the MASTER, then TS2, then TS1); while every slot is busy it retries every 5 s, up to 60 times, then skips that playback. Frames are paced at 58 ms after a 0.5 s start delay.
The plugin sends each frame through `send_dmrd`, which the core injects as a **synthetic hotspot PTT** on `PROXY.TARGET_SYSTEM` (the same MASTER used by the integrated proxy). Routing fans out to bridged hotspots and OPENBRIDGE legs; local peers on that MASTER still receive frames via `send_system`. Routed voice may still take the slot's TX leg (each hotspot keeps the stream it hears first); only a radio or another plugin stream on the RX leg stops the announcement. A frame routing refuses is still played to the MASTER's hotspots, with one WARNING per stream.

@ -25,7 +25,7 @@ Un solo proceso uvicorn/FastAPI:
| Ruta / rol | Contenido |
|------------|-----------|
| `/api/*` | Config dashboard, auth, self-service, proxy alias/status |
| `/ws` | Protocolo `conf,<grupo>` — CTABLE, Last Heard, voz |
| `/ws` | Protocolo `conf,<grupo>` — CTABLE, Last Heard, voz. Ver [Compresión del WebSocket](#websocket-compression). |
| Ingest (fondo) | `MONITOR_APP.INGEST`: `tcp` (cliente a `ADN_CONNECTION`) **o** `mqtt` (tópicos `state` + `voice_event`) |
| Alias (fondo) | Descarga → `FILES.PATH`; import con **staging + RENAME** (commits cada 10k en staging; swap breve); merge con commits cada 2k; **PK en `id`** |
@ -39,6 +39,11 @@ Modos de ingest según el peer: legacy (pickle), v1 HELLO, v2 slim (`dashboard_s
- Desarrollo: Vite hace proxy de `/api` y `/ws` a `MONITOR_APP.LISTEN_PORT` (p. ej. 8080).
- Producción: Nginx sirve estáticos y proxifica `/api` + `/ws` al mismo puerto FastAPI.
<a id="websocket-compression"></a>
### Compresión del WebSocket
El dashboard abre `/ws?z=1` cuando el navegador tiene `DecompressionStream`. Entonces cada broadcast de 512 bytes o más se comprime una sola vez con zlib y se envía como el mismo frame binario a todas esas pestañas, que lo descomprimen y procesan los mensajes en el orden en que llegan; los más cortos siguen como texto. Las pestañas sin `?z=1` (navegadores antiguos, o una pestaña que sigue con un frontend anterior) reciben texto sin comprimir. El `permessage-deflate` por conexión de uvicorn está apagado: comprimía cada mensaje una vez por pestaña, y con muchas pestañas abiertas era la mayor porción de la CPU del monitor (37 % en un servidor con 29). Los opcodes y el JSON son los mismos en ambos casos, y nginx no necesita cambios.
## Proxy hotspot
**Integrado (predeterminado):** `adn-server.py` con `PROXY` + `SELF_SERVICE` en `adn-server.yaml`. Ver [Proxy hotspot integrado](../server/user-guide/hotspot-proxy.md).

@ -99,8 +99,28 @@ La sección obsoleta **`WEBSOCKET_SERVER`** en YAML (Twisted en puerto distinto)
| **SELF_SERVICE** | Si es `true`, la UI puede mostrar la entrada **Self-service** (API del monitor + MySQL). |
| **SHOW_CONSOLE** | Mostrar página consola (mensajes inicio/fin de llamada). |
| **MIN_DURATION** | Duración mínima de llamada (segundos) para la tabla Last Heard del **panel** (la página Last Heard puede seguir mostrando más cortas). |
| **SERVER_STATUS_URL** | Feed JSON con la lista de servidores de la red (`/serverstatus`), servido por `GET /api/servers/status`. Por defecto `https://adn.systems/servers/status.json`. |
| **nav_links**, **footer**, **news** | Enlaces estructurados / marquee opcionales. |
Los cambios en **`DASHBOARD`** y **`MAP`** se aplican sin reiniciar: `/api/config/dashboard` los reconstruye cuando `adn-monitor.yaml` cambia en disco y mantiene la última versión válida si al guardar el archivo queda roto. Los visitantes los ven al cargar de nuevo la página. Puertos, base de datos e ingest se siguen leyendo solo al arrancar.
---
## `MAP`
Mapas en **Home** (una bandera sobre cada país con una llamada al aire) y en **Linked Systems** (los sistemas conectados). Los marcadores salen de las coordenadas que cada peer envía al iniciar sesión (RPTC); los sistemas que no informan ninguna quedan fuera, o se ubican en su país con `APPROX_BY_COUNTRY`.
| Clave | Significado |
|-------|-------------|
| **ENABLED** | Mostrar ambos mapas (por defecto `true`). |
| **STYLE** | `1` (por defecto) teselas raster desde `TILE_URL`; `2` mundo vectorial: siluetas de países con su código, países activos resaltados, sin proveedor de teselas. |
| **TILE_URL**, **TILE_URL_DARK**, **ATTRIBUTION**, **MAX_ZOOM** | Teselas raster del estilo 1. Por defecto OpenStreetMap, oscurecidas con un filtro CSS en el tema oscuro; `TILE_URL_DARK` usa en su lugar un mapa base oscuro real. Mantén `ATTRIBUTION` como lo pida el proveedor. |
| **ZOOM**, **CENTER** | Vista inicial cuando el visitante no tiene una guardada. `auto` (por defecto) ajusta el mundo completo a cada mapa, en teléfono o escritorio; un número (en cuartos, p. ej. `6` o `7.5`) fija el zoom alrededor de `CENTER` `[lat, lon]`. |
| **HOTSPOT_PRECISION**, **REPEATER_PRECISION** | Decimales que se conservan en las coordenadas enviadas al navegador: `2` es cerca de 1 km, `3` cerca de 100 m, `null` las deja como llegan. Los hotspots usan `2` por defecto, porque suelen estar en la casa de alguien; los repetidores `null`. |
| **APPROX_BY_COUNTRY** | Ubicar en su país (según el prefijo del ID DMR) los sistemas sin coordenadas, con borde punteado y marcados como aproximados (por defecto `true`). |
| **GPS_URL**, **GPS_LABEL**, **GPS_REFRESH_SEC** | Capa extra opcional desde un feed propio (gateway APRS, servicio GPS): puntos GeoJSON, una lista de `{callsign, lat, lon}` o `{"stations": [...]}`. No se ofrece mientras `GPS_URL` esté vacío. |
| **OVERRIDES** | Coordenadas fijas para sistemas que no informan ninguna, como `ID de peer: [lat, lon]`. |
---
## Esquema MySQL y migraciones

@ -127,6 +127,7 @@ Ver ejemplo completo en `schemas/examples/dashboard_state.json` (mismo objeto qu
| `systems[].peers[]` | array | no | `{id, connected, ip?, port?}` por radio peer. |
| `systems[].peers[].latitude`, `longitude`, `height` | string | no | Datos del sitio tal como los envió el peer en RPTC. |
| `systems[].peers[].options` | string | no | Línea OPTIONS con los TG estáticos que el peer recibe de verdad (los suyos más `TS1_STATIC` / `TS2_STATIC` del MASTER, primero los del yaml); sin `PASS=`. |
| `systems[].peers[].connected_at` | int | no | Hora Unix en que el peer terminó de iniciar sesión. |
| `systems[].peers[].ts1_static`, `ts2_static` | array de string | no | TG estáticos que el peer recibe de verdad por slot, en el mismo orden. |
| `systems[].peers[].single_mode` | bool | no | `SINGLE=1` de las OPTIONS del peer; si no, `SINGLE_MODE` del MASTER. |
| `systems[].peers[].ua_timer_min` | number | no | `TIMER` de las OPTIONS del peer (minutos); si no, `DEFAULT_UA_TIMER`; se omite si es infinito. |

@ -97,6 +97,7 @@ Se pasa a `on_load` como `server_ctx` (`application/plugins/application/context.
| `call_later(delay_s, fn, *args)` | Temporizador del reactor |
| `send_dmrd(pkt) -> bool` | Enviar una trama DMRD — **solo** para un plugin autorizado en `PLUGINS.send`; si no, `None` ([Envío](#envío-de-datos-y-voz-de-grupo-opcional)) |
| `voice_slot_for_tg(tg)` | Slot del MASTER en el que hablar `tg` ahora (primero donde tiene una sesión dinámica o una pierna de bridge activa, luego TS2, luego TS1); `None` mientras todos los slots están ocupados o si `tg` no está en los `group_voice_tgs` del plugin |
| `tg_quiet_for(tg)` | Segundos que `tg` lleva en silencio: `0.0` mientras hay un stream en curso en cualquier MASTER, PEER u OpenBridge, si no el tiempo desde que empezó o terminó su último cambio; `inf` si nunca se oyó. La voz del propio servidor no cuenta. `0.0` si `tg` no está en los `group_voice_tgs` del plugin |
**Patrón:** solo despachar en `on_event`; usar `defer_to_thread` para archivos, HTTP o CPU intensiva.

@ -11,6 +11,16 @@ Las llamadas **unitarias (privadas)** usan un camino distinto a la voz de **grup
- Los datos unitarios (SMS, ACK) cuyo destino se oyó por última vez en el mismo hotspot del que llegan no se devuelven a ese hotspot: las dos radios se oyen por RF y el eco transmitiría encima de su propio intercambio.
- Los datos unitarios a un ID individual oído por última vez en un sistema que no es OPENBRIDGE hace menos de 900 s no se reparten a los OpenBridge; la búsqueda en `SUB_MAP` los entrega localmente. Los suscriptores aprendidos por un OpenBridge, o las entradas más antiguas, mantienen el reparto.
<a id="unit-data-shared-master"></a>
### Datos unitarios en un MASTER compartido
Los datos unitarios (preámbulos CSBK, cabeceras de datos y bloques rate 1/2, 3/4 y 1: SMS, GPS/LRRP, ARS) solo van al hotspot donde se oyó por última vez su destino:
- A un ID que nunca se oyó en el MASTER, o cuyo hotspot ya no está conectado, se descartan en un MASTER compartido por varios hotspots (`MAX_PEERS` mayor que 1, como el destino del proxy integrado) en vez de enviarse a todos. Un MASTER de un solo peer mantiene el broadcast legacy.
- No se envían a un hotspot mientras ese hotspot lleva voz en el slot (en cualquier slot si es simplex). MMDVMHost acepta un CSBK o una cabecera de datos en medio de una llamada de red, pasa el slot a datos y descarta la voz hasta la siguiente ráfaga de sincronismo, así que quienes escuchaban oían un chicharreo cada vez que una radio enviaba su posición. Una radio tampoco transmite datos con el slot ocupado; lo que se descarta queda a cargo de los reintentos de la propia radio.
La voz privada no cambia.
<a id="sub_map-persistence"></a>
### Persistencia de SUB_MAP

@ -67,11 +67,11 @@ La activación/desactivación in-band de bridges se aplica sobre **voice termina
- Limpia sesiones UA del peer en memoria (**todos los slots** de ese peer).
- Borra filas correspondientes en **`peer_dynamic_tgs`** (MariaDB).
- Limpia campos RX obsoletos en **STATUS** para que un **RPTO** posterior no re-sembré el TG antiguo.
- En un MASTER propio, ejecuta **desactivación in-band** de bridges en el slot (como legacy). En un MASTER **inject-only** compartido no: sus patas son de todos los hotspots, y el 4000 in-band las pondría todas en IDLE en ese slot (los dinámicos y los estáticos OPTIONS de los demás).
- En un MASTER propio, ejecuta **desactivación in-band** de bridges en el slot (como legacy). En un MASTER compartido por varios hotspots (el destino **inject-only** del proxy, o con `MAX_PEERS` mayor que 1) no: sus patas son de todos los hotspots, y el 4000 in-band las pondría todas en IDLE en ese slot (los dinámicos y los estáticos OPTIONS de los demás).
- Envía **`GROUP VOICE,INGRESS,RX,…,4000`** al monitor (no **START**) para que los chips **SINGLE=0** se limpien **sin** encender TX en vivo.
- En MASTER **inject-only**, empuja **CONFIG_SND** actualizado al monitor.
- En un MASTER compartido, empuja **CONFIG_SND** actualizado al monitor.
**Inject-only frente a global:** Con **`PROXY`** integrado, el reset es **por peer** (solo los dinámicos de ese hotspot). Sin filtro inject-only, sigue aplicándose legacy **`deactivate_all_dynamic_bridges`** a todo el system.
**MASTER compartido frente a uno de un solo peer:** Con **`PROXY`** integrado, o en cualquier MASTER con `MAX_PEERS` mayor que 1, el reset es **por peer** (solo los dinámicos de ese hotspot). En un MASTER de un solo peer sigue aplicándose legacy **`deactivate_all_dynamic_bridges`** a todo el system.
**TG 4000 no debe aparecer** como chip UA dinámico en el monitor ni en `peer_dynamic_tgs`.

@ -63,7 +63,7 @@ Configura **`TTS_VOCODER_CMD`** o **`TTS_AMBESERVER_HOST`** / **`TTS_AMBESERVER_
## Anti-colisión (QSO) con anuncios
El plugin reproduce **un anuncio por TG a la vez**; los demás del mismo TG esperan en orden, con 1,5 s entre uno y otro. Un ítem que se dispara con su TG al aire se reintenta cada 3 s. El slot lo da `voice_slot_for_tg` (donde el TG tiene una sesión dinámica o una pierna de bridge activa en el MASTER, luego TS2, luego TS1); mientras todos los slots están ocupados reintenta cada 5 s, hasta 60 veces, y después se salta esa reproducción. Las tramas salen cada 58 ms tras un retardo inicial de 0,5 s.
El plugin reproduce **un anuncio por TG a la vez**; los demás del mismo TG esperan en orden, con 1,5 s entre uno y otro. Un ítem que se dispara con su TG al aire se reintenta cada 3 s. Antes de elegir el slot espera a que el TG lleve `tg_quiet_s` en silencio (`config.yaml` del plugin, 3 s por defecto; `0` lo desactiva): ningún cambio que empiece o termine en ese TG desde cualquier hotspot, MASTER, bridge u OpenBridge, para que un anuncio nunca empiece en la pausa entre dos cambios de un QSO. Mientras hay voz al aire vuelve a mirar cada 5 s; en una pausa empieza apenas el TG lleva el tiempo suficiente en silencio. El slot lo da `voice_slot_for_tg` (donde el TG tiene una sesión dinámica o una pierna de bridge activa en el MASTER, luego TS2, luego TS1); mientras todos los slots están ocupados reintenta cada 5 s, hasta 60 veces, y después se salta esa reproducción. Las tramas salen cada 58 ms tras un retardo inicial de 0,5 s.
El plugin envía cada trama con `send_dmrd`, y el núcleo la inyecta como **PTT sintético de hotspot** en `PROXY.TARGET_SYSTEM` (el mismo MASTER que usa el proxy integrado). El enrutamiento reparte a hotspots puenteados y piernas OPENBRIDGE; los peers locales en ese MASTER siguen recibiendo tramas vía `send_system`. La voz enrutada puede igual tomar la pierna TX del slot (cada hotspot se queda con el stream que oye primero); solo una radio u otro stream de plugin en la pierna RX corta el anuncio. Una trama que el enrutado rechaza se reproduce igual a los hotspots del MASTER, con un WARNING por stream.

Loading…
Cancel
Save

Powered by TurnKey Linux.