[2.8] Inferred max hops: stop overwriting on every packet

Đang mở
#449 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ó
3/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
backend

Hướng nghiên cứu

Start with the inferred max hops logic in receivers.py (lines 63-90), then check where each service (position.py:45, device_metrics.py:41, environment_metrics.py:60, air_quality.py:54, power_metrics.py:42, health_metrics.py:33, host_metrics.py:38) overwrites the value per packet. Choose between inferring from unscaled ports or keeping a rolling max, and confirm the choice with a maintainer first. Done when a text packet with hop_start 3 followed by a position packet with hop_start 1 leaves the inferred max at 3, and tests cover that sequence.

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

Mô tả

enhancement meshtastic-2.8

Part of pskillen/meshflow-api#437 (Meshtastic 2.8.x support). Code: HP-1 · Priority: Should · Size: S

Summary

2.8 HopScaling lowers hop_start on broadcast POSITION/TELEMETRY/NODEINFO/NEIGHBORINFO depending on mesh density, so meshtastic_inferred_max_hops flaps. It's overwritten on every packet (receivers.py:63-90; services position.py:45, device_metrics.py:41, environment_metrics.py:60, air_quality.py:54, power_metrics.py:42, health_metrics.py:33, host_metrics.py:38).

Infer from unscaled ports, or keep a rolling max.

Acceptance criteria

  • Text(hop_start 3) then position(hop_start 1) yields 3
  • Tests

Depends on: none

Ngôn ngữ chính
Python
Star
1
Fork
0
Merge trung bình
23 giờ 9 phút
Pull request đã merge (30 ngày)
15

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

  • Có Dockerfile hoặc 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 pskillen/meshflow-api

Tất cả issue của pskillen/meshflow-api

Issue tương tự

Thêm issue về Python

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.