Skip to content

handle regions configuration - #3

Open
fdlamotte wants to merge 1 commit into
meshcore-dev:mainfrom
fdlamotte:main
Open

handle regions configuration#3
fdlamotte wants to merge 1 commit into
meshcore-dev:mainfrom
fdlamotte:main

Conversation

@fdlamotte

@fdlamotte fdlamotte commented Aug 2, 2026

Copy link
Copy Markdown

This PR adds 2 things to get a full repeater config for deploying repeaters conforming to a common rule:

  • flood.max.unscoped and flood.max.advert config
  • regions management

Regions management is done in its own pane that shares visibility with advanced settings

Configurator fetches region tree as well as home and default regions

Region tree can cleaned. It can also be updated using the region def box. When hitting "Apply def", both tree and home/default fields are updated on the device

Using save settings updates region settings (and applies region def)

When loading a json with a region def defined, everything conforms to the desired configuration (if a region tree is already in the device it is not cleaned, but user can clean before doing save (and the home and default region fields are not emptied so user can just do load json, then save settings and their done, whatever the state is (or near that ;))

Example of json config:

  "vars": {
    "repeat": true,
    "radio": {
      "freq": "869.618",
      "bw": "62.5",
      "sf": "8",
      "cr": "8"
    },
    "af": 10,
    "flood.max.unscoped": 5,
    "flood.max.advert": 6,
    "flood.advert.interval": 24,
    "advert.interval": 0,
    "guest.password": "",
    "agc.reset.interval": 4,
    "multi.acks": "1",
    "path.hash.mode": 1,
    "loop.detect": "minimal"
  },
  "region": {
    "def": "eu fr",
    "home": "fr",
    "default": "fr"
  }
}

I was thinking we could put this, one line by one line in a json dict and add a drop-down to select profiles ...

doesn't look that bad on one line
{"vars":{"repeat":true,"radio":{"freq":"869.618","bw":"62.5","sf":"8","cr":"8"},"af":10,"flood.max.unscoped":5,"flood.max.advert":6,"flood.advert.interval":24,"advert.interval":0,"guest.password":"","agc.reset.interval":4,"multi.acks":"1","path.hash.mode":1,"loop.detect":"minimal"},"region":{"def":"eu fr","home":"fr","default":"fr"}}

@fdlamotte

Copy link
Copy Markdown
Author

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