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

オープン
#1,504 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
52/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
react, typescript
領域
frontend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
TypeScript
スター
861
フォーク
316
平均マージ
2日 10時間
マージ済み PR(30日)
18

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

meshtastic/web のほかの issue

meshtastic/web の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。