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

Đang mở
#1,504 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
52/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
react, typescript
Lĩnh vực
frontend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
TypeScript
Star
861
Fork
316
Merge trung bình
2 ngày 10 giờ
Pull request đã merge (30 ngày)
18

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của meshtastic/web

Tất cả issue của meshtastic/web

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.