docs site preview: commands written one way (ef16d8b1)

This commit is contained in:
tth committed 2026-12-02 00:51:17 +01:00
1 parent 20828922f2
commit 31492ac499
7 files changed
+264 -128

No files matched your search

+192 -67
View File
@@ -545,6 +545,9 @@ a rolling release on MeshCore <code>dev</code> (see the <a href="../">README</a>
<a href="../cli_commands/">cli_commands.md</a>. Where a command is described there too
(the watchdogs, <code>rxps</code>, <code>batt.icon</code>, <code>gps duty</code>, <code>dfu</code>, <code>get boot</code>), this page
gives the short form and points to it.</p>
<p><strong>How commands are written</strong> (as in cli_commands.md): <code>&lt;value&gt;</code> is required,
<code>[value]</code> optional, <code>&lt;on|off&gt;</code> one of the listed words. One command per line;
ranges, units and defaults are in the description.</p>
<p><strong>Where a command exists</strong> depends on the role and on build flags:</p>
<table>
<thead>
@@ -582,13 +585,12 @@ affected. Everything is persisted in prefs, so a reboot keeps it.</p>
<p>Token buckets on forwarded floods, keyed on the 1-byte ids already in the
clear: channel hash, sender hash, advert origin. Buckets collide (the hash is
masked), and every key is chosen by the sender: it contains runaway floods,
it is not security. Direct-routed traffic is never limited.
<strong>On after flashing</strong> (<code>FAIRNESS_ENABLED_DEFAULT</code>).</p>
it is not security. Direct-routed traffic is never limited.</p>
<table>
<thead>
<tr>
<th>command</th>
<th></th>
<th>what</th>
</tr>
</thead>
<tbody>
@@ -597,16 +599,16 @@ it is not security. Direct-routed traffic is never limited.
<td>state, denials per category, caps and refill intervals</td>
</tr>
<tr>
<td><code>fairness on\|off</code></td>
<td>the buckets on/off</td>
<td><code>fairness &lt;on|off&gt;</code></td>
<td>the buckets on or off. Default: on (<code>FAIRNESS_ENABLED_DEFAULT</code>)</td>
</tr>
<tr>
<td><code>fairness cap &lt;group&gt; &lt;sender&gt; &lt;advert&gt;</code></td>
<td>burst caps 0..255, <code>0</code> = build default (100 / 150 / 30)</td>
<td>burst caps, 0..255 each; <code>0</code> = build default (100 / 150 / 30)</td>
</tr>
<tr>
<td><code>fairness refill &lt;group_s&gt; &lt;sender_s&gt; &lt;advert_s&gt;</code></td>
<td>one token per interval, seconds, <code>0</code> = default (30 / 10 / 600)</td>
<td><code>fairness refill &lt;group&gt; &lt;sender&gt; &lt;advert&gt;</code></td>
<td>one token per interval, seconds, 0..65535 each; <code>0</code> = build default (30 / 10 / 600)</td>
</tr>
<tr>
<td><code>fairness grid</code></td>
@@ -617,12 +619,20 @@ it is not security. Direct-routed traffic is never limited.
<td>estimated airtime shed per reason</td>
</tr>
<tr>
<td><code>fairness advert [&lt;hours&gt;\|clear]</code></td>
<td>per-origin advert window: one flood advert per origin per <code>&lt;hours&gt;</code> (0..720, <code>0</code> = off, default off); <code>clear</code> forgets the origins seen</td>
<td><code>fairness advert</code></td>
<td>the per-origin advert window: hours, held adverts, cache</td>
</tr>
<tr>
<td><code>fairness dryrun [on\|off]</code></td>
<td>count every verdict but forward anyway (default off)</td>
<td><code>fairness advert &lt;hours&gt;</code></td>
<td>one flood advert per origin per <code>hours</code>, 0..720; <code>0</code> = off. Default: off</td>
</tr>
<tr>
<td><code>fairness advert clear</code></td>
<td>forget the origins seen</td>
</tr>
<tr>
<td><code>fairness dryrun [on|off]</code></td>
<td>count every verdict but forward anyway; without an argument shows the state. Default: off</td>
</tr>
</tbody>
</table>
@@ -638,21 +648,25 @@ message: anyone can rename around it.</p>
<thead>
<tr>
<th>command</th>
<th></th>
<th>what</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>filter</code> / <code>filter list</code></td>
<td><code>filter [list]</code></td>
<td>channels known, drops, the deny list</td>
</tr>
<tr>
<td><code>filter add &lt;name&gt;</code> / <code>filter del &lt;name&gt;</code></td>
<td>exact, case-insensitive; spaces allowed, commas not</td>
<td><code>filter add &lt;name&gt;</code></td>
<td>deny a sender name: exact, case-insensitive; spaces allowed, commas not</td>
</tr>
<tr>
<td><code>filter del &lt;name&gt;</code></td>
<td>remove a name from the deny list</td>
</tr>
<tr>
<td><code>filter clear</code></td>
<td>empty the list</td>
<td>empty the deny list</td>
</tr>
</tbody>
</table>
@@ -665,35 +679,70 @@ lives on it before adding one.</p>
<thead>
<tr>
<th>command</th>
<th></th>
<th>what</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>filter hash</code></td>
<td><code>filter hash [list]</code></td>
<td>drops, passes by a throttle, the list (<code>43</code> blocked, <code>43/60</code> throttled)</td>
</tr>
<tr>
<td><code>filter hash add &lt;hex&gt; [secs]</code></td>
<td>block the byte, or let one packet through per <code>secs</code> (1..65535); re-adding changes the interval</td>
<td>block the byte, or with <code>secs</code> (1..65535) let one packet through per <code>secs</code>; re-adding changes the interval</td>
</tr>
<tr>
<td><code>filter hash del &lt;hex&gt;</code> / <code>filter hash clear</code></td>
<td></td>
<td><code>filter hash del &lt;hex&gt;</code></td>
<td>remove one byte</td>
</tr>
<tr>
<td><code>filter hash clear</code></td>
<td>empty the list</td>
</tr>
</tbody>
</table>
<p>A throttle's window lives in RAM: the first match after a boot passes.</p>
<h3 id="message-age-filter-age-repeater-with-channel-keys">Message age -- <code>filter age</code> (repeater with channel keys)</h3>
<p><code>filter age &lt;min&gt;|off</code> (1..10080, default off): do not forward a group text
on a decrypted channel whose sender timestamp is older than <code>&lt;min&gt;</code> by this
node's clock. It judges the sender's clock, so a companion that never got a
time sync (it stamps 2024) is dropped too -- keep it in days. Inactive while
the node's own clock reads before 2026; a clock running ahead makes
everything look old.</p>
<h3 id="filter-dryrun-onoff"><code>filter dryrun [on|off]</code></h3>
<p>Count every <code>filter</code> verdict (sender, hash, age) but forward anyway -- try a
rule on a live node before it bites. Default off.</p>
<table>
<thead>
<tr>
<th>command</th>
<th>what</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>filter age</code></td>
<td>the limit and how many were dropped</td>
</tr>
<tr>
<td><code>filter age &lt;minutes&gt;</code></td>
<td>do not forward a group text on a decrypted channel whose sender timestamp is older than <code>minutes</code> (1..10080) by this node's clock</td>
</tr>
<tr>
<td><code>filter age off</code></td>
<td>no age limit. Default: off</td>
</tr>
</tbody>
</table>
<p>It judges the sender's clock, so a companion that never got a time sync (it
stamps 2024) is dropped too -- keep it in days. Inactive while the node's own
clock reads before 2026; a clock running ahead makes everything look old.</p>
<h3 id="dry-run-filter-dryrun">Dry run -- <code>filter dryrun</code></h3>
<table>
<thead>
<tr>
<th>command</th>
<th>what</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>filter dryrun [on|off]</code></td>
<td>count every <code>filter</code> verdict (sender, hash, age) but forward anyway -- try a rule on a live node before it bites; without an argument shows the state. Default: off</td>
</tr>
</tbody>
</table>
<h2 id="radio-watchdogs-and-board-upkeep-all">Radio watchdogs and board upkeep (all)</h2>
<p>Details: <a href="../cli_commands/">cli_commands.md</a>, "Radio silence watchdog", "TX
stall watchdog", "Reboot into the bootloader" and "Why the board last reset".</p>
@@ -701,17 +750,25 @@ stall watchdog", "Reboot into the bootloader" and "Why the board last reset".</p
<thead>
<tr>
<th>command</th>
<th></th>
<th>what</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>set radio.silence &lt;min&gt;\|off</code> / <code>get radio.silence</code></td>
<td>deaf receiver: re-arm RX, then reboot after <code>&lt;min&gt;</code> without a received frame (CRC errors count as heard); each such reboot doubles the threshold for the next boot (up to 16x), the first frame clears it. 1..1440, persisted, <strong>default off</strong></td>
<td><code>get radio.silence</code></td>
<td>threshold, current multiplier, quiet time, stage</td>
</tr>
<tr>
<td><code>set radio.txstall &lt;min&gt;\|off</code> / <code>get radio.txstall</code></td>
<td>repeater only: packets queued and nothing sent for <code>&lt;min&gt;</code> -&gt; re-arm, then reboot. An empty queue never counts. <strong>On, 15 min</strong> (<code>RADIO_TXSTALL_MIN</code>); a change holds until reboot</td>
<td><code>set radio.silence &lt;minutes&gt;</code></td>
<td>deaf receiver: re-arm RX, then reboot after <code>minutes</code> (1..1440) without a received frame (CRC errors count as heard); each such reboot doubles the threshold for the next boot (up to 16x), the first frame clears it. <code>0</code> or <code>off</code> = off. Saved. Default: off</td>
</tr>
<tr>
<td><code>get radio.txstall</code></td>
<td>threshold, queue, time without TX, stage</td>
</tr>
<tr>
<td><code>set radio.txstall &lt;minutes&gt;</code></td>
<td>repeater only: packets queued and nothing sent for <code>minutes</code> (1..1440) -&gt; re-arm, then reboot. An empty queue never counts. <code>0</code> or <code>off</code> = off. Not saved: a reboot returns to the build value. Default: 15 (<code>RADIO_TXSTALL_MIN</code>)</td>
</tr>
<tr>
<td><code>get radio.reboots</code></td>
@@ -722,11 +779,11 @@ stall watchdog", "Reboot into the bootloader" and "Why the board last reset".</p
<td>reset reason and the hardfault record (also printed at boot)</td>
</tr>
<tr>
<td><code>dfu [uf2\|serial\|ota]</code></td>
<td><em>local only</em>: reboot into the bootloader -- UF2 drive (default), CDC port for <code>adafruit-nrfutil</code>, or BLE DFU</td>
<td><code>dfu [uf2|serial|ota]</code></td>
<td><em>local only</em>, nRF52: reboot into the bootloader -- UF2 drive (default), CDC port for <code>adafruit-nrfutil</code>, or BLE DFU</td>
</tr>
<tr>
<td><code>fw ...</code></td>
<td><code>fw &lt;subcommand&gt;</code></td>
<td><code>-ota</code> images only: admin-pushed firmware update, see <a href="../ota/">ota.md</a></td>
</tr>
</tbody>
@@ -750,19 +807,29 @@ tz.offset</code>. No exponent (<code>1e3</code>), no <code>nan</code>/<code>inf<
<tr>
<th>command</th>
<th>where</th>
<th></th>
<th>what</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>blink [n]</code> / <code>blink on\|off</code></td>
<td><code>blink [count]</code></td>
<td>repeater</td>
<td>flash a spare LED (not the BLE or TX one) <code>n</code> times (default 6, max 999), or until <code>blink off</code> (gives up after 10 min); finds a board on a bench or a node on a mast</td>
<td>flash a spare LED (not the BLE or TX one) <code>count</code> times (1..999, default 6); finds a board on a bench or a node on a mast</td>
</tr>
<tr>
<td><code>txpwr [dBm]</code></td>
<td><code>blink &lt;on|off&gt;</code></td>
<td>repeater</td>
<td>LoRa output power until reboot, with RadioLib's status; takes -9..30</td>
<td>blink until <code>blink off</code> (gives up after 10 min)</td>
</tr>
<tr>
<td><code>txpwr</code></td>
<td>repeater</td>
<td>the last requested LoRa output power and RadioLib's status</td>
</tr>
<tr>
<td><code>txpwr &lt;dBm&gt;</code></td>
<td>repeater</td>
<td>LoRa output power until reboot, -9..30 (SX1262 takes -9..22), with RadioLib's status</td>
</tr>
<tr>
<td><code>i2c</code></td>
@@ -785,7 +852,7 @@ tz.offset</code>. No exponent (<code>1e3</code>), no <code>nan</code>/<code>inf<
<td>receiver state, interrupt and RX counters, without touching the radio</td>
</tr>
<tr>
<td><code>radiokick rx\|clrirq\|standby\|agc</code></td>
<td><code>radiokick &lt;rx|clrirq|standby|agc&gt;</code></td>
<td>own build: <code>RADIO_DIAG</code></td>
<td>one recovery step, gentlest first: re-arm RX, clear latched IRQs, standby + RX, AGC reset; the first that brings <code>recv</code> back names the broken layer</td>
</tr>
@@ -801,25 +868,37 @@ the BLE PIN is the only lock, and the release PIN is the public placeholder
<thead>
<tr>
<th>command</th>
<th></th>
<th>what</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>ble</code></td>
<td>on/off, PIN <code>own</code> or <code>build default</code> -- never the PIN itself</td>
<td>on or off, PIN <code>own</code> or <code>build default</code>, connected or not -- never the PIN itself</td>
</tr>
<tr>
<td><code>ble pin &lt;6 digits&gt;</code></td>
<td>set your own PIN (saved, survives a reflash; drops every bond, so paired devices pair again)</td>
<td><code>ble &lt;on|off&gt;</code></td>
<td>the BLE console on or off, saved. Default: off (<code>RPT_BLE_DEFAULT_OFF</code>); <code>ble on</code> is refused while the PIN is the placeholder</td>
</tr>
<tr>
<td><code>ble on\|off</code></td>
<td>persisted; <strong>off after flashing</strong> (<code>RPT_BLE_DEFAULT_OFF</code>), and <code>ble on</code> is refused while the PIN is the placeholder</td>
<td><code>ble pin</code></td>
<td>whether the PIN is your own or the build default</td>
</tr>
<tr>
<td><code>blepwr [dBm\|default]</code></td>
<td>TX power of the connection (-40, -20, -16, -12, -8, -4, 0, 2..8), applied to live connections and saved; <code>default</code> returns to the build value (0 dBm)</td>
<td><code>ble pin &lt;pin&gt;</code></td>
<td>set your own PIN, 6 digits (saved, survives a reflash; drops every bond, so paired devices pair again)</td>
</tr>
<tr>
<td><code>blepwr</code></td>
<td>TX power of the connection and of advertising</td>
</tr>
<tr>
<td><code>blepwr &lt;dBm&gt;</code></td>
<td>TX power of the connection: -40, -20, -16, -12, -8, -4, 0, 2..8; applied to live connections and saved</td>
</tr>
<tr>
<td><code>blepwr default</code></td>
<td>back to the build value (0 dBm)</td>
</tr>
<tr>
<td><code>bleconn</code></td>
@@ -834,13 +913,13 @@ found, look for who is connected (<code>ble</code> shows it).</p>
<thead>
<tr>
<th>command</th>
<th></th>
<th>what</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>nodes [offset]</code></td>
<td>heard repeaters and room servers with a key to join several paths, paged</td>
<td>heard repeaters and room servers with a key to join several paths, paged from <code>offset</code></td>
</tr>
<tr>
<td><code>rxlog [cursor]</code></td>
@@ -865,29 +944,69 @@ console shows its state.</p>
<tr>
<th>command</th>
<th>where</th>
<th></th>
<th>what</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>set radio.rxps off\|on\|balanced\|max</code>, <code>level &lt;1-10&gt; [preamble 16\|32]</code> / <code>get radio.rxps</code></td>
<td><code>get radio.rxps</code></td>
<td>all, SX1262 only (<code>WITH_RX_POWERSAVING</code>, in the releases)</td>
<td>RX duty cycle: the radio sleeps between short listening windows. <strong>Off by default.</strong> <code>max</code> saved ~2.3 mA on the bench, but a mast on the live mesh lost 16 % of its reception -- see cli_commands.md and <a href="../power/">power.md</a></td>
<td>requested and effective RX duty cycle, window lengths, error counters</td>
</tr>
<tr>
<td><code>set batt.icon on\|off</code>, <code>set batt.icon.lo\|hi &lt;mV&gt;</code></td>
<td><code>set radio.rxps &lt;off|on|balanced|max&gt;</code></td>
<td>same</td>
<td>RX duty cycle: the radio sleeps between short listening windows. Presets: <code>on</code> = level 3, <code>balanced</code> = 6, <code>max</code> = 8. Saved. Default: off</td>
</tr>
<tr>
<td><code>set radio.rxps level &lt;level&gt; [preamble &lt;16|32&gt;]</code></td>
<td>same</td>
<td>the same by number, 1..10 (9 and 10 are past the datasheet's timing condition, 10 is known to lose packets)</td>
</tr>
<tr>
<td><code>set radio.rxps &lt;rx_us&gt; &lt;sleep_us&gt;</code></td>
<td>same</td>
<td>raw window lengths</td>
</tr>
<tr>
<td><code>get batt.icon</code></td>
<td>all</td>
<td>battery level as an icon at the end of the advertised name (off by default; with a name too long for it the icon is left out, and the reply says so)</td>
<td>whether the icon is on, and whether the name leaves room for it</td>
</tr>
<tr>
<td><code>gps duty ...</code></td>
<td><code>set batt.icon &lt;on|off&gt;</code></td>
<td>all</td>
<td>battery level as an icon at the end of the advertised name; with a name too long for it the icon is left out, and the reply says so. Default: off</td>
</tr>
<tr>
<td><code>set batt.icon.lo &lt;mV&gt;</code></td>
<td>all</td>
<td>the empty end of the icon's scale, 2500..4500; <code>0</code> = build default (3300)</td>
</tr>
<tr>
<td><code>set batt.icon.hi &lt;mV&gt;</code></td>
<td>all</td>
<td>the full end, 2500..4500; <code>0</code> = build default (4200)</td>
</tr>
<tr>
<td><code>gps duty</code></td>
<td>GPS boards</td>
<td>the receiver runs only around a clock sync; see cli_commands.md</td>
<td>the receiver runs only around a clock sync; <code>gps on</code> / <code>gps off</code> leave it. See cli_commands.md</td>
</tr>
<tr>
<td><code>get pwr</code>, <code>set pwr.bootlock &lt;mV&gt;\|off</code>, <code>set pwr.cutoff &lt;mV&gt;\|off</code></td>
<td><code>get pwr</code></td>
<td>SenseCAP Solar repeater (<code>PWRMGT_RUNTIME</code>)</td>
<td>battery thresholds: don't start below the bootlock, switch a running node off below the cutoff (cutoff &lt; bootlock, none above the battery right now); saved on the node, see <a href="../power/">power.md</a></td>
<td>both thresholds, the battery now and at boot, why the node last switched off</td>
</tr>
<tr>
<td><code>set pwr.bootlock &lt;mV&gt;</code></td>
<td>same</td>
<td>do not start below this voltage, 3000..4200 or <code>off</code>; saved on the node, see <a href="../power/">power.md</a></td>
</tr>
<tr>
<td><code>set pwr.cutoff &lt;mV&gt;</code></td>
<td>same</td>
<td>switch a running node off below this voltage, 3000..4200 or <code>off</code>. Must stay under the bootlock; neither may be above the battery right now</td>
</tr>
<tr>
<td><code>clkreboot</code></td>
@@ -896,12 +1015,14 @@ console shows its state.</p>
</tr>
</tbody>
</table>
<p>RX duty cycle: <code>max</code> saved ~2.3 mA on the bench, but a mast on the live mesh
lost 16 % of its reception -- see cli_commands.md and <a href="../power/">power.md</a>.</p>
<h2 id="sensors">Sensors</h2>
<table>
<thead>
<tr>
<th>command</th>
<th></th>
<th>what</th>
</tr>
</thead>
<tbody>
@@ -910,8 +1031,12 @@ console shows its state.</p>
<td>the live telemetry decoded into one line (<code>sensor list</code> shows only settings)</td>
</tr>
<tr>
<td><code>sensor get ina.shunt</code></td>
<td>the shunt the current is computed with</td>
</tr>
<tr>
<td><code>sensor set ina.shunt &lt;mOhm&gt;</code></td>
<td>shunt resistance of an INA219/226/260/3221, saved across reboots</td>
<td>shunt resistance of an INA219, INA226 or INA3221 module (<code>10</code> for <code>R010</code>), saved; <code>0</code> = build default (100). The INA260 has its shunt inside and no setting</td>
</tr>
</tbody>
</table>
@@ -923,7 +1048,7 @@ console shows its state.</p>
<tr>
<th>flag</th>
<th>default</th>
<th></th>
<th>what</th>
</tr>
</thead>
<tbody>