Commit Graph
479 Commits
Author SHA1 Message Date
tthandClaude Opus 5.5 b984310572 Repeater, room server, sensor: an INA226 in the battery line counts the charge drawn and charged (sensor set ina.coulomb 1)
Changelog-cs: Repeater, room server, sensor: INA226 v přívodu baterie umí počítat náboj z baterie a do ní (`sensor set ina.coulomb 1`)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-04 18:37:42 +01:00
tthandClaude Opus 5.5 2a5c596250 Repeater: the stats request also carries the node's sensors (humidity, pressure, external temperature, ...)
Changelog-cs: Repeater: požadavek na statistiky teď vrací i senzory uzlu (vlhkost, tlak, externí teplotu, ...)
Changelog-topic: stats-bundle
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-04 03:52:50 +01:00
tthandClaude Opus 5.5 b7129f1df1 Repeater: the config checksum of the stats request covers regions
Changelog-cs: Repeater: kontrolní součet konfigurace v požadavku na statistiky teď pokrývá i regiony
Changelog-topic: stats-bundle
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-04 00:09:53 +01:00
tthandClaude Opus 5.5 86351f2d41 Repeater: one request returns status, telemetry, filter counters and config checksums
Changelog-cs: Repeater: jeden požadavek vrátí stav, telemetrii, čítače filtrů a kontrolní součty konfigurace
Changelog-topic: stats-bundle
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-04 00:09:53 +01:00
tth 5e691d1f64 Merge fix/rxps-stall-46 into main 2026-12-04 00:09:53 +01:00
tth 63823f526b Repeater, room server, sensor: set radio.rxps off takes effect at once, and reception restarts after the noise-floor calibration
Changelog-cs: Repeater, room server, sensor: `set radio.rxps off` platí hned a příjem se po kalibraci šumu znovu nastartuje
Changelog-topic: rxps-stall-46
2026-12-04 00:09:19 +01:00
tthandClaude Opus 5.5 ae8d5057da Repeater: filter flow holds 24 rules and an r rule can match one requester on any destination
Changelog: Repeater: `filter flow` holds 24 rules (was 16), and an `r` rule with a 3-byte key (source + first hop) blocks one requester on any destination
Changelog-cs: Repeater: `filter flow` pojme 24 pravidel (bylo 16) a pravidlo `r` s 3bajtovým klíčem (zdroj + první hop) zablokuje jednoho tazatele pro libovolný cíl
Changelog-topic: filter-flow
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 23:16:43 +01:00
tthandClaude Sonnet 5.5 5fe599c5b6 Repeater: filter flow -- one table of forward-deny rules (channel, dest/src, login, advert, relay) with throttle, expiry and a rules CRC
Changelog: Repeater: new `filter flow` forward-deny rules (channel, dest/src, login flood, advert, relay in path) with throttle, expiry and a rules CRC; `filter hash` and `filter path` remain as aliases
Changelog-cs: Repeater: nová pravidla `filter flow` pro blokaci přeposílání (kanál, cíl/zdroj, login flood, advert, repeater v cestě) s throttle, expirací a CRC pravidel; `filter hash` a `filter path` zůstávají jako aliasy
Changelog-topic: filter-flow
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-03 21:52:50 +01:00
tthandClaude Opus 5.5 6850d2e8ad Repeater: filter path add <hex> stops forwarding floods that came through a given relay
Changelog-cs: Repeater: `filter path add <hex>` přestane přeposílat floody, které prošly daným repeaterem
Changelog-topic: filter-path
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 20:28:14 +01:00
upstream-sync-bot 1bcb850c99 Merge upstream/main (2 commits) [upstream-sync] 2026-12-03 15:22:52 +00:00
tthandClaude Opus 5.5 7e911aa17d Merge upstream/dev (3 commits) [upstream-sync]
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 11:50:55 +01:00
Scott Powell cc2c3fa0e7 * ver 1.19.0 2026-12-03 20:31:34 +11:00
agessaman 0b1713f8dc Track shared-password logins in RAM, tighten eviction and passwords
Mark guest and read-only logins with a RAM-only flag instead of an ACL
permission bit, so saved permission bytes keep their meaning. Inserts
evict unsaved entries before saved ones. Sensors refuse GPS movement
deltas from shared-password subscribers and give promoted admins the
default alert flags. The admin, guest and read-only passwords must all
differ, and set ro.password with no value clears it.
2026-12-02 08:14:05 -08:00
agessaman 50b7dd7301 Add a read-only password for repeaters and sensors
ro.password grants the read-only role at login. These logins are never
saved, cannot evict saved ACL entries, and on a sensor get no location.
Sensors also honor guest.password now (blank disables guest login).
2026-12-02 07:42:24 -08:00
tth 9802093d38 tests: cover CLI prefix stripping, set-pin gate, paged reply bounds, and ACL write failures
Changelog: -
2026-12-02 00:36:05 +01:00
tth aa7b181944 Repeater, room server, sensor: fix CLI reply buffer overflow, OTA bounds checks, and ACL slot rotation 2026-12-02 00:12:33 +01:00
tthandClaude Opus 5.5 d5cbb5ef00 Merge upstream/dev (1 commit: sec patch) [upstream-sync]
Changelog: Repeater, room server, sensor: an admin's CLI reply captured over the air can no longer be sent back to the node as a command (upstream security fix)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 11:53:23 +01:00
Scott Powell e4f89eb919 * sec patch 2026-11-29 16:06:00 +11:00
upstream-sync-bot 086175d80f Merge upstream/dev (2 commits) [upstream-sync] 2026-11-27 17:05:12 +00:00
tthandClaude Opus 5.5 f3eae0582c Repeater, room server, sensor, companion: set commands refuse out-of-range or non-numeric values instead of saving them
Changelog: Repeater, room server, sensor, companion: `set tx`, `set radio`, `set freq` and other number settings now refuse a value that is out of range or not a number, instead of saving it and answering OK.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 17:33:42 +01:00
Pablo Ramón Guevara d6045b5732 fix bug where a login from a new identity silently removes an admin 2026-11-26 18:33:12 +01:00
upstream-sync-bot f189855457 Merge upstream/dev (2 commits) [upstream-sync] 2026-11-22 05:05:36 +00:00
Scott Powell 7df63ae26e * copied sensor telemetry push 2026-11-21 20:59:42 +11:00
tthandClaude Opus 5.5 76109b168f Merge upstream/dev (16 commits): UITask moved to src/helpers/ui
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 12:39:13 +01:00
tthandClaude Opus 5.5 0d16dd541c Repeater, room server, sensor: passwords can no longer be guessed over the air at full speed, and a replayed login no longer floods a reply
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 13:03:59 +01:00
tthandClaude Opus 5.5 4dbffda57b Repeater, room server, sensor: guests no longer cause a flash write per request
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 12:57:53 +01:00
tthandClaude Opus 5.5 ea2d4a0bfa ClientACL: the replay floor survives a reboot -- a captured admin command no longer works after every boot
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 10:18:04 +01:00
Scott Powell 0e164ae46c * refactored UITask from repeater/room/sensor to /helpers/ui/server
* added BaseUITask for common behaviours
* ui_task now instantiated in one of the variant's target-*.cpp modules
2026-11-18 18:18:06 +11:00
tthandClaude Opus 5.5 b866b95ccb Repeater: TX stall watchdog -- packets queued, nothing sent for 15 min: re-arm, then reboot
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 11:02:58 +01:00
tthandClaude Opus 5.5 54e21e3da1 Merge main into ota-admin: tools split, WITH_RX_POWERSAVING
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 16:12:20 +01:00
tth 514ee38dd5 FwUpdate binary: cap the missing-units reply at 150 B (companion frame limit); ota_mesh_push --text 2026-11-13 01:06:06 +01:00
tth 5ac3d61825 FwUpdate: binary firmware chunks over the mesh (REQ_TYPE_FW_OTA 0xF0) 2026-11-13 00:55:06 +01:00
tthandClaude Opus 5.5 27e6a5d6fd radio: RX duty cycle (RXPS) from EasySkyMesh PowerSaving v18, opt-in
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 14:57:16 +01:00
tthandClaude Opus 5.5 2ba62d779e sensors: INA shunt set at runtime -- sensor set ina.shunt <mOhm>, kept in prefs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 13:58:39 +01:00
tthandClaude Opus 5.5 5f8d3a4c9e Merge upstream/dev (80 commits) [upstream-sync]
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 09:22:19 +01:00
Florent 74f1f5a156 Revert "Merge pull request #3784 from Maxwell456/feature/repeater-history"
This reverts commit f678f6ac15, reversing
changes made to b8ae75d258.
2026-11-11 07:49:41 -04:00
Valentin Metz 224658694f Fix stack-buffer overflow in CLI reply buffers
The remote-CLI reply buffers in onPeerDataRecv() (repeater, room server,
sensor) and BaseChatMesh were sized temp[166] for a 5-byte datagram
header plus 161 bytes of reply. But MyMesh::handleCommand() first
reflects a 3-byte correlation prefix (e.g. 'aa|') into the reply, after
which CommonCLI commands may write up to 160 chars + NUL into the
remaining 158 bytes -- overflowing the buffer by 2 bytes (e.g. a full
'regions' listing via exportTo(reply, 160)).

Triggering this remotely crashes the node (observed as an unresponsive
repeater after a prefixed 'regions' query); the 2 out-of-bounds bytes
are a printable region-name character and a NUL.

Size the buffers for the full worst case instead:
5 header + 3 prefix + 160 reply + 1 NUL = 169.

Verified with a host ASan harness reproducing the exact layout:
prefixed 'regions' with a 25-region listing overflowed temp[166]
(BufStream::write, RegionMap.cpp) and now passes clean with temp[169];
unprefixed (serial) path unaffected.
2026-11-11 05:30:54 +01:00
fdlamotte f678f6ac15 Merge pull request #3784 from Maxwell456/feature/repeater-history
Add min/max/avg history queries to repeaters
2026-11-10 12:42:53 -04:00
Maxwell 25c1867bbd Add min/max/avg history queries to repeaters
Move TimeSeriesData from simple_sensor into src/helpers and drive it with
monotonic uptime, so RTC changes cannot stall recording or break queries.
Keep the old RTCClock* overloads as deprecated for custom sensor sketches.

Record 24h of battery, noise floor, TX/RX airtime % and MCU temperature on
repeaters and answer the existing 0x04 min/max/avg request using the same
format as sensor nodes. No packets are sent by this feature.
REPEATER_HISTORY_SLOTS=0 removes it; default off on STM32/RP2040.

