Skip to content

feat(sim): add dynamic tx power policy#72

Draft
Komzpa wants to merge 22 commits into
meshtastic:masterfrom
Komzpa:codex/split-dtp-policy
Draft

feat(sim): add dynamic tx power policy#72
Komzpa wants to merge 22 commits into
meshtastic:masterfrom
Komzpa:codex/split-dtp-policy

Conversation

@Komzpa

@Komzpa Komzpa commented May 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add an opt-in Dynamic TX Power policy that can lower per-packet TX power immediately before transmit
  • keep configured PTX as the maximum; DTP never boosts above the regional/base power
  • reduce relay/ACK interference radius under busy channel pressure or strong prior-hop evidence, while keeping origin packets and rescue retries at full power
  • add DTP power histograms, CR@power histograms, mean detected/sensed receiver stats, CLI knobs, docs, and tests

Stack

Validation

  • .venv/bin/python -m unittest tests.test_dtp tests.test_dcr tests.test_lora_mesh_cli tests.test_discrete_event_sim tests.test_node
  • /home/kom/.local/bin/ruff check loraMesh.py lib/config.py lib/dcr.py lib/dtp.py lib/node.py lib/discrete_event_sim.py tests/test_dtp.py tests/test_dcr.py tests/test_lora_mesh_cli.py tests/test_discrete_event_sim.py tests/test_node.py
  • .venv/bin/python -m compileall -q .
  • .venv/bin/python -u loraMesh.py 2 --no-gui --simtime-seconds 5 --period-seconds 0.5 --dcr --dtp --phy-loss-model --capture-collision-model
  • git diff --check
  • .venv/bin/python -m unittest
  • rg -n "stavnet|guest:guest|grafana|source_node_id|source_long_name" .

@Komzpa Komzpa force-pushed the codex/split-dtp-policy branch from 2449754 to a3c4d58 Compare May 15, 2026 20:50
@Komzpa Komzpa force-pushed the codex/split-dtp-policy branch from a3c4d58 to 861a384 Compare May 15, 2026 21:01
@Komzpa Komzpa marked this pull request as ready for review May 17, 2026 17:24

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 861a38426b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread lib/dtp.py Outdated
Comment thread tools/radio_policy_compare.py
@Komzpa Komzpa marked this pull request as draft May 17, 2026 17:41
@Komzpa Komzpa force-pushed the codex/split-dtp-policy branch from 861a384 to 1d08bbd Compare May 24, 2026 04:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant