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

Aperta
#1,504 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
52/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
react, typescript
Ambito
frontend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
TypeScript
Stelle
861
Fork
316
Merge medio
2g 10h
PR unite (30g)
18

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di meshtastic/web

Tutte le issue di meshtastic/web

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.