Add native tests for TimeSeriesData and document the request and channels.
2026-11-08 16:34:54 +02:00
Florent fe6a47d0c9 gps: move the gps CLI to GpsPrefs and convert all targets 2026-11-08 08:47:34 -04:00
Florent df5a768c5d gps: add GpsDriver, handle the hardware and software switches in the drivers 2026-11-08 08:47:34 -04:00
tthandClaude Opus 5.5 298168399c simple_repeater: channel bot caps itself at 10 replies per 5 min
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 13:29:31 +01:00
tthandClaude Opus 5.5 997b049dad simple_repeater: dfu, radio silence watchdog and boot diagnostics from NodeMaintenance
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 00:38:43 +01:00
tthandClaude Opus 5.5 79251bc3b8 simple_repeater: radio silence watchdog -- re-arm RX, then reboot a deaf receiver (#6)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 20:03:01 +01:00
tthandClaude Opus 5.5 b4a7ad10a1 simple_repeater: ble pin <6 digits> -- own BLE PIN, saved; public builds refuse ble on without it
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 01:37:38 +01:00
tthandClaude Opus 5.5 59b22d122d simple_repeater: RPT_BLE_DEFAULT_OFF -- BLE console starts off, ble on is saved
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 23:15:52 +01:00
tthandClaude Opus 5.5 30e713162f simple_repeater: RADIO_DIAG on the masts (radiostat/radiokick)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 19:41:29 +01:00
tthandClaude Opus 5.5 b6c704888d simple_repeater: filter hash throttle + opt-in message age limit (tth #3)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 17:40:09 +01:00
tthandClaude Opus 5.5 ac624c30a8 public builds: Czech mesh defaults (meshcore.cz wiki)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 14:15:14 +01:00
tthandClaude Opus 5.5 9fc1dcd7d5 simple_repeater: per-origin advert window + fairness dry-run (tth #2, #1)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 09:40:20 +01:00