Commit Graph
58 Commits
Author SHA1 Message Date
tthandClaude Opus 5 c7c9b812ab feat(gps): duty-cycle the receiver, for nodes that run GPS only for the clock
Measured on a SenseCAP Solar P1-Pro: a continuously powered L76K costs 46.0 mA
(paired A/B, spread 43.7-47.5), which is more than everything else on the node
put together -- it runs at ~24 mA with GPS asleep. A mast repeater does not need
a continuous fix; it needs its volatile RTC set, or clients drop its replies.

`gps duty` powers the receiver only around a sync and cuts it in between. The
cadence matches the 30-minute re-sync MicroNMEALocationProvider already does, so
clock accuracy is unchanged while 42-45 of those 46 mA come back -- 42 even in
the pathological case where a fix never arrives.

Encoded as gps_enabled == 2 rather than a new pref, so the prefs file layout is
untouched and an older build just clamps the value.

The cadence is owned by the state machine, not by the provider's own re-arm, for
a concrete reason: with the receiver unpowered nothing feeds the parser, and
MicroNMEA keeps reporting the LAST fix as valid -- a provider-driven re-arm
would therefore set the RTC to a half-hour-old timestamp. Hence syncTime() (which
clears the parser) on every wake plus an own timer, and int32_t deltas so the
49-day millis() wrap cannot park GPS on or off forever.

Verified on hardware, both paths: with sky `duty, asleep, fix, 7 sats` (fix
taken, clock set, receiver cut); indoors `awake` for exactly 300 s and then
`asleep` with an hourly retry.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-06 10:05:26 +02:00
formtapez 5ae8c26772 fix formatting 2026-06-12 12:14:46 +02:00
formtapez b21b12ec7f added some missing CLI commands 2026-06-12 12:11:12 +02:00
Scott Powell f7f8a331cd Merge branch 'dev'
# Conflicts:
#	docs/faq.md
2026-06-06 21:12:43 +10:00
IoTThinks f74c1ab368 Change default power saving setting to 'off' 2026-06-06 11:04:36 +07:00
ripplebiz fb517b2164 Merge pull request #2661 from mrzarquon/mrz/flood_max_unscoped
Implement flood.max.unscoped to allow selective repeating of unscoped messages
2026-06-02 14:00:33 +10:00
Liam Cottle 7feea5981a Merge pull request #2635 from sefinek/docs/fix-typos-and-grammar
docs: fix typos, grammar issues and standardise Wi-Fi spelling
2026-06-02 12:41:30 +12:00
Chris Barker f430d9f990 Updates Docs to reflect flood.max.unscoped behavior. 2026-06-01 21:30:31 +01:00
Sefinek c99fe41b1e docs: remove duplicate radio.rxgain entry and fix hardware note 2026-05-28 14:52:00 +02:00
Sefinek a3a52e58fa docs: fix typos, grammar and Wi-Fi capitalisation across docs 2026-05-28 14:23:31 +02:00
agessaman c9b44367d6 Refactor region def with helpers, refine docs
Extract the inline cursor-walk in handleRegionCmd into file-local
helpers (skipSpaces, rtrimSpaces, takeToken, splitNameJump,
processRegionDefSegment), grouped immediately above the consumer.
Behavior is identical; addresses PR #2540 review feedback on
readability.

