Docs: one power table of every option against stock, with measured reception
Changelog: - Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9cd055b448
commit
4c0d0a33bb
2 files changed
+74
-24
No files matched your search
@@ -163,6 +163,11 @@ Repeater navíc:
|
||||
|
||||
### Napájení, hodiny, GPS
|
||||
|
||||
Každá úspora proti upstreamu s naměřeným proudem a vlivem na příjem je v jedné
|
||||
tabulce: [docs/power.md](docs/power.md#summary-every-option-against-stock-firmware).
|
||||
Změřeno proti upstreamu na stejné desce (XIAO, 3,3 V): náš repeater **6,87 mA**, upstream
|
||||
v1.19.0, jak ho dostanete, **10,13 mA** (−32 %; [protokol](docs/measurements/2026-12-04-stock-vs-tth/protocol.md)).
|
||||
|
||||
* GPS duty cycle (`gps duty`), i na T1000-E, kde nebyl: přijímač běží jen
|
||||
kolem synchronizace hodin (jednou denně, po neúspěšném okně znovu za 6 h).
|
||||
Dotaz na polohu přijímač probudí pro příští dotaz.
|
||||
@@ -174,9 +179,10 @@ Repeater navíc:
|
||||
nepojme a příkaz na to upozorní).
|
||||
* Volitelný RX duty cycle (`set radio.rxps <off|on|balanced|max>`, jemněji
|
||||
`set radio.rxps level <level>` 1–10; port PowerSaving z EasySkyMesh): SX1262 mezi krátkými okny
|
||||
poslechu spí. Ve veřejných buildech je zabudovaný a **vypnutý**; `max` na
|
||||
lavici ušetřil ~2,3 mA bez ztráty paketů ([docs/power.md](docs/power.md)),
|
||||
na ostrém meshi ale jeden náš stožár ztratil 16 % příjmu – zapínat s rozmyslem. Jen
|
||||
poslechu spí. Ve veřejných buildech je zabudovaný a **vypnutý**; ušetří ~2 mA,
|
||||
ale **ztrácí slabé pakety**: při SNR pod nulou 13–28 % příjmu (lavice 4. 12. 2026,
|
||||
[docs/power.md](docs/power.md)), náš stožár na ostrém meshi 16 %. Jen pro uzly se
|
||||
silným signálem, na stožár ne. Jen
|
||||
SX1262, ne LR1110 (T1000-E).
|
||||
* Opravy RX duty cycle: `set radio.rxps off` přepne rádio zpět okamžitě i ve
|
||||
stavu, kdy se dřív zaseklo, a příjem po kalibraci šumu se znovu nastartuje –
|
||||
@@ -530,6 +536,11 @@ The repeater also has:
|
||||
|
||||
### Power, clock, GPS
|
||||
|
||||
Every saving against upstream, with the measured current and its effect on
|
||||
reception, is in one table: [docs/power.md](docs/power.md#summary-every-option-against-stock-firmware).
|
||||
Measured against upstream on the same board (XIAO, 3.3 V): our repeater **6.87 mA**, upstream
|
||||
v1.19.0 as shipped **10.13 mA** (−32 %; [protocol](docs/measurements/2026-12-04-stock-vs-tth/protocol.md)).
|
||||
|
||||
* GPS duty cycle (`gps duty`), also on the T1000-E, which had none: the
|
||||
receiver runs only around a clock sync (once a day, after a window without
|
||||
a fix again in 6 h). A position request warms it for the next request.
|
||||
@@ -542,9 +553,10 @@ The repeater also has:
|
||||
* Optional RX duty cycle (`set radio.rxps <off|on|balanced|max>`, finer
|
||||
`set radio.rxps level <level>` 1-10; ported from EasySkyMesh PowerSaving): the SX1262 sleeps
|
||||
between short listening windows. Built into the public releases and
|
||||
**off**; `max` saved ~2.3 mA on the bench with no packet loss
|
||||
([docs/power.md](docs/power.md)), but on the live mesh one of our masts lost
|
||||
16 % of its reception -- switch it on with care. SX1262 only, not the LR1110
|
||||
**off**; it saves ~2 mA but **loses
|
||||
weak packets**: 13-28 % of reception below 0 dB SNR (bench, 4. 12. 2026,
|
||||
[docs/power.md](docs/power.md)), 16 % on one of our masts on the live mesh.
|
||||
Only for nodes with a strong signal, not for a mast. SX1262 only, not the LR1110
|
||||
(T1000-E).
|
||||
* RX duty cycle fixes: `set radio.rxps off` takes effect at once even in the
|
||||
state that used to stall, and reception is re-armed after the noise-floor
|
||||
|
||||
+56
-18
@@ -1,25 +1,63 @@
|
||||
# Power saving on a solar repeater — what it costs, measured
|
||||
|
||||
Everything here was measured on the deployment hardware (SenseCAP Solar Node
|
||||
P1-Pro, nRF52840 + SX1262 + L76K) on 2026-08-05/06 with `tools/power_ab.py`, not
|
||||
taken from a datasheet. Numbers are input current on the 5 V USB side; the delta
|
||||
between two states is what the paired design measures, and that is what these
|
||||
figures are.
|
||||
Every number on this page was measured, none is from a datasheet unless it
|
||||
says so. Two rigs: a **SenseCAP Solar P1-Pro** (nRF52840 + SX1262 + L76K GPS,
|
||||
the mast board) on its 5 V USB side, August 2026; and a **XIAO nRF52840 +
|
||||
Wio-SX1262** fed on its 3V3 pin at 3.25 V through an INA226, no USB -- the
|
||||
closer match to a node on a cell -- in November and December 2026. Each figure
|
||||
is a paired A/B delta (`tools/power_ab.py`); the absolute currents belong to the
|
||||
rig, the deltas carry over to other nRF52840 + SX1262 boards.
|
||||
|
||||
## The order that matters
|
||||
## Summary: every option against stock firmware
|
||||
|
||||
| lever | measured | verdict |
|
||||
|---|---|---|
|
||||
| **GPS running continuously** | **46.0 mA** (spread 43.7-47.5) | `gps duty` recovers 42-45 of it |
|
||||
| BLE advertising + Bluefruit's blinking LED | see below | defaults changed, LED off, 1 s interval |
|
||||
| `powersaving on` (MCU light sleep) | **~1 mA** with USB, **2.7 mA** without (XIAO, 11/2026) | keep it on |
|
||||
| CC310 IRQ cleared before sleep (nRF52) | **2.6 mA** after every boot | fixed in firmware, see below |
|
||||
| RX duty cycle (`set radio.rxps`, from EasySkyMesh) | **~2.3 mA** at `max` (XIAO, 12. 11. 2026) | **no** on a live node: -16 % received and a TX stall on mast-three, see below |
|
||||
| `radio.rxgain off` | ~0.7 mA | **no** — 1-3 dB of sensitivity is what a mast node is for |
|
||||
| FEM LNA control | n/a | SenseCap has no FEM, only an RXEN switch |
|
||||
"Stock" is upstream MeshCore with its defaults; "here" is this fork's public
|
||||
release. Current is the paired delta of switching the option on (negative =
|
||||
saves). Reception is what another board counted on the bench, or the live mesh
|
||||
where it says so.
|
||||
|
||||
A whole node in the shipping configuration, with the battery charged and GPS
|
||||
duty-cycled, sits at **~24 mA**. Continuous GPS alone would nearly triple that.
|
||||
| option | stock | here | current | reception / transmission | details |
|
||||
|---|---|---|---|---|---|
|
||||
| GPS `gps duty` (receiver powered only around a daily clock sync) | continuous (`gps on`) or `gps period` | `gps duty` on mast builds | **−42 to −45 mA** of 46 (P1-Pro) | no effect on the radio | [GPS](#gps-is-the-whole-game) |
|
||||
| CC310 IRQ cleared before sleep | not needed: stock (no BLE) showed no insomnia, see the whole-node measurement | always (fix of our own BLE builds) | −3.3 mA at 3.3 V, −2.6 mA at 5 V, **against our earlier builds**, not against stock | none | [nRF52 fixes](#nrf52-sleep-and-peripheral-fixes) |
|
||||
| `powersaving on` (MCU sleeps between events) | off | on (provisioning) | **−2.86 mA** on stock v1.19.0 (protocol below); −2.7 mA on ours; ~−1 mA with USB attached | no loss seen (5/6 witness, one pair); DIO1 wakes the core for every packet | [MCU sleep](#mcu-sleep) |
|
||||
| RX duty cycle `set radio.rxps balanced` | not in upstream | built in, **off** | **−1.8 to −2.0 mA** | strong signal (SNR +11): 0 lost of 1200; **weak signal (SNR −2..−8): 13–28 % lost** against 0/450 without rxps, any sender preamble (4. 12. 2026, #46) | [rxps](#rx-duty-cycle-rxps) |
|
||||
| RX duty cycle `set radio.rxps max` | not in upstream | built in, **off** | **−2.3 to −2.5 mA** | as `balanced` or worse; **live mast-three 14. 11.: −16 % received and a TX stall** (the stall is fixed, #46) | [rxps](#rx-duty-cycle-rxps) |
|
||||
| tickless main loop (with `powersaving on`) | 1024 Hz tick | always | **−0.35 mA** | packets handled at once (DIO1 notifies the loop), 3/3 witness | [nRF52 fixes](#nrf52-sleep-and-peripheral-fixes) |
|
||||
| SX1262 SPI on `NRF_SPIM2` (Errata 195) | `NRF_SPIM3` | always | **−0.47 mA** | none | [nRF52 fixes](#nrf52-sleep-and-peripheral-fixes) |
|
||||
| `set radio.rxgain off` | on (boosted RX gain) | on | **−0.45 to −0.51 mA** | costs sensitivity (datasheet: ~1-3 dB); bench witness saw no gross loss, a strong bench signal cannot show the sensitivity | [nRF52 fixes](#nrf52-sleep-and-peripheral-fixes) |
|
||||
| adaptive `set pwr.rxgain <mV>` / `set pwr.rxps <mV>` | not in upstream | built in, **off** | the two rows above, only while the battery is below the threshold | as the rows above, only then | [bootlock and cutoff](#a-mast-that-runs-flat-bootlock-and-cutoff) |
|
||||
| BLE: LED off while connected/advertising, slow advertising 1 s | LED on, 152.5 ms | on mast builds | not measured separately | none (BLE only) | [BLE](#ble-two-defaults-that-were-quietly-expensive) |
|
||||
| DC/DC regulator | on | on (re-enabled after SoftDevice, harmless) | switching it **off costs +0.6 mA** at 3.3 V | none | [nRF52 fixes](#nrf52-sleep-and-peripheral-fixes) |
|
||||
| noise-floor calibration every 10 s instead of 2 s | 2 s | 2 s | ±0.08 mA (noise) | -- | [nRF52 fixes](#nrf52-sleep-and-peripheral-fixes) |
|
||||
| idle I2C (`Wire.end()`), GPIOTE channel for DIO1 | -- | -- | ±0.00 mA | -- | [nRF52 fixes](#nrf52-sleep-and-peripheral-fixes) |
|
||||
| `ble off` | on | on (a mast needs the way in) | ~1 mA of ~24 on the P1-Pro | -- | [BLE](#ble-two-defaults-that-were-quietly-expensive) |
|
||||
|
||||
**Whole node, measured against stock** ([protocol](measurements/2026-12-04-stock-vs-tth/protocol.md),
|
||||
4. 12. 2026, XIAO on its 3V3 pin, two independent INA226 meters, the same
|
||||
board and settings for both images):
|
||||
|
||||
| image | current (k = 2) |
|
||||
|---|---|
|
||||
| this fork's public repeater (`powersaving on`, as provisioned) | **(6.87 ± 0.08) mA** |
|
||||
| upstream v1.19.0 with `powersaving on` set by hand | (7.27 ± 0.09) mA, +(0.40 ± 0.01) mA |
|
||||
| **upstream v1.19.0 as shipped** (`powersaving off`) | **(10.13 ± 0.12) mA**, +(3.26 ± 0.04) mA |
|
||||
|
||||
The fork draws 32 % less than stock as shipped; 2.86 mA of that is
|
||||
`powersaving`, the code changes save the remaining 0.40 mA. The per-option
|
||||
deltas of the other rows were measured against our own builds and do not add up
|
||||
to this (the CC310 one does not apply to stock at all); a re-measurement of every
|
||||
row against this protocol's rig is planned. A P1-Pro in the mast configuration
|
||||
(GPS duty, BLE on, charged cell) sits at **~24 mA**; continuous GPS alone would
|
||||
nearly triple that.
|
||||
|
||||
**rxps costs reception.** On a strong signal the bench never lost a packet to
|
||||
it, which is why it looked free (12. 11.: 0/240). On a weak one it does: with x4
|
||||
receiving without antenna (RSSI −120..−126, SNR −2..−8, everyday traffic for a
|
||||
mast) `balanced` lost 13–28 % against 0 of 450 without rxps, with 16- and
|
||||
32-symbol senders alike, plus `recv_errors` from packets caught too late (#46,
|
||||
4. 12. 2026). It explains mast-three's −16 % of 14. 11. and its lost admin replies
|
||||
on 4. 12.; mast-three runs rxps **off** again since then. Use it only on a node
|
||||
whose packets arrive strong (a short hop, a desk), never on a mast.
|
||||
|
||||
## GPS is the whole game
|
||||
|
||||
@@ -269,7 +307,7 @@ then shows `RESETREAS=0x00020000`, bit 17, wake from LPCOMP); with a cutoff
|
||||
set, lowering the supply below it must switch the node off within ~3 minutes
|
||||
and `get pwr` after the wake must say `last off: Low Voltage`.
|
||||
|
||||
## nRF52 sleep & peripheral fixes
|
||||
## nRF52 sleep and peripheral fixes
|
||||
|
||||
An audit of the nRF52840 firmware and the Adafruit core found several sources of
|
||||
idle draw that apply to all nRF52 boards, not only SenseCAP Solar. They were
|
||||
|
||||
Reference in new issue
Block a user