1176 lines
42 KiB
HTML
1176 lines
42 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="en">
|
||
<head>
|
||
|
||
<meta charset="UTF-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-terminal-4.8.0">
|
||
|
||
<meta name="description" content="MeshCore fork meshcore-tth -- repeater antispam, diagnostics, OTA, Czech mesh defaults">
|
||
|
||
|
||
<link rel="canonical" href="https://tth-pub.pages.rfa.cz/meshcore-tth/power/"><link rel="icon" type="image/png" sizes="192x192" href="../img/android-chrome-192x192.png" />
|
||
<link rel="icon" type="image/png" sizes="512x512" href="../img/android-chrome-512x512.png" />
|
||
<link rel="apple-touch-icon" sizes="180x180" href="../img/apple-touch-icon.png" />
|
||
<link rel="shortcut icon" type="image/png" sizes="48x48" href="../img/favicon.ico" />
|
||
<link rel="icon" type="image/png" sizes="16x16" href="../img/favicon-16x16.png" />
|
||
<link rel="icon" type="image/png" sizes="32x32" href="../img/favicon-32x32.png" />
|
||
|
||
|
||
|
||
|
||
<title>Power saving - MeshCore TTH</title>
|
||
|
||
|
||
<link href="../css/fontawesome/css/fontawesome.min.css" rel="stylesheet">
|
||
<link href="../css/fontawesome/css/solid.min.css" rel="stylesheet">
|
||
<link href="../css/normalize.css" rel="stylesheet">
|
||
<link href="../css/terminal.css" rel="stylesheet">
|
||
<link href="../css/theme.css" rel="stylesheet">
|
||
<link href="../css/theme.tile_grid.css" rel="stylesheet">
|
||
<link href="../css/theme.footer.css" rel="stylesheet">
|
||
<!-- dark color palette -->
|
||
<link href="../css/palettes/dark.css" rel="stylesheet">
|
||
|
||
<!-- page layout -->
|
||
<style>
|
||
/* initially set page layout to a one column grid */
|
||
.terminal-mkdocs-main-grid {
|
||
display: grid;
|
||
grid-column-gap: 1.4em;
|
||
grid-template-columns: auto;
|
||
grid-template-rows: auto;
|
||
}
|
||
|
||
/*
|
||
* when side navigation is not hidden, use a two column grid.
|
||
* if the screen is too narrow, fall back to the initial one column grid layout.
|
||
* in this case the main content will be placed under the navigation panel.
|
||
*/
|
||
@media only screen and (min-width: 70em) {
|
||
.terminal-mkdocs-main-grid {
|
||
grid-template-columns: 4fr 9fr;
|
||
}
|
||
}</style>
|
||
|
||
<!-- cursor_animation override -->
|
||
<style>
|
||
#mkdocs-terminal-site-name.terminal-prompt::after {
|
||
display: none;
|
||
}
|
||
</style>
|
||
|
||
|
||
<link href="../_stylesheets/tth.css" rel="stylesheet">
|
||
|
||
|
||
|
||
|
||
<!-- search css support -->
|
||
<link href="../css/search/bootstrap-modal.css" rel="stylesheet">
|
||
<!-- search scripts -->
|
||
<script>
|
||
var base_url = "..",
|
||
shortcuts = "{}";
|
||
</script>
|
||
<script src="../js/jquery/jquery-1.10.1.min.js" defer></script>
|
||
<script src="../js/bootstrap/bootstrap.min.js" defer></script>
|
||
<script src="../js/mkdocs/base.js" defer></script>
|
||
|
||
|
||
|
||
|
||
<script src="../search/main.js"></script>
|
||
|
||
|
||
|
||
</head>
|
||
|
||
<body class="terminal"><div class="container">
|
||
<div class="terminal-nav">
|
||
<header class="terminal-logo">
|
||
<div id="mkdocs-terminal-site-name" class="logo terminal-prompt"><a href="https://tth-pub.pages.rfa.cz/meshcore-tth/" class="no-style">MeshCore TTH</a></div>
|
||
</header>
|
||
|
||
<nav class="terminal-menu">
|
||
|
||
<ul vocab="https://schema.org/" typeof="BreadcrumbList">
|
||
|
||
|
||
<li property="itemListElement" typeof="ListItem">
|
||
<a href=".." class="menu-item " property="item" typeof="WebPage">
|
||
<span property="name">About the fork</span>
|
||
</a>
|
||
<meta property="position" content="0">
|
||
</li>
|
||
|
||
|
||
<li property="itemListElement" typeof="ListItem">
|
||
<a href="../cs/" class="menu-item " property="item" typeof="WebPage">
|
||
<span property="name">Česky</span>
|
||
</a>
|
||
<meta property="position" content="1">
|
||
</li>
|
||
|
||
|
||
<li property="itemListElement" typeof="ListItem">
|
||
<a href="https://git.rfa.cz/tth-pub/meshcore-tth" class="menu-item " property="item" typeof="WebPage">
|
||
<span property="name">Repository</span>
|
||
</a>
|
||
<meta property="position" content="2">
|
||
</li>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<li property="itemListElement" typeof="ListItem">
|
||
<a href="#" class="menu-item" data-toggle="modal" data-target="#mkdocs_search_modal" property="item" typeof="SearchAction">
|
||
<i aria-hidden="true" class="fa fa-search"></i> <span property="name">Search</span>
|
||
</a>
|
||
<meta property="position" content="3">
|
||
</li>
|
||
|
||
</ul>
|
||
|
||
</nav>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="container">
|
||
<div class="terminal-mkdocs-main-grid"><aside id="terminal-mkdocs-side-panel"><nav>
|
||
<ul class="terminal-mkdocs-side-nav-items">
|
||
|
||
<li class="terminal-mkdocs-side-nav-li">
|
||
|
||
|
||
|
||
|
||
|
||
<a class="terminal-mkdocs-side-nav-item" href="..">About the fork</a>
|
||
|
||
|
||
|
||
|
||
</li>
|
||
|
||
<li class="terminal-mkdocs-side-nav-li">
|
||
|
||
|
||
|
||
|
||
|
||
<a class="terminal-mkdocs-side-nav-item" href="../cs/">Česky</a>
|
||
|
||
|
||
|
||
|
||
</li>
|
||
|
||
<li class="terminal-mkdocs-side-nav-li">
|
||
|
||
|
||
|
||
|
||
|
||
<a class="terminal-mkdocs-side-nav-item" href="https://git.rfa.cz/tth-pub/meshcore-tth">Repository</a>
|
||
|
||
|
||
|
||
|
||
</li>
|
||
|
||
<li class="terminal-mkdocs-side-nav-li">
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<span class="
|
||
|
||
|
||
|
||
terminal-mkdocs-side-nav-item--active terminal-mkdocs-side-nav-section-no-index">Fork meshcore-tth</span>
|
||
|
||
|
||
|
||
|
||
<ul class="terminal-mkdocs-side-nav-li-ul">
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<li class="terminal-mkdocs-side-nav-li-ul-li">
|
||
|
||
|
||
|
||
<a class="terminal-mkdocs-side-nav-item" href="../tth-commands/">Console commands</a>
|
||
|
||
|
||
</li>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<li class="terminal-mkdocs-side-nav-li-ul-li">
|
||
|
||
|
||
|
||
<a class="terminal-mkdocs-side-nav-item" href="../ota/">Firmware update by the admin (OTA)</a>
|
||
|
||
|
||
</li>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<li class="terminal-mkdocs-side-nav-li-ul-li">
|
||
|
||
|
||
<span class="terminal-mkdocs-side-nav-item--active">Power saving</span>
|
||
|
||
</li>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<li class="terminal-mkdocs-side-nav-li-ul-li">
|
||
|
||
|
||
|
||
<a class="terminal-mkdocs-side-nav-item" href="../budka-sensor/">Budka as a sensor</a>
|
||
|
||
|
||
</li>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<li class="terminal-mkdocs-side-nav-li-ul-li">
|
||
|
||
|
||
|
||
<a class="terminal-mkdocs-side-nav-item" href="../ble-lora-coexistence/">BLE/LoRa coexistence</a>
|
||
|
||
|
||
</li>
|
||
|
||
|
||
</ul>
|
||
|
||
|
||
</li>
|
||
|
||
<li class="terminal-mkdocs-side-nav-li">
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<span class="
|
||
|
||
|
||
|
||
terminal-mkdocs-side-nav-item terminal-mkdocs-side-nav-section-no-index">MeshCore (upstream)</span>
|
||
|
||
|
||
|
||
|
||
|
||
<ul class="terminal-mkdocs-side-nav-li-ul">
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<li class="terminal-mkdocs-side-nav-li-ul-li">
|
||
|
||
|
||
|
||
<a class="terminal-mkdocs-side-nav-item" href="../meshcore/">Introduction</a>
|
||
|
||
|
||
</li>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<li class="terminal-mkdocs-side-nav-li-ul-li">
|
||
|
||
|
||
|
||
<a class="terminal-mkdocs-side-nav-item" href="../faq/">FAQ</a>
|
||
|
||
|
||
</li>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<li class="terminal-mkdocs-side-nav-li-ul-li">
|
||
|
||
|
||
|
||
<a class="terminal-mkdocs-side-nav-item" href="../cli_commands/">CLI commands</a>
|
||
|
||
|
||
</li>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<li class="terminal-mkdocs-side-nav-li-ul-li">
|
||
|
||
|
||
|
||
<a class="terminal-mkdocs-side-nav-item" href="../companion_cli/">Companion CLI</a>
|
||
|
||
|
||
</li>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<li class="terminal-mkdocs-side-nav-li-ul-li">
|
||
|
||
|
||
|
||
<a class="terminal-mkdocs-side-nav-item" href="../companion_protocol/">Companion protocol</a>
|
||
|
||
|
||
</li>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<li class="terminal-mkdocs-side-nav-li-ul-li">
|
||
|
||
|
||
|
||
<a class="terminal-mkdocs-side-nav-item" href="../terminal_chat_cli/">Terminal chat CLI</a>
|
||
|
||
|
||
</li>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<li class="terminal-mkdocs-side-nav-li-ul-li">
|
||
|
||
|
||
|
||
<a class="terminal-mkdocs-side-nav-item" href="../kiss_modem_protocol/">KISS modem protocol</a>
|
||
|
||
|
||
</li>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<li class="terminal-mkdocs-side-nav-li-ul-li">
|
||
|
||
|
||
|
||
<a class="terminal-mkdocs-side-nav-item" href="../packet_format/">Packet format</a>
|
||
|
||
|
||
</li>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<li class="terminal-mkdocs-side-nav-li-ul-li">
|
||
|
||
|
||
|
||
<a class="terminal-mkdocs-side-nav-item" href="../payloads/">Payloads</a>
|
||
|
||
|
||
</li>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<li class="terminal-mkdocs-side-nav-li-ul-li">
|
||
|
||
|
||
|
||
<a class="terminal-mkdocs-side-nav-item" href="../stats_binary_frames/">Stats binary frames</a>
|
||
|
||
|
||
</li>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<li class="terminal-mkdocs-side-nav-li-ul-li">
|
||
|
||
|
||
|
||
<a class="terminal-mkdocs-side-nav-item" href="../number_allocations/">Number allocations</a>
|
||
|
||
|
||
</li>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<li class="terminal-mkdocs-side-nav-li-ul-li">
|
||
|
||
|
||
|
||
<a class="terminal-mkdocs-side-nav-item" href="../qr_codes/">QR codes</a>
|
||
|
||
|
||
</li>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<li class="terminal-mkdocs-side-nav-li-ul-li">
|
||
|
||
|
||
|
||
<a class="terminal-mkdocs-side-nav-item" href="../radio_presets/">Radio presets</a>
|
||
|
||
|
||
</li>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<li class="terminal-mkdocs-side-nav-li-ul-li">
|
||
|
||
|
||
|
||
<a class="terminal-mkdocs-side-nav-item" href="../nrf52_power_management/">nRF52 power management</a>
|
||
|
||
|
||
</li>
|
||
|
||
|
||
</ul>
|
||
|
||
|
||
</li>
|
||
|
||
</ul>
|
||
</nav><hr>
|
||
<nav>
|
||
<ul>
|
||
<li><a href="#power-saving-on-a-solar-repeater-what-it-costs-measured">Power saving on a solar repeater — what it costs, measured</a></li>
|
||
<li><a href="#the-order-that-matters">The order that matters</a></li><li><a href="#gps-is-the-whole-game">GPS is the whole game</a></li><li><a href="#ble-two-defaults-that-were-quietly-expensive">BLE: two defaults that were quietly expensive</a></li><li><a href="#rx-duty-cycle-rxps">RX duty cycle (rxps)</a></li><li><a href="#mcu-sleep">MCU sleep</a></li><li><a href="#a-mast-that-runs-flat-bootlock-and-cutoff">A mast that runs flat: bootlock and cutoff</a></li><li><a href="#nrf52-sleep-peripheral-fixes">nRF52 sleep & peripheral fixes</a></li><li><a href="#measuring-this-yourself-two-traps">Measuring this yourself — two traps</a></li>
|
||
</ul>
|
||
</nav>
|
||
</aside>
|
||
<main id="terminal-mkdocs-main-content">
|
||
<section id="mkdocs-terminal-content">
|
||
<h1 id="power-saving-on-a-solar-repeater-what-it-costs-measured">Power saving on a solar repeater — what it costs, measured</h1>
|
||
<p>Everything here was measured on the deployment hardware (SenseCAP Solar Node
|
||
P1-Pro, nRF52840 + SX1262 + L76K) on 2026-08-05/06 with <code>tools/power_ab.py</code>, 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.</p>
|
||
<h2 id="the-order-that-matters">The order that matters</h2>
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th>lever</th>
|
||
<th>measured</th>
|
||
<th>verdict</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td><strong>GPS running continuously</strong></td>
|
||
<td><strong>46.0 mA</strong> (spread 43.7-47.5)</td>
|
||
<td><code>gps duty</code> recovers 42-45 of it</td>
|
||
</tr>
|
||
<tr>
|
||
<td>BLE advertising + Bluefruit's blinking LED</td>
|
||
<td>see below</td>
|
||
<td>defaults changed, LED off, 1 s interval</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>powersaving on</code> (MCU light sleep)</td>
|
||
<td><strong>~1 mA</strong> with USB, <strong>2.7 mA</strong> without (XIAO, 11/2026)</td>
|
||
<td>keep it on</td>
|
||
</tr>
|
||
<tr>
|
||
<td>CC310 IRQ cleared before sleep (nRF52)</td>
|
||
<td><strong>2.6 mA</strong> after every boot</td>
|
||
<td>fixed in firmware, see below</td>
|
||
</tr>
|
||
<tr>
|
||
<td>RX duty cycle (<code>set radio.rxps</code>, from EasySkyMesh)</td>
|
||
<td><strong>~2.3 mA</strong> at <code>max</code> (XIAO, 12. 11. 2026)</td>
|
||
<td><strong>no</strong> on a live node: -16 % received and a TX stall on mast-three, see below</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>radio.rxgain off</code></td>
|
||
<td>~0.7 mA</td>
|
||
<td><strong>no</strong> — 1-3 dB of sensitivity is what a mast node is for</td>
|
||
</tr>
|
||
<tr>
|
||
<td>FEM LNA control</td>
|
||
<td>n/a</td>
|
||
<td>SenseCap has no FEM, only an RXEN switch</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
<p>A whole node in the shipping configuration, with the battery charged and GPS
|
||
duty-cycled, sits at <strong>~24 mA</strong>. Continuous GPS alone would nearly triple that.</p>
|
||
<h2 id="gps-is-the-whole-game">GPS is the whole game</h2>
|
||
<p>The receiver on this board draws 46 mA, and a mast repeater runs GPS for one
|
||
reason only: the RTC is volatile, and a node whose clock is wrong has its
|
||
replies dropped by clients. It does not need a continuous fix — it needs the
|
||
clock set.</p>
|
||
<p>GPS is no longer the <em>only</em> way to get that (since 7. 8. 2026 a node starts at
|
||
its build epoch and any attached host sets it — see <code>docs/cli_commands.md</code> under
|
||
<code>time</code>). A reboot still throws the clock back to the build epoch: carrying it
|
||
across one in retained RAM was tried and measured not to work, because the
|
||
bootloader's stack owns the top of RAM. GPS is still
|
||
what makes a mast node's clock <strong>absolutely</strong> right months after the flash, with
|
||
nobody there to set it, so this reasoning stands for anything on a mast. What
|
||
changed is that a node without GPS is no longer stuck in 2024.</p>
|
||
<p><code>gps duty</code> (<code>gps_enabled == 2</code>, so no prefs-layout change) powers the receiver
|
||
only around a sync, once a day (until 11/2026 every 30 minutes, the cadence
|
||
<code>gps on</code> re-syncs at). The LF crystal is ±20 ppm plus ~40 ppm at −10 °C, so a
|
||
day costs ~5 s of clock — far below what the mesh notices — and a reboot syncs
|
||
at once anyway. Verified on hardware in both paths (with the old 30 min / 1 h
|
||
timers):</p>
|
||
<ul>
|
||
<li>with sky (<code>mast-three</code>): <code>duty, asleep, fix, 7 sats</code> — got a fix, set the clock,
|
||
cut power to the receiver;</li>
|
||
<li>without (indoors, <code>bench-rpt</code>): <code>awake</code> for exactly 300 s
|
||
(<code>GPS_DUTY_MAX_AWAKE_SECS</code>), then <code>asleep</code> with an hourly retry, so a blocked
|
||
sky cannot turn duty mode back into "always on".</li>
|
||
</ul>
|
||
<p>Worst case (fix never obtained) still saves 42 mA; a normal 30 s fix saves 45.
|
||
Going from 30 min to 24 h saves another 0.25–0.75 mA (hot vs. warm start, not
|
||
measured per window), and the retry from 1 h to 6 h takes a node whose dome is
|
||
under snow from 3.8 mA (300 s at 46 mA hourly) to 0.64 mA.
|
||
Knobs: <code>GPS_DUTY_SYNC_INTERVAL_SECS</code> (86400), <code>GPS_DUTY_MAX_AWAKE_SECS</code> (300),
|
||
<code>GPS_DUTY_RETRY_SECS</code> (21600).</p>
|
||
<p>Upstream later (v1.18 dev, 11/2026) added its own <code>gps period <s></code>. It is not a
|
||
replacement: a periodic acquisition has no timeout until the first fix ever, so
|
||
the indoor case above would stay at 46 mA for good. <code>gps duty</code> sets the period
|
||
to 0, and <code>gps on</code> / <code>gps off</code> leave duty mode.</p>
|
||
<p><strong>One visible side effect:</strong> <code>querySensors()</code> only adds the GPS channel to
|
||
telemetry while the receiver is powered, so a duty-cycled node reports position
|
||
in telemetry only during its sync windows (well under 1 % of the time). What a repeater
|
||
<em>advertises</em> is unaffected — that comes from prefs via <code>set advert.loc prefs</code> (formerly <code>gps advert prefs</code>) — and
|
||
<code>node_lat/lon</code> keep the last fix. Confirmed in the field: <code>mast-three</code>'s scrape now
|
||
carries <code>voltage/temperature/humidity</code> and no <code>gps</code> field.</p>
|
||
<h2 id="ble-two-defaults-that-were-quietly-expensive">BLE: two defaults that were quietly expensive</h2>
|
||
<ul>
|
||
<li><strong>The blinking LED.</strong> Bluefruit drives <code>LED_BLUE</code> while advertising and holds
|
||
it on while connected. On SenseCap Solar that pin is <strong>12 — the same pin as
|
||
<code>P_LORA_TX_LED</code></strong>, so a sealed mast node spent solar charge blinking an LED
|
||
nobody can see, and the LoRa TX indicator lied as a bonus.
|
||
<code>RPT_BLE_CONN_LED</code> now defaults to 0.</li>
|
||
<li><strong>The advertising rate.</strong> Upstream leaves the slow interval at 244 units =
|
||
152.5 ms, i.e. three channels ~6.5 times a second, forever.
|
||
<code>RPT_BLE_ADV_SLOW</code> now defaults to 1600 = 1 s; the first
|
||
<code>RPT_BLE_ADV_FAST_SECS</code> (30) after boot or disconnect stay fast so discovery
|
||
is still immediate when someone is looking.</li>
|
||
</ul>
|
||
<p>Bench boards keep both upstream behaviours (<code>-D RPT_BLE_CONN_LED=1</code>,
|
||
<code>-D RPT_BLE_ADV_SLOW=244</code> in <code>xiao_analyzer</code>): on a desk the blinking LED is the
|
||
"this thing is alive" indicator.</p>
|
||
<p><code>ble off</code> remains the big BLE lever for a deployed node, but the deployment rule
|
||
stands: ship with BLE <strong>on</strong>, verify the node on site, and only then turn it off
|
||
over the mesh — otherwise a node that does not come up has no way in.</p>
|
||
<h2 id="rx-duty-cycle-rxps">RX duty cycle (rxps)</h2>
|
||
<p>Ported from EasySkyMesh PowerSaving v18 behind <code>-D WITH_RX_POWERSAVING</code> (the
|
||
public releases have it), SX1262 only, <strong>off until set</strong>. The radio listens in
|
||
short windows and sleeps between them, staying awake through a packet once it
|
||
hears a preamble; after three failed arms it falls back to continuous RX by
|
||
itself. Commands: <code>docs/cli_commands.md</code>, <code>radio.rxps</code>.</p>
|
||
<p>Measured 12. 11. 2026 on a XIAO nRF52840 + Wio-SX1262 (not the SenseCAP of
|
||
the rest of this page), bench preset 866.5 MHz / SF8 / BW62.5, fed at 5 V
|
||
through an INA226 (10 mOhm) read every 5 s; the only other load was a UC96 on
|
||
the XIAO's USB port. A/B/A/B, 15 min cells, the first 2 min of each dropped:</p>
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th>cell</th>
|
||
<th>rxps</th>
|
||
<th>mean</th>
|
||
<th>median</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>1</td>
|
||
<td>off</td>
|
||
<td>33.84 mA</td>
|
||
<td>32.2 mA</td>
|
||
</tr>
|
||
<tr>
|
||
<td>2</td>
|
||
<td>max</td>
|
||
<td>31.31 mA</td>
|
||
<td>30.5 mA</td>
|
||
</tr>
|
||
<tr>
|
||
<td>3</td>
|
||
<td>off</td>
|
||
<td>33.53 mA</td>
|
||
<td>32.5 mA</td>
|
||
</tr>
|
||
<tr>
|
||
<td>4</td>
|
||
<td>max</td>
|
||
<td>31.36 mA</td>
|
||
<td>30.3 mA</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
<p><code>max</code> (level 8) against the mean of its neighbours: <strong>-2.4 / -2.2 mA</strong>, pooled
|
||
-2.35 mA (medians -1.95 mA); off vs off differs by 0.3 mA, max vs max by
|
||
0.05 mA. That is the radio's share, so it carries over to other SX1262 boards
|
||
in absolute terms; the 33 mA base is this bench (meter, BLE advertising), not
|
||
a node. Behind the XIAO's linear regulator the battery sees the same current:
|
||
~7-8 mW at 3.3 V.</p>
|
||
<p>Reception: a 3-board zero-hop matrix (x1, x3, x4; rxps switched on x1 and x4,
|
||
x3 the reference with rxps off; 20 rounds per phase, each link witnessed by
|
||
another board), run twice -- on the development build, then repeated on the
|
||
public release <code>v1.18.0+tth.20261112</code> (<code>ver</code> v1.18.0-tthd4afea1):</p>
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th>phase</th>
|
||
<th>development build</th>
|
||
<th>public release</th>
|
||
<th>together</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>rxps off</td>
|
||
<td>0/120</td>
|
||
<td>1/120</td>
|
||
<td>1/240</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>on</code> (level 3)</td>
|
||
<td>1/120</td>
|
||
<td>2/120</td>
|
||
<td>3/240</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>max</code> (level 8)</td>
|
||
<td>0/120</td>
|
||
<td>0/120</td>
|
||
<td><strong>0/240</strong></td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
<p>rxps stayed armed throughout, no error counts. Single losses happen with rxps
|
||
off as well, and of the three at level 3 one was on x3, which had rxps off: the
|
||
bench shows no degradation at any level. Not measured: mixed SF/preamble senders, a busy
|
||
live mesh. On a mast, where 2 mA of ~24 is not the problem, leave it off.</p>
|
||
<p><strong>On the live mesh it failed (mast-three, 14. 11. 2026, <code>max</code>).</strong> Against ob1 as
|
||
the reference for the hour-to-hour traffic, the node received ~16 % fewer
|
||
packets (2.08 vs 2.47 per ob1 packet) with ~30 % more <code>recv_errors</code>, and within
|
||
two hours of switching it on it stopped transmitting altogether: <code>sent</code> frozen,
|
||
queue full (32), no <code>tx_start_fail</code>/<code>tx_timeout</code>, RX still counting -- so no
|
||
adverts and no replies to an admin login, for 6+ hours. <code>radiostat</code> showed
|
||
<code>irq=0x0014</code> (preamble + header valid, no RX done). <code>set radio.rxps off</code> did
|
||
NOT bring TX back; a reboot did. The mechanism is not proven, and the radio
|
||
silence watchdog cannot see it (it watches RX only). Do not enable rxps on a
|
||
node that has to answer.</p>
|
||
<h2 id="mcu-sleep">MCU sleep</h2>
|
||
<p><code>powersaving on</code> makes the nRF52 wait in WFE between events (it wakes on any
|
||
interrupt, including LoRa DIO1). Upstream ships it <strong>off</strong>, and it was missing
|
||
from our provisioning, so every node built from that file ran the core at 64 MHz
|
||
around the clock. It is now in our provisioning file.</p>
|
||
<p><strong>But it buys about 1 mA, not the 3-4 that seemed obvious.</strong> Measured with GPS
|
||
held off so its sync windows could not pollute the cells: paired estimate
|
||
-0.96 mA over three pairs, spread -1.97 to +0.07, against a measured
|
||
cell-to-cell repeatability of 1.16 mA — i.e. the effect is the same size as this
|
||
rig's noise and cannot be told from zero. That fits the mechanism: the loop
|
||
still polls the SX1262 over SPI on every pass and the SoftDevice wakes the core
|
||
for each advertising event, so there is not much idle left to sleep through.
|
||
Keep it on (it is free and cannot hurt), but do not budget for it.</p>
|
||
<p>Blocking the loop task instead of waiting for an event (so that FreeRTOS can
|
||
sleep tickless) changes nothing either: <code>delay(10)</code> against <code>sd_app_evt_wait()</code>,
|
||
XIAO x4, A/B/A/B 30 min cells (14. 11. 2026): paired difference <strong>0.04 mA</strong>,
|
||
cell repeatability 0.1-0.4 mA. The tick wakeups are not where the current goes.</p>
|
||
<p>One fork-specific fix goes with it: the sleep is also held off while the BLE
|
||
console still has queued output (<code>bleTxPending()</code>), because on the observer node
|
||
a half-drained <code>rxlog</code>/<code>pktlog</code> page would otherwise wait for the next
|
||
connection event — the bridge drains those on a 2-minute duty cycle, so a slower
|
||
drain directly costs collected frames.</p>
|
||
<h3 id="cpu-time-per-received-packet-pwr_duty_instrument">CPU time per received packet (<code>PWR_DUTY_INSTRUMENT</code>)</h3>
|
||
<p>A bench build with <code>-D PWR_DUTY_INSTRUMENT</code> (nRF52 only, nothing changes
|
||
without the flag) prints one line to the USB console every ~10 s:</p>
|
||
<div class="highlight"><pre><span></span><code>PWRDUTY awake_ms=… asleep_ms=… wakes=… duty_permille=… pkt_us=… pkt_n=…
|
||
</code></pre></div>
|
||
<ul>
|
||
<li><code>awake_ms</code>, <code>asleep_ms</code> and <code>duty_permille</code> are the time between a return
|
||
from <code>NRF52Board::sleep()</code> and the next entry into it, against the WFE span
|
||
inside it. This needs <code>powersaving on</code>: without it <code>sleep()</code> is never called.</li>
|
||
<li><code>wakes</code> counts the passes through <code>sleep()</code>. BLE and USB events wake the
|
||
core too, so the duty is not packet cost alone.</li>
|
||
<li><code>pkt_us</code> and <code>pkt_n</code> are the CPU time spent in
|
||
<code>Dispatcher::processRecvPacket()</code> (dedup, crypto, routing) and the number of
|
||
packets. They do not depend on background wakes. This is the work a filter
|
||
on the radio side could skip for a packet that is dropped anyway.</li>
|
||
</ul>
|
||
<p>All counters are cumulative since boot, so take the difference between two
|
||
lines.</p>
|
||
<p>Measured on the XIAO x4, 24. 11. 2026, live mesh, about 440 packets/h (all
|
||
flood adverts): about <strong>6.8 ms CPU per received packet</strong>, mostly the Ed25519
|
||
check of the advert signature. The duty went from 0.05 % at rest to 0.13 %.
|
||
The awake time is a small part of a node's current; the radio's RX and the
|
||
SoftDevice dominate.</p>
|
||
<h2 id="a-mast-that-runs-flat-bootlock-and-cutoff">A mast that runs flat: bootlock and cutoff</h2>
|
||
<p>A panel that gets no direct sun in winter (remote-mast faces east, 11/2026:
|
||
-50 mV a day from mid-November with consumption unchanged) eventually drains
|
||
the cell. Without protection the node runs until the brown-out, and every bit
|
||
of light then restarts it on a cell that cannot hold it -- a boot loop at the
|
||
edge, with the cell deep-discharged on the way.</p>
|
||
<p><code>SenseCap_Solar_repeater</code> builds with <code>NRF52_POWER_MANAGEMENT</code> (upstream code,
|
||
wired in <code>variants/sensecap_solar</code>) and <code>PWRMGT_RUNTIME</code> (ours), which gives
|
||
two thresholds, both saved on the node and settable from the console or as an
|
||
admin over the mesh:</p>
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th>command</th>
|
||
<th>default</th>
|
||
<th>what</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td><code>set pwr.bootlock <mV></code></td>
|
||
<td>3300 mV (<code>variant.h</code>)</td>
|
||
<td>3000..4200 or <code>off</code>; at boot, below it the node goes to SYSTEMOFF and the LPCOMP wakes it when the battery recovers</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>set pwr.cutoff <mV></code></td>
|
||
<td>off</td>
|
||
<td>3000..4200 or <code>off</code>; while running, three readings in a row (one a minute) below it switch the node off into the same SYSTEMOFF</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>get pwr</code></td>
|
||
<td></td>
|
||
<td>both, the battery now and at boot, USB, the reason of the last switch-off</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
<p>The cutoff must stay below the bootlock -- a node switched off at the cutoff
|
||
starts again only past the bootlock, which is the hysteresis (e.g. cutoff
|
||
3400, bootlock 3600). The node refuses a threshold above the battery voltage
|
||
at that moment (it would lock itself out of a mast), USB power disarms the
|
||
cutoff and skips the boot check, a reading under 1 V counts as an ADC glitch.
|
||
The values live in <code>/pwr_guard</code>, not in the prefs; without the file the build
|
||
defaults apply (<code>PWRMGT_BOOTLOCK_DEFAULT</code>, <code>PWRMGT_CUTOFF_DEFAULT</code>).</p>
|
||
<p>The wake level is not one of the thresholds: it is the LPCOMP comparing the
|
||
battery divider with 3/8 VDD, ~3.4-3.7 V on the cell per <code>variant.h</code>, fixed in
|
||
hardware steps. A bootlock above it means the node wakes, checks, and sleeps
|
||
again until the cell is past the bootlock -- harmless, each wake is a few ms.
|
||
The clock goes back to the build epoch after such a restart, as after any
|
||
power loss (<code>gps duty</code> resyncs it, <code>time</code> sets it).</p>
|
||
<p>Why upstream has it off: a fixed 3.3 V lock kept LiFePO4 and LTO nodes from
|
||
booting (#2377, v1.18.0); a chemistry-aware version is open as #2088 (FS read
|
||
before the check, per-chemistry thresholds). Ours is narrower -- one board
|
||
with a known Li-ion cell, two numbers, <code>off</code> for either -- and has to be
|
||
reconciled with #2088 if that lands.</p>
|
||
<p><strong>Not yet verified on hardware</strong>: the logic has host tests
|
||
(<code>test/test_low_voltage_guard</code>), the thresholds and the wake level do not.
|
||
Bench test with an adjustable supply on the battery terminals: boot at 3.2 V
|
||
must stay dark; raising it to ~3.8 V must wake the node by itself (<code>get boot</code>
|
||
then shows <code>RESETREAS=0x00020000</code>, bit 17, wake from LPCOMP); with a cutoff
|
||
set, lowering the supply below it must switch the node off within ~3 minutes
|
||
and <code>get pwr</code> after the wake must say <code>last off: Low Voltage</code>.</p>
|
||
<h2 id="nrf52-sleep-peripheral-fixes">nRF52 sleep & peripheral fixes</h2>
|
||
<p>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
|
||
measured on 25./26. 11. 2026 on XIAO x4 (nRF52840 + Wio-SX1262, repeater build,
|
||
bench preset). Setup: no USB host, fed at 5 V through an INA226 read every
|
||
~1 s. Each cell was 10 min (20 min for rxps), 38 cells over two rounds. Every
|
||
knob was switched at runtime between two baseline cells. The baseline
|
||
repeatability was <strong>0.05 mA</strong>, so an effect counts only above 0.1 mA and with
|
||
the same sign in both rounds. The 5 V pin is VBUS, so USBD and HFXO stay up;
|
||
read the absolute numbers as this rig and the deltas as the result.</p>
|
||
<p><strong>The one that matters: <code>CRYPTOCELL_IRQn</code> sleep insomnia (+2.6 mA).</strong>
|
||
<code>USE_CC310_HW_CRYPTO=1</code> runs CC310 in polling mode with <code>CRYPTOCELL_IRQn</code>
|
||
disabled in NVIC. A completed operation leaves the IRQ pending, and a pending
|
||
IRQ ends <code>sd_app_evt_wait()</code>/<code>__WFE()</code> immediately. <code>NRF52Board::sleep()</code> now
|
||
clears it before sleeping, as the Adafruit core's <code>wiring.c</code> does. Without the
|
||
clear, a node comes out of every boot stuck at <strong>14.1 mA instead of 11.5</strong>:</p>
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th>boot with</th>
|
||
<th>before first BLE connection</th>
|
||
<th>after it</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>both fixes</td>
|
||
<td>11.51 / 11.51 mA</td>
|
||
<td>11.48 / 11.49 mA</td>
|
||
</tr>
|
||
<tr>
|
||
<td>no CC clear</td>
|
||
<td><strong>14.13 / 14.15 mA</strong></td>
|
||
<td>11.38 / 11.52 mA</td>
|
||
</tr>
|
||
<tr>
|
||
<td>no CC clear, no late DC/DC (= old main)</td>
|
||
<td><strong>14.04 / 14.14 mA</strong></td>
|
||
<td>11.50 / 11.55 mA</td>
|
||
</tr>
|
||
<tr>
|
||
<td>no late DC/DC</td>
|
||
<td>11.43 / 11.53 mA</td>
|
||
<td>11.51 / 11.53 mA</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
<p>Values are round 1 / round 2. In the stuck state the core wakes
|
||
~15 000 times a second, against ~990 for the 1024 Hz tick, and it is awake
|
||
for 80 % of the time. It is not an occasional spike either: 98–100 % of the
|
||
samples sit above 13 mA. Received LoRa packets do not end it (5 per window). The
|
||
first BLE connection does; the mechanism is not traced. A mast node that nobody
|
||
connects to over BLE stays in it. Toggling the clear at runtime
|
||
on an already clean node changes nothing (+0.01 / +0.02 mA), because the state
|
||
is decided at boot.</p>
|
||
<p><strong>The same run again at 3.3 V without VBUS (27. 11. 2026).</strong> Here x4 is fed on
|
||
its 3V3 pin at 3.25 V, so <code>bench duty</code> reads <code>vbus 0 usbd 0</code> and HFXO is
|
||
off. This is the closer match to a node on a cell. The setup was the same:
|
||
38 cells, two rounds, all of them valid. Baseline repeatability (detrended SD of
|
||
the base cells) was <strong>0.009 / 0.015 mA</strong>, so the threshold here is 0.03 mA.
|
||
The baseline is <strong>6.90 mA</strong> (22 mW, against 57 mW on the 5 V pin).</p>
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th>boot with</th>
|
||
<th>before first BLE connection</th>
|
||
<th>after it</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>both fixes</td>
|
||
<td>6.91 / 6.92 mA</td>
|
||
<td>6.89 / 6.88 mA</td>
|
||
</tr>
|
||
<tr>
|
||
<td>no CC clear</td>
|
||
<td><strong>10.16 / 10.16 mA</strong></td>
|
||
<td>6.91 / 6.89 mA</td>
|
||
</tr>
|
||
<tr>
|
||
<td>no CC clear, no late DC/DC (= old main)</td>
|
||
<td><strong>10.18 / 10.18 mA</strong></td>
|
||
<td>6.89 / 6.94 mA</td>
|
||
</tr>
|
||
<tr>
|
||
<td>no late DC/DC</td>
|
||
<td>6.90 / 6.91 mA</td>
|
||
<td>6.93 / 6.92 mA</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
<p>The CC310 insomnia costs <strong>+3.3 mA, almost half of the whole node</strong>. Every
|
||
sample of those windows sits above 8.5 mA. The core wakes 14 900 times a
|
||
second, against 986, it is awake 79 % of the time, and <code>cc_pend</code> reads 1.</p>
|
||
<p>At this voltage <strong>DC/DC is worth 0.6 mA</strong>. <code>bench dcdc off</code> at runtime gives
|
||
+0.63 / +0.60 mA, and <code>A_like</code> (DC/DC off, CC clear off, nfcal 2 s) gives
|
||
+0.59 / +0.61 mA, the same thing. On the 5 V pin the same switch was below
|
||
resolution. The late re-enable still changes nothing, because <code>DCDCEN</code> reads 1
|
||
after every boot with or without it. So the regulator mode matters, and
|
||
SoftDevice simply does not turn it off.</p>
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th>knob (3.3 V)</th>
|
||
<th>round 1</th>
|
||
<th>round 2</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td><code>bench dcdc off</code></td>
|
||
<td>+0.63 mA</td>
|
||
<td>+0.60 mA</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>bench cc off</code> (runtime)</td>
|
||
<td>+0.00 mA</td>
|
||
<td>−0.01 mA</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>bench nfcal 2000</code></td>
|
||
<td>−0.04 mA (one pair)</td>
|
||
<td></td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>set radio.rxps max</code></td>
|
||
<td>−2.30 mA</td>
|
||
<td>−2.30 mA</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>set radio.rxps balanced</code></td>
|
||
<td>−1.98 mA</td>
|
||
<td>−1.82 mA</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>set radio.rxgain off</code></td>
|
||
<td>−0.45 mA</td>
|
||
<td>−0.51 mA</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>powersaving off</code></td>
|
||
<td>+2.37 mA (one pair)</td>
|
||
<td></td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
<p>The rxps, rxgain and powersaving deltas match the 5 V run to within 0.3 mA.
|
||
In relative terms, rxps max now takes a third off the node. Reception from the
|
||
x1 witness matched what it sent in every cell (base 82 received for 72 sent;
|
||
x4 also hears other bench traffic). The witness again only detects a gross
|
||
loss, not a sensitivity loss.</p>
|
||
<p><strong>Measured to make no difference, kept anyway</strong> (each below 0.1 mA):
|
||
- <strong>DC/DC re-enabled after SoftDevice start</strong> (<code>onBootComplete()</code>):
|
||
+0.02 / −0.10 mA at runtime on the 5 V pin, and no difference as a boot flag
|
||
at either voltage. The premise that S140 puts <code>NRF_POWER</code> back to LDO did not
|
||
hold on this board. <code>DCDCEN</code> read 1 after every boot, with or without the
|
||
late enable. The late enable is kept as a harmless safeguard. DC/DC itself
|
||
does matter at 3.3 V (see above).
|
||
- <strong>Noise-floor calibration every 10 s instead of 2 s</strong>
|
||
(<code>NOISE_FLOOR_CALIB_INTERVAL</code>): +0.08 mA at 5 V and −0.04 mA at 3.3 V, one
|
||
pair each. That is at the edge of resolution and of no practical weight.</p>
|
||
<p><strong>Not measured</strong> (compile-time or other hardware):
|
||
- <strong>Avoid <code>NRF_SPIM3</code> (Nordic Errata 195)</strong>: <code>[nrf52_base]</code> sets
|
||
<code>-D SPI_32MHZ_INTERFACE=1</code>, which moves the SX1262 <code>SPI</code> bus from <code>NRF_SPIM3</code>
|
||
to <code>NRF_SPIM2</code>. <code>SPIClass::endTransaction()</code> disables <code>SPIM3</code> without the
|
||
errata workaround, which is worth ~1.2–2 mA idle per the errata. A clean
|
||
baseline of 11.5 mA on this board leaves little room for that.
|
||
- <strong>GPS UART pins disconnected while the GPS is off</strong>:
|
||
<code>NmeaGpsDriver::stopHardware()</code> resets TX/RX via <code>nrf_gpio_cfg_default()</code>
|
||
after <code>Uart::end()</code>, so the unpowered receiver is not back-powered.
|
||
- <strong>Unused I2C bus switched off</strong>: <code>EnvironmentSensorManager::begin()</code> calls
|
||
<code>Wire.end()</code> when the bus scan finds no device, and enables it again for the
|
||
<code>i2c</code> CLI command.
|
||
- <strong>SenseCAP Solar battery divider (<code>VBAT_ENABLE</code>)</strong>: held <code>HIGH</code> (off) at boot
|
||
and set back to <code>HIGH</code> right after <code>getBattMilliVolts()</code>, instead of staying
|
||
<code>LOW</code>. <code>initiateShutdown()</code> still drives it <code>LOW</code> when it arms the LPCOMP
|
||
wake. It saves ~2.8 µA (4.2 V over 1.5 MOhm). With the old 10 ms settle the
|
||
reading came out 110-150 mV high (mast-three and second-mast after the OTA of
|
||
26.-27. 11. 2026, both at night, remote-mast without the change flat): the ADC
|
||
node starts high with the divider off. The settle is 100 ms now; still to be
|
||
checked against a meter, and whether the ADC pin sits near VDD + 0.3 V on a
|
||
full cell.</p>
|
||
<p><strong>Runtime knobs from the same night</strong>, for comparison (paired deltas):</p>
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th>knob</th>
|
||
<th>round 1</th>
|
||
<th>round 2</th>
|
||
<th>reception (x1 witness)</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td><code>set radio.rxps max</code></td>
|
||
<td>−2.47 mA</td>
|
||
<td>−2.33 mA</td>
|
||
<td>20/21</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>set radio.rxps balanced</code></td>
|
||
<td>−1.98 mA</td>
|
||
<td>−1.88 mA</td>
|
||
<td>20/21</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>set radio.rxgain off</code></td>
|
||
<td>−0.49 mA</td>
|
||
<td>−0.45 mA</td>
|
||
<td>10/12</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>powersaving off</code></td>
|
||
<td>+2.66 mA</td>
|
||
<td>(one pair)</td>
|
||
<td>5/6</td>
|
||
</tr>
|
||
<tr>
|
||
<td>baseline</td>
|
||
<td></td>
|
||
<td></td>
|
||
<td>83/90</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
<p>The x1 witness sends zero-hop adverts every ~130 s at 2 dBm. Reception counts
|
||
are approximate at cell edges, and no knob showed a gross loss. The bench
|
||
signal is strong, so this does not test sensitivity, and the rxps failure on
|
||
the live mesh (see above) still stands. <code>powersaving</code> is worth 2.7 mA here
|
||
without USB, much more than the ~1 mA measured with USB attached (USB keeps
|
||
HFCLK running).</p>
|
||
<p>Tools: <code>tools/power_ab.py --ina <url></code> (INA226 of a solar controller as the
|
||
meter, raw samples saved), firmware bench knobs and the night driver are kept with
|
||
the run log, outside the repository.</p>
|
||
<h2 id="measuring-this-yourself-two-traps">Measuring this yourself — two traps</h2>
|
||
<ol>
|
||
<li><strong>A solar node measured on its USB side measures the CHARGER.</strong> With a
|
||
charging cell the meter reads 500-700 mA, pulsing, and the node's own tens of
|
||
mA ride on top of a drifting number. Wait for the charge to finish (it fell
|
||
0.71 → 0.53 → 0.22 → 0.05 A over about an hour here) or the numbers are
|
||
fiction. There is <strong>no INA226 on this board</strong> to cross-check with — the <code>i2c</code>
|
||
command reports nothing at all on the only bus the variant has — on three
|
||
separate P1-Pro units (<code>bench-rpt</code>, <code>mast-rpt-two</code>, <code>tth-mast-repeater-one</code>),
|
||
against a sensor table that expects <code>38 76 70 44 5C 42 40 41 5A 29 77</code>. So it
|
||
is the board, not one dead part, and the cross-check for a power measurement
|
||
has to be a second <em>board</em>.</li>
|
||
<li><strong>With <code>gps duty</code> enabled you cannot measure anything under ~5 mA.</strong> A sync
|
||
window lands in a random cell and adds ~17 mA to a 10-minute average (seen:
|
||
40.9 mA against 24.1-24.5 in its neighbours). Put <code>gps off</code> in every cell of
|
||
such a run and restore <code>gps duty</code> afterwards.</li>
|
||
</ol>
|
||
<p>See <code>tools/power_ab.py --help</code> for the alternating-cell design that makes
|
||
these deltas trustworthy in the first place.</p>
|
||
</section>
|
||
|
||
</main>
|
||
</div>
|
||
<hr><footer>
|
||
<div class="terminal-mkdocs-footer-grid">
|
||
<div id="terminal-mkdocs-footer-copyright-info">
|
||
|
||
<p class="text-center text-muted">Source: <a href="https://git.rfa.cz/tth-pub/meshcore-tth">git.rfa.cz/tth-pub/meshcore-tth</a> ·</p>
|
||
Site built with <a href="http://www.mkdocs.org">MkDocs</a> and <a href="https://github.com/ntno/mkdocs-terminal">Terminal for MkDocs</a>.
|
||
</div>
|
||
</div>
|
||
</footer>
|
||
</div>
|
||
|
||
|
||
<div class="modal" id="mkdocs_search_modal" tabindex="-1" role="alertdialog" aria-modal="true" aria-labelledby="searchModalLabel">
|
||
<div class="modal-dialog modal-lg" role="search">
|
||
<div class="modal-content">
|
||
<div class="modal-header">
|
||
<h5 class="modal-title" id="searchModalLabel">Search</h5>
|
||
<button type="button" class="close btn btn-default btn-ghost" data-dismiss="modal" aria-label="Close">x</button>
|
||
</div>
|
||
<div class="modal-body">
|
||
<p id="searchInputLabel">Type to start searching</p>
|
||
<form>
|
||
<div class="form-group">
|
||
<input type="search" class="form-control" aria-labelledby="searchInputLabel" placeholder="" id="mkdocs-search-query" title="Please enter search terms here">
|
||
</div>
|
||
</form>
|
||
<div id="mkdocs-search-results" data-no-results-text="No document matches found"></div>
|
||
</div>
|
||
<div class="modal-footer">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
</body>
|
||
|
||
</html> |