[Feature Request]: add back Traffic Management Config pages and settings

Abierto
#1,504 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
52/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
react, typescript
Área
frontend

Línea de trabajo

Read the Traffic Management configuration fields in the linked protobuf and the firmware reference, then inspect how existing module configuration pages are built in the web client. Add a Traffic Management settings page that exposes the five listed values, with sensible lower and upper limits for rate_limit_window_secs. Done when users can configure these values in the web client; the issue does not name relevant source files or tests.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

enhancement
Prerequisites
  • I have searched existing issues to ensure this feature hasn't already been requested
  • I have checked the documentation to verify this feature doesn't already exist
Problem Statement

@danditomaso For firmware 2.8.1, because there were too many changes in fields / protobufs for Traffic Management, the module was removed from the Web client in https://github.com/meshtastic/web/pull/1458

Since Traffic Management module is here to stay and protobufs, fields etc are now stable in alpha / development, consider adding back Traffic Management module config to the Web client client.meshtastic.org.

Proposed Solution

So users can set the config for Module Traffic Management values not only via meshtastic cli, but also via Android app.

https://github.com/meshtastic/firmware/blob/develop/src/modules/TrafficManagementModule.cpp#L137

https://github.com/meshtastic/protobufs/blob/develop/meshtastic/module_config.proto#L316

Fields to be able to set are

   /*
     * Minimum interval in seconds between position updates from the same node.
     * A non-zero value implicitly enables the suppression window; 0 disables it.
     */
    uint32 position_min_interval_secs = 4;

    /*
     * Maximum hop distance from the requestor at which direct NodeInfo responses
     * are served from the local cache. A non-zero value implicitly enables direct
     * response; 0 disables it.
     */
    uint32 nodeinfo_direct_response_max_hops = 6;

    /*
     * Time window in seconds for per-node rate limiting.
     * A non-zero value implicitly enables rate limiting; 0 disables it.
     */
    uint32 rate_limit_window_secs = 8;

    /*
     * Maximum packets allowed per node within the rate limit window.
     * A non-zero value implicitly enables rate limiting; 0 disables it.
     */
    uint32 rate_limit_max_packets = 9;

    /*
     * Maximum unknown/undecryptable packets per rate window before the source
     * is dropped. A non-zero value implicitly enables unknown-packet filtering;
     * 0 disables it.
     */
    uint32 unknown_packet_threshold = 11;
  }

It'd probably be good to enfore some upper and lower limits, floor and ceiling, for rate_limit_window_secs.

Current Alternatives

only setting via Meshtastic python cli working as of now for the known fields.

Importance

Nice to have

Additional Context

No response

Lenguaje dominante
TypeScript
Estrellas
861
Forks
316
Merge medio
2 d 10 h
PR fusionados (30 d)
18

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

  • Sin Dockerfile ni archivo de Docker Compose
  • Tiene una plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de meshtastic/web

Todos los issues de meshtastic/web

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.