Skip to content

fix: add TDM and edge intelligence flags to provision.py#131

Merged
ruvnet merged 1 commit intomainfrom
fix/provision-tdm-edge-support
Mar 3, 2026
Merged

fix: add TDM and edge intelligence flags to provision.py#131
ruvnet merged 1 commit intomainfrom
fix/provision-tdm-edge-support

Conversation

@ruvnet
Copy link
Owner

@ruvnet ruvnet commented Mar 3, 2026

Summary

  • Add --tdm-slot and --tdm-total flags for TDM mesh slot assignment
  • Add --edge-tier flag (0=off, 1=stats, 2=vitals) for ADR-039 edge intelligence
  • Add --pres-thresh, --fall-thresh, --vital-win, --vital-int, --subk-count for edge tuning
  • Validate that --tdm-slot and --tdm-total are specified together and slot < total
  • All flags map to NVS keys the firmware already reads (tdm_slot, tdm_nodes, edge_tier, etc.)

Closes #130

Test plan

  • provision.py --help shows all new flags
  • --tdm-slot 0 --tdm-total 3 generates correct NVS CSV with tdm_slot=0, tdm_nodes=3
  • --edge-tier 2 generates NVS CSV with edge_tier=2
  • --tdm-slot 0 without --tdm-total errors with clear message
  • --tdm-slot 3 --tdm-total 3 errors (slot must be < total)
  • Flash with real ESP32 and verify NVS keys are read by firmware

🤖 Generated with claude-flow

The user guide and release notes document TDM and edge intelligence
provisioning flags but provision.py only accepted --ssid, --password,
--target-ip, --target-port, and --node-id.

Add all NVS keys the firmware actually reads:
- --tdm-slot / --tdm-total: TDM mesh slot assignment
- --edge-tier: edge processing tier (0=off, 1=stats, 2=vitals)
- --pres-thresh, --fall-thresh: detection thresholds
- --vital-win, --vital-int: vitals timing parameters
- --subk-count: top-K subcarrier selection

Also validates that --tdm-slot and --tdm-total are specified together
and that slot < total.

Closes #130

Co-Authored-By: claude-flow <ruv@ruv.net>
@ruvnet ruvnet merged commit b6f7b8a into main Mar 3, 2026
0 of 2 checks passed
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.

Provisioning script doesn't support TDM

1 participant