Add Repeaters and Rooms settings for login and clock sync
Move login attempts and auto-fetch into the new section, and let a global clock-sync default be overridden per repeater. Co-authored-by: zjs81 <zjs81@users.noreply.github.com>
This commit is contained in:
53 files changed
+1533
-128
No files matched your search
@@ -175,7 +175,6 @@ Handles reliable delivery of outgoing direct messages:
|
||||
|
||||
### Configurable Settings (App Settings → Routing)
|
||||
- Direct attempts (0–15, default 4) and flood attempts (0–10, default 1), set separately from auto route rotation
|
||||
- Login attempts for a repeater or room server (1–10, default 5). Telemetry requests are not retried
|
||||
- Clear path on max retry (on/off)
|
||||
- Auto route rotation
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ From the Contacts screen:
|
||||
- Routing mode selector and "Manage Paths" link are available directly in the dialog (configure routing before login)
|
||||
- Auto-retries up to 5 times on timeout, showing progress ("Attempt 2 of 5"). A wrong password (explicit failure response) stops immediately — only timeouts trigger retries
|
||||
- CLI commands to a repeater are matched to their reply by a short prefix. A reply that arrives late for an earlier attempt still completes the command, and no further attempts are sent
|
||||
- If auto-clock-sync is enabled for this repeater (configured in Repeater Settings), a `clock sync` command is sent automatically on successful login
|
||||
- If clock sync on login is on for this repeater, a `clock sync` command is sent automatically on successful login. The repeater's choice is Default, On, or Off. Default follows **Sync repeater clock on login** in App Settings → Repeaters and Rooms, which is off unless you turn it on
|
||||
|
||||
---
|
||||
|
||||
@@ -179,7 +179,7 @@ Most settings are declared once in `repeaterSettingSpecs` (`lib/models/repeater_
|
||||
- Packet forwarding toggle (`set repeat`)
|
||||
- Guest access toggle (`set allow.read.only`)
|
||||
- Multi-ACKs toggle (`set multi.acks`)
|
||||
- Auto clock sync after login toggle (local app setting only, not sent to repeater)
|
||||
- Clock sync after login (Default / On / Off; local app setting only, not sent to repeater). Default follows App Settings → Repeaters and Rooms
|
||||
|
||||
**5. Network Health**
|
||||
- Loop detection dropdown (off / minimal / moderate / strict; `set loop.detect`)
|
||||
@@ -218,7 +218,7 @@ Most settings are declared once in `repeaterSettingSpecs` (`lib/models/repeater_
|
||||
- Erase filesystem (serial-only; shown disabled with an explanation — no command is sent over the air)
|
||||
|
||||
### Key Interactions
|
||||
- **Settings are not fetched on open by default.** Each `get` is a separate LoRa round trip, so fetching everything is slow and uses airtime. Turn on **Auto-fetch repeater settings** in App Settings to fetch everything when the screen opens; otherwise use **Refresh all** or the per-setting refresh buttons. Name and location are pre-filled from cached contact data
|
||||
- **Settings are not fetched on open by default.** Each `get` is a separate LoRa round trip, so fetching everything is slow and uses airtime. Turn on **Auto-fetch repeater settings** in App Settings → Repeaters and Rooms to fetch everything when the screen opens; otherwise use **Refresh all** or the per-setting refresh buttons. Name and location are pre-filled from cached contact data
|
||||
- Every control can be edited before its value has been fetched. Unfetched values show as "—" (or off) until fetched or edited, and only edited settings are sent on save
|
||||
- Save button in app bar appears when any change is detected; failed commands keep those settings dirty for retry, and a saved value counts as the repeater's current value
|
||||
- Settings are sent sequentially with 200ms delays between commands; firmware responses are checked and partial failures are reported in a snackbar
|
||||
|
||||
@@ -120,7 +120,6 @@ Individual channels can be muted from the channel chat bell icon, the channel li
|
||||
|
||||
### Messaging
|
||||
- **Jump to Oldest Unread**: When opening a chat, scrolls to the oldest unread message instead of the newest
|
||||
- **Auto-fetch Repeater Settings** (off by default): Requests every setting when a repeater's settings screen opens. Each setting is a separate request over LoRa, so this is slow and uses airtime; when off, use Refresh All or the per-setting refresh buttons. See [Repeater Settings](repeater-management.md#repeater-settings)
|
||||
- **Enable Message Tracing**: Shows path trace overlays and extra metadata on messages
|
||||
- **Region next to hop count** (default off): Shows a channel message's region chip on the same line as its hop count instead of below it
|
||||
|
||||
@@ -130,7 +129,6 @@ What happens when a message is sent. Each slider shows its selected number in th
|
||||
- **Clear Path on Max Retry**: Erases the stored routing path after every send attempt fails
|
||||
- **Direct attempts** (0–15, default 4): How many times to try a known route. Available whether or not auto route rotation is on
|
||||
- **Flood attempts** (0–10, default 1): How many times to flood. Floods use more airtime. With rotation on, these run after the direct attempts. With it off, they apply only when the contact's path is already Flood
|
||||
- **Login attempts** (1–10, default 5): How many times to try logging in to a repeater or room server. Telemetry fetches are sent once and have no retry setting
|
||||
- **Auto Route Rotation**: Lets the app choose each direct attempt's route from the routes that have worked for that contact (see [Auto route selection](routing-paths.md#auto-route-selection)). Off keeps the contact's current path for every attempt
|
||||
- **Resend channel messages until they travel far enough** (default off): If your channel message isn't heard coming back through enough repeaters, it's sent again. Uses more airtime. When on, it shows:
|
||||
- Required hops (1–8, default 2)
|
||||
@@ -140,6 +138,13 @@ What happens when a message is sent. Each slider shows its selected number in th
|
||||
|
||||
If both direct and flood attempts are 0, the message is still sent once on the current path. A saved `max_message_retries` value from an older version becomes that many attempts minus one direct, plus one flood, which keeps the old "last attempt floods" behaviour for the previous default of 5 (4 direct + 1 flood).
|
||||
|
||||
### Repeaters and Rooms
|
||||
- **Sync repeater clock on login** (off by default): After a successful repeater login, send `clock sync`. Off is the previous default: a repeater only synced when its own switch was on. Each repeater can override this with Default, On, or Off. Default follows this switch. A saved per-repeater on or off stays an override
|
||||
- **Focus the password field** (off by default): On keeps the previous login dialog: the cursor goes into an empty password field (room login still skips this on a phone). Off waits until you tap the field, so the keyboard does not cover the dialog
|
||||
- **Login attempts** (1–10, default 5): How many times to try logging in to a repeater or room server. Telemetry fetches are sent once and have no retry setting
|
||||
- **Auto-fetch Repeater Settings** (off by default): Requests every setting when a repeater's settings screen opens. Each setting is a separate request over LoRa, so this is slow and uses airtime; when off, use Refresh All or the per-setting refresh buttons. See [Repeater Settings](repeater-management.md#repeater-settings)
|
||||
- **Reset repeater and room settings to defaults**: Restores the controls in this section. Choices saved on individual repeaters are left alone
|
||||
|
||||
### Battery
|
||||
- **Battery Chemistry**: NMC / LiFePO4 / LiPo (per device, used to calibrate percentage from voltage)
|
||||
|
||||
|
||||
Reference in new issue
Block a user