Tighten the region def docs: collapse five Note callouts into three
grouped paragraphs (Behavior / Existing regions / Limits), add a
case-sensitivity caveat plus an error example, note the cursor reset
between split commands, and use generic placeholder names.
2026-05-21 19:25:01 -07:00
agessaman 335dec8366 Update CLI command from region bulk to region def 2026-05-16 10:47:51 -07:00
AI7NC c088f9103c Update cli_commands.md to include 'ver'
Include the 'ver' command for retrieving the firmware version
2026-05-12 12:42:33 -07:00
agessaman cfe6cb09bc Add bulk region hierarchy command to CLI
Add a new command `region bulk` for defining region hierarchies in a single line. This command allows users to create multiple regions in a single message. Updated the documentation to include usage examples and detailed parameter descriptions.
2026-05-12 12:08:03 -07:00
ripplebiz 974297bf7d Merge pull request #2445 from kizniche/update-docs-txdelay-rxdelay
Docs: Add explanatory notes for txdelay, direct.txdelay, and rxdelay
2026-05-06 14:37:36 +10:00
Avi0n bb93ff073c fix typos 2026-04-30 14:21:26 -07:00
Kyle d2be6bd285 docs: add explanatory notes for txdelay, direct.txdelay, and rxdelay CLI commands 2026-04-29 14:10:13 -04:00
Scott Powell a54cfa05a1 Merge branch 'dev'
# Conflicts:
#	docs/faq.md
2026-04-19 11:35:03 +10:00
Liam Cottle ae537a4aa3 Merge pull request #2103 from robekl/docs-radio-rxgain
docs: add radio.rxgain command reference
2026-04-18 19:05:43 +12:00
Scott Powell 4f40ffb305 Merge branch 'default-scope' into dev 2026-04-17 16:30:19 +10:00
Scott Powell 0a4ee5c1ea * doco: "region default" 2026-04-17 13:49:57 +10:00
Liam Cottle 3280b71c01 Merge pull request #2102 from robekl/docs-gps-output-format
docs: align gps output description with CLI
2026-04-13 01:51:51 +12:00
liamcottle f5f904fd8b update neighbor.remove docs 2026-04-02 23:24:39 +13:00
Scott Powell e75644f7d6 * docs changes for PAYLOAD_TYPE_GRP_DATA 2026-03-29 06:33:35 +11:00
Wessel Nieboer 9f9a1701c7 Merge branch 'dutycycle-command' of github.com:weebl2000/MeshCore into dutycycle-command 2026-03-24 03:08:54 +01:00
Wessel Nieboer 0814181792 restore docs 2026-03-24 03:08:18 +01:00
Wessel Nieboer ec0236fb7e Address comments 2026-03-23 14:31:08 +01:00
Wessel Nieboer 726d1a4858 Add get/set dutycycle command
We translate to af internally, it's easier to store and doesn't break
stored prefs. Made get/set af command show deprecated, but it still
works fine.
2026-03-23 14:31:07 +01:00
Jeroen Vermeulen 066a85e31a Add discover.neighbors command documentation 2026-03-22 21:35:02 +01:00
Jeroen Vermeulen 7ef1f52300 Update temporary note with a hyperlink to issue #2118 2026-03-22 21:19:06 +01:00
Jeroen Vermeulen 9bf5e2a367 Update note for upgrade to version 1.14.1
Clarify note regarding upgrade from older version.
2026-03-22 21:18:14 +01:00
Jeroen Vermeulen be3edfd8eb Update note about setting when upgrading
Clarified note regarding default setting for upgrades from older versions.
See https://github.com/meshcore-dev/MeshCore/pull/1653#issuecomment-4101341378
2026-03-20 23:54:48 +01:00
Jeroen Vermeulen 97e6d9843e Documented get/set radio.rxgain CLI command
Added documentation for RX Boosted Gain Mode commands.
2026-03-20 22:46:53 +01:00
Robert Ekl 057588ca92 docs: add radio.rxgain command reference 2026-03-20 12:30:51 -05:00
Robert Ekl 542ef38096 docs: align gps output description with CLI 2026-03-20 12:29:48 -05:00
Wessel Nieboer aa077150e0 Address comments 2026-03-18 22:09:24 +01:00
Jouni 026b8201f4 Airtime (af) documentation update 2026-03-16 16:26:55 +02:00
ripplebiz 62c17bd377 Merge pull request #1964 from EtoOnAmill/main
Removed section for isolated `get bridge.source`
2026-03-16 14:39:26 +11:00
Liam Cottle 7633e8a880 Merge pull request #1977 from robekl/docs/implementation-sync-release
Update docs to align with implementation
2026-03-11 18:09:16 +13:00
Robert Ekl 503f270b75 set prv.key doc update 2026-03-10 22:12:55 -05:00
Wessel Nieboer 3d792e7bb1 Add get/set dutycycle command
We translate to af internally, it's easier to store and doesn't break
stored prefs. Made get/set af command show deprecated, but it still
works fine.
2026-03-09 13:43:17 +01:00
Robert Ekl e80e72aae9 docs: sync CLI and payload docs with implementation 2026-03-08 21:31:08 -06:00
AI7NC 3cbc30a3f2 Update cli_commands.md R400 grammer
Small grammar fix
2026-03-07 11:14:03 -08:00
AI7NC 8a61051f17 Update cli_commands.md R402 2026-03-07 11:01:20 -08:00
AI7NC 71462ec422 Update cli_commands.md R399 updates 2026-03-07 10:55:40 -08:00
AI7NCandWessel 23fcb8e866 Apply suggestion from @weebl2000
Co-authored-by: Wessel <wessel@weebl.me>
2026-03-07 10:43:23 -08:00
AI7NCandWessel d0567950fb Apply suggestion from @weebl2000
Co-authored-by: Wessel <wessel@weebl.me>
2026-03-07 10:42:13 -08:00
AI7NCandWessel 3295d2ebb2 Apply suggestion from @weebl2000
Co-authored-by: Wessel <wessel@weebl.me>
2026-03-07 10:40:41 -08:00
EtoOnAmill 9a3d1fde81 Removed section for individual get bridge.source 2026-03-07 16:54:50 +01:00
AI7NC a4fba5a6ac Update cli_commands.md 2026-03-06 16:30:45 -08:00