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

Aperta
#449 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
backend

Direzione di ricerca

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.

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

Descrizione

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

Lingua principale
Python
Stelle
1
Fork
0
Merge medio
1g 20h
PR unite (30g)
5

Preparare l'ambiente

  • Include un Dockerfile o un 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 pskillen/meshflow-api

Tutte le issue di pskillen/meshflow-api

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.