Commit Graph
96 Commits
Author SHA1 Message Date
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
ripplebiz 7df3b9826f Merge pull request #4014 from agessaman/feat/ro-password
Add a read-only password for repeaters and sensors
2026-12-03 12:20:49 +11:00
upstream-sync-bot e73ed273ed Merge upstream/dev (6 commits) [upstream-sync] 2026-12-02 17:05:10 +00: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
fdlamotte c608202561 Merge pull request #3974 from MarkRose/fix/sensor-io-command
Sensor CLI: make 'io' match the whole word and check its argument 🤖🤖
2026-12-02 11:40:44 -04: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 8eea3e536c Merge upstream/dev (2 commits) [upstream-sync] 2026-11-29 05:05:08 +00:00
ripplebiz 9430da4fe5 Merge pull request #3936 from meshcore-dev/sensor-gps-movement
Sensor GPS telemetry push
2026-11-29 10:51:44 +11:00
Mark RoseandClaude Mythos 5.2 c39d68ddb3 Sensor CLI: 'io' must match the whole word and parse its argument
memcmp(command, "io ", 2) accepted every command starting with "io",
and a write whose argument had no hex digits passed an uninitialised
value to board.setGpio().

Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com>
2026-11-27 15:55:44 -06:00
upstream-sync-bot 086175d80f Merge upstream/dev (2 commits) [upstream-sync] 2026-11-27 17:05:12 +00: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
Scott Powell 0aad7bd6cc * special case when min_deltas has LPP_GPS value 2026-11-25 12:10:35 +11: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
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
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
tthandClaude Opus 5.5 1f71cf1525 radiolib: RADIO_DIAG -- radiostat/radiokick for a receiver that went deaf
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 19:51:11 +01:00
Scott Powell 3819a0bd89 * subscribe response now returns expiry_secs (not timestamp) 2026-09-15 17:17:48 +10:00
Scott Powell bc8ccefafe * fix for telemHasChanged() 2026-09-14 20:23:10 +10:00
Scott Powell df82dc2339 * min_deltas now mandatory 2026-09-13 11:05:38 +10:00
Scott Powell d69ae98b5a * telemHasChanged() mod, so that only _specified_ min_delta values are considered. 2026-09-12 16:53:45 +10:00
Scott Powell 8660d1c973 * refactor: LPP helpers moved to LPPData class 2026-09-08 17:55:02 +10:00
Scott Powell d71a54cd3d * CLI: removed "sub" and "unsub" (cannot support via command line)
* _SUBSCRIBE: binary req/resp payload changes (now keeps supplied 'push_tag')
* Sensor: added MCU temperature support in telemetry
2026-09-07 13:56:47 +10:00
Scott Powell 62d0556a70 * added region load/save support
* SUBSCRIBE now with timeout param (default 30 mins, max ~18 hours)
2026-09-05 15:59:29 +10:00
Scott Powell 3a5a6b90ab * sensor: CLI "sub" and "unsub" commands 2026-09-04 22:02:49 +10:00
Scott Powell 9bc6060831 * new: REQ_TYPE_SUBSCRIBE and REQ_TYPE_UNSUBSCRIBE 2026-09-04 15:13:17 +10:00
Scott Powell b4e37044ed * default and reply scopes now applied 2026-09-03 14:09:15 +10:00
Scott Powell 5a162ff4c6 * new DynamicConfigSerializer
* board/variant KeyValueStore now can write to 'custom' object in Json prefs
2026-08-24 17:12:56 +10:00
Scott Powell 47b0b7b3b8 * T096, and Station G3: refactoring the 'FEM' prefs to variant-specific code
* CommonCLI: 'FEM' commands removed
* introduced static no-op attachDynamicPrefs() for all boards
2026-08-24 01:50:22 +10:00
Scott Powell 2c0ace2519 * new TXT_TYPE_CLI_COMMAND (3) 2026-08-23 22:04:05 +10:00
agessaman 23066573e5 fix(station-g3): expose FEM gain preferences 2026-08-06 15:29:14 -07:00
Scott Powell 2af1e6d099 * first draft of new ConfigSerializer. (simple embedded JSON prefs) 2026-07-15 01:23:57 +10:00
Wessel Nieboer 7c8e092457 Have CAD be a separate toggle (set cad on/off) 2026-06-14 15:20:58 +02:00
Wessel Nieboer 4f9a091671 Use hardware channel activity detection for checking interference 2026-06-14 15:19:18 +02:00
Quency-D 12e6899580 Merge branch 'dev' into cli-lna-command 2026-05-09 18:19:31 +08:00
Scott Powell 0a8a0a4904 * Refactor: removed duplicated radio_rng_seed(), radio_set_params(), radio_set_tx_power() 2026-05-01 14:47:07 +10:00
Quency-D ddedb3c7a7 Merge branch 'dev' into cli-lna-command 2026-04-25 15:28:07 +08:00
Scott Powell 4131a455a2 * repeater: refactored 'region' CLI commands -> CommonCLI
* room server: added RegionMap, and new CommonCLI wiring, default_scope handling
* sensor: only minimal RegionMap wiring. Still needs work to handle default-scope
2026-04-15 13:32:49 +10:00
Quency-D 8435464c84 Add v4 FEM LNA CLI control commands. 2026-03-24 10:48:15 +08:00
ripplebiz cf0cc851d4 Merge pull request #1297 from ViezeVingertjes/feature/duty-cycle-token-bucket
Implement token bucket duty cycle enforcement
2026-03-08 23:54:32 +11:00
Scott Powell a66773bac0 * CommonCLI: added "get/set path.hash.mode " 2026-02-23 14:25:19 +11:00
Scott Powell 3e76161e9c * refactor of Contact/Client out_path_len (stored in files), from signed to unsigned byte (+2 squashed commits)
Squashed commits:
[f326e25] * misc
[fa5152e] * new 'path mode' parsing in Dispatcher
2026-02-21 19:35:51 +11:00
Wessel Nieboer d0720c63c2 Allow negative tx power
Like SX1262 allows -9 dBm lowest, some allow lower but that probably
isn't useful
2026-02-06 02:24:51 +01:00