{"config":{"indexing":"full","lang":["en"],"min_search_length":3,"prebuild_index":false,"separator":"[\\s\\-]+"},"docs":[{"location":"","text":"About this fork (meshcore-tth) \u010cesk\u00e1 verze . Warning Experimental firmware -- not meant for regular users. This fork and all its releases are a personal development branch for the nodes of one small network: a rolling release on upstream dev , built automatically about twice a day, with no stable channel, no support, and tried only on our own boards. It may carry bugs that take a node out of service, and getting one back then needs USB or BLE in hand. For everyday use flash the official MeshCore ( flasher.meshcore.io ). A fork of meshcore-dev/MeshCore that runs the repeaters, sensors and bench boards of a small Czech network on the CZ mesh (869.432 MHz). Upstream main and dev are merged automatically twice a day; everything below is on top of that. Our code is marked CUSTOM (TeTeHacko) in the source. Nothing here changes the wire protocol. The fork's and upstream's docs as a website: https://tth-pub.pages.rfa.cz/meshcore-tth/ Repeater: antispam (all of it off-switchable, none of it upstream) After flashing only the FairnessLimiter is on , with limits about twice above 30 days of real CZ mesh traffic: per channel a burst of 100 messages, then one per 30 s; per sender 150 and one per 10 s; per advert origin 30 and one per 10 min. It is a net for runaway floods, not a quota; fairness off switches it off for good. The advert window, the filters and dry-run stay off until you turn them on. FairnessLimiter -- token buckets on forwarded floods, keyed on the 1-byte ids already in the clear (channel hash, sender hash, advert origin). Port of Beanow's proposal #1502 , limits re-sized from 30 days of real CZ traffic. fairness , fairness cap , fairness refill , fairness grid ; direct-routed traffic is never limited. Per-origin advert window -- each node's flood advert forwarded at most once per N hours ( fairness advert , fairness advert clear ), ported from DutchMeshCore 's AdvertLimiter. Aimed at nodes that re-advertise every minute. Dry-run -- fairness dryrun on counts every verdict but forwards anyway; fairness air reports the airtime shed (or that would be) per reason. Channel filter -- on channels whose key the repeater knows (Public and #hashtag channels), stop forwarding messages of listed sender names ( filter add , filter del , filter list ). Names are spoofable: it contains a runaway bot, it is not security. Channel-hash deny-forward -- filter hash add [secs] : keyless, works on private channels too; reception is unaffected, only forwarding. With secs the channel is throttled (one packet per secs ) instead of cut. Message age limit -- filter age / filter age off (opt-in, 1-10080 min): do not forward group texts on the decrypted channels whose sender timestamp is older; inactive while the repeater clock is unset. It judges the sender's clock, so companions without a time sync are dropped too -- keep it in days. filter dryrun on counts every filter verdict but forwards anyway. Diagnostics and operations Every command of the fork, which builds have it and the defaults: docs/tth-commands.md . Repeater, room server and sensor (everything with a text console) have: Radio watchdogs. The hardware watchdog only catches a frozen loop; two of our nodes were found deaf with the loop running, and only a reboot helped. set radio.silence -- deaf receiver : when the received-frame counter does not move for minutes (a frame with a CRC error counts), the node re-arms its receiver first and reboots if that does not help either. Each such reboot doubles the threshold for the next boot (up to 16x) and the first frame received resets it, so a quiet site does not end in a reboot loop. Saved; off by default ( 0 ) -- pick a threshold well above the longest normal quiet spell of the site. Stalled TX (repeater only): packets wait in the queue and the sent counter does not move -> re-arm the radio, then reboot. An empty queue never counts. On, 15 min ( RADIO_TXSTALL_MIN ); set radio.txstall |off holds until the next reboot. get radio.reboots -- reboots done by the watchdogs (survives power loss); get boot -- why the board last reset, and the hardfault record (also printed at boot). dfu [uf2|serial|ota] -- a deterministic reboot into the bootloader (local console only); i2c -- bus scan. The repeater also has: blink (flashes the LED, also over the mesh -- finds a node on a mast), txpwr (TX power until reboot, with RadioLib's verdict), TX-failure counters in the status reply. Observer variants only ( *-observer ): text console over BLE next to USB, ble saved across reboots ( RPT_BLE_DEFAULT_OFF : starts off), own BLE PIN ( ble pin ), persisted connection TX power ( blepwr ), bleconn , a non-blocking BLE TX pump and connection parameters that hold on a weak link. Also observer variants only: a passive analyzer in the console -- nodes (heard repeaters/rooms, multi-path join key), rxlog (every frame heard, type/path/SNR/RSSI), pktlog (raw frames for an observer feed), big paged replies. Own builds only, not in the releases: channel bot ( BOT_CHANNEL_PSK : !link , !path , !snr , !heard , !noise , !ping , !help , narrowed by BOT_COMMANDS , per-sender cooldown, ignore list) -- answers without repeating; RADIO_DIAG : radiostat (SX1262 receiver state, hands off) and radiokick (one recovery step at a time, gentlest first -- the first that helps names the broken layer); PIN_DIAG : dio1 (the chip's IRQ status against the level on the pin -- which end of a dead DIO1 line is broken); LORA_POLL_IRQ : DIO1-less operation for a board with a dead IRQ line. Core fixes Replay protection of admin commands survives a reboot. Upstream keeps a client's last timestamp in RAM only, so after every restart any captured command is accepted again -- a captured reboot reboots the node forever. Repeater, room server and sensor now write it to flash before acting on the command ( /s_acl_ts0|1 , alternating with a checksum, so a power cut mid-write does not lose it). A timestamp more than a day ahead of the node's clock ( ACL_TS_MAX_AHEAD ) is accepted but not stored, so a companion with a runaway clock cannot lock its admin out. Only admins are stored: a guest can only read, and with the empty guest password anybody is one, so its every request would be a flash write. Nothing changes for clients. Passwords can no longer be guessed over the air at full speed. Upstream checks every login without a limit and does not even answer a wrong one. After 4 wrong passwords within 3 minutes ( LOGIN_FAIL_MAX , LOGIN_FAIL_SECS ) no password is checked until the window ends. A client that is already an admin in the ACL always gets through -- nobody else can send a login in its name, so the attack cannot lock the admins out. A replayed blank-password login no longer floods a reply. A login from a client in the ACL with an empty password had no replay check; replayed, it gained nothing, but every copy made the node flood its reply over the mesh. TRACE no longer appends its path past the end of the payload; TRACE/PATH parsing and Packet::readFrom are bounds-checked. markSeen is idempotent again (the send path was eating the dedup window). calcMaxPacketMillis fallback no longer underflows (a node went deaf on it). Path-hash width comes from the node's prefs on every TX path, including sendZeroHop ; 2-byte path hashes are the default ( PATH_HASH_MODE_DEFAULT ). Failed transmits are re-queued with backoff instead of dropped. Per-packet RSSI captured at RX; ContactInfo zeroed before a partial fill. Power, clock, GPS 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. A node without GPS starts at its build epoch, not in 2024; the clock and a hardfault record survive a warm reset ( .noinit ); clkreboot . No blinking LED and slower BLE advertising on solar nodes. Battery level as an icon at the end of the advertised name: set batt.icon on , thresholds set batt.icon.lo and set batt.icon.hi (off by default; a long name has no room for it and the command says so). Optional RX duty cycle ( set radio.rxps , finer set radio.rxps 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 ), but on the live mesh one of our masts lost 16 % of its reception -- switch it on with care. SX1262 only, not the LR1110 (T1000-E). The nRF52 boot undervoltage lock ( PWRMGT_VOLTAGE_BOOTLOCK ) is off , as in upstream since v1.18.0 ( #2377 ): its fixed 3.3 V threshold kept LiFePO4 and LTO nodes from booting. The firmware boots on any cell chemistry; deep-discharge protection is up to the BMS or the cell's protection board. A configurable, chemistry-aware lock is waiting for upstream ( #2088 ). The exception is SenseCap_Solar_repeater (Li-ion, our masts): the lock is on and both thresholds are settable at runtime, also as an admin over the mesh -- set pwr.bootlock or off (default 3300; below it the node does not start and sleeps until the cell recovers) and set pwr.cutoff or off (default off; below it a running node switches off); get pwr ( docs/power.md ). Sensors and companions simple_sensor : telemetry from an external station over UART ( BudkaLinkSensorManager , one LPP channel per meter), sensor read . Sensors that would otherwise convert continuously (INA219, INA226, INA260, INA3221, BMP280) sleep between telemetry reads and measure on demand (idea and first INA219 patch: Alkel Brostl). INA chips are told apart by their ID, so an INA226 is no longer taken for an INA219. The shunt (INA219, INA226, INA3221; the INA260 has it inside) is set at runtime and saved: sensor set ina.shunt . Companion: gps duty persists, bounded build-date copy. Private key export, reading the BLE PIN and changing it (CLI set pin included) work only over paired BLE, never over USB, a UART or WiFi/TCP, and the reply that carries the key or PIN goes back only where the request came from. (The v1.17 merge had silently disabled that gate; a build without BLE still trusts its one transport.) KISS modem: off-by-one in the name clamp. Public builds: Czech mesh defaults Releases built from this repository ( pub-release ) come preset for the Czech mesh, following the meshcore.cz wiki, so a freshly flashed node does not need the usual round of settings: radio 869.432 MHz / 62.5 kHz / SF7 / CR5 (all builds); repeater and room server: zero-hop advert off, flood advert every 25 h, 10 % duty cycle ( get dutycycle \u2192 10.0% ; the deprecated af reads 9); repeater: regions cz and cs next to * -- add your own cz- with region put cz-xxx cz + region save ; 2-byte path hashes (this fork's default); repeater: the channel filter ( filter add ) is built in for Public, #meshcore and #test , with an empty list -- it does nothing until you add a name. They apply only to a node with no saved settings (new, or after an erase): a reflash keeps whatever the node already has, and regions you removed and saved stay removed. Set a name and an admin password yourself. The companion's BLE PIN is the public 123456 (boards with a display draw their own and show it). Whoever pairs with it owns the companion: messages, contacts, private key export. So change it in the app after the first pairing. And with the board in hand neither the PIN nor a password protects anything: the flash is not locked and the bootloader takes any firmware. Treat a lost or stolen node as compromised -- for a repeater, change the admin password wherever it was the same and drop its key from ACLs; for a companion, treat the channels it held as known. Observer variants ( *_repeater-observer-* ) of the nRF52 repeaters (XIAO, SenseCAP Solar, RAK4631, T1000-E, Heltec T114) add the nodes / rxlog / pktlog rings and a text console over BLE, for reading the repeater over USB or BLE ( meshcore-repeater-observer ). The BLE console is off after flashing ( RPT_BLE_DEFAULT_OFF ). It has no login of its own, only the BLE PIN, and the build's PIN is the public placeholder 123456 . So first set your own -- in the USB console, or as admin over the mesh (remote CLI in the app): ble pin <6 digits> (saved, survives a reboot and a reflash; it also drops every existing bond, so paired devices pair again). Only then ble on -- these builds refuse it while the PIN is still the placeholder. ble shows whether the PIN is own or build default , never the PIN itself. Releases up to tth-654d53f3 do not have ble pin : keep BLE off there and use USB. Flashing a release Every release is an automatic build on upstream dev (see the warning above), not a stable version. Flash it only on nodes you can reach, and each new release on one of them first. Files are in Releases . A release is named after the upstream version and the date, e.g. v1.18.0+tth.20261112 (a second one that day .2 ), and its notes list the changes since the previous release. One set per board and role ( _- , e.g. Xiao_nrf52_repeater-v1.18.0+tth.20261112.zip ): .zip and .uf2 for nRF52 boards, .bin for ESP32 ( -merged.bin is the full image for a blank board, the plain .bin an update). SHA256SUMS lists the checksums. Releases up to 12. 11. 2026 were named tth- . nRF52 (XIAO, RAK4631, SenseCAP Solar, T1000-E, T114) with the MeshCore web flasher -- Chrome, Edge or Chromium on a computer (Web Serial; not Firefox or Safari): Connect the board over USB. Click Custom Firmware and choose the .zip for your board. Click Enter DFU mode and pick the board's serial port. The board restarts into its bootloader and shows up as a new port. Click Flash! and pick that new port. About 30 s, then the board restarts into the new firmware. Console in the flasher (or any serial terminal, 115200) checks the result: ver shows v1.xx.x-tth , the same as the \"Verze v uzlu\" (node version) line in the release notes. Do not click Erase Flash unless you want a new node: it wipes the identity (the node's key and everything that knows it) together with all settings. A plain flash keeps them. Tried on a XIAO (repeater-observer, 3. 11. 2026). ESP32 .bin through the same Custom Firmware button is untested here. Without the web flasher: on most boards a double-tap of reset opens the bootloader as a USB drive; copy the .uf2 onto it. Or adafruit-nrfutil dfu serial -pkg .zip -p -b 115200 with the board in the bootloader. After flashing a new node, set it up in the console: set name , password (at most 15 characters), your own region with region put cz- cz + region save . A repeater forwards from its first boot (upstream default) and these builds are on the live CZ frequency: on a desk without its antenna, set repeat off until it is in place. Experimental: firmware update pushed by the admin ( *-ota ) Every nRF52 build with a text console (repeater, observer, room server, sensor) is in the release once more as an experimental *-ota / *-observer-ota image. It takes a new firmware from its admin with the fw \u2026 commands: on the USB or BLE console, or over the mesh as remote admin CLI . No bootloader change, no second bank: the node stores the package in free flash, checks all of it (signature, hashes, the delta applied dry) and rewrites itself only on fw apply , from a routine running in RAM. A power cut during the rewrite leaves it in the bootloader, back via USB/BLE DFU. Each *-ota image comes with a full package _-ota-.mcfw (USB/BLE only) and a delta \u2026.from-.mcfw from every kept earlier release, typically a few kB. Over the mesh a node takes only a delta, and never an older version than it runs -- enforced by the node, not by the tool. A full image or a step back only locally ( fw apply downgrade ). fw apply wants the battery at 3.8 V or more unless the node runs on USB. Packages and SHA256SUMS are signed by meshcore-ota@tth-pub , and an *-ota image accepts no other signature. Checking the downloads: ssh-keygen -Y verify -f tools/ota_allowed_signers -I meshcore-ota@tth-pub -n meshcore-ota -s SHA256SUMS.sig < SHA256SUMS . Your own build with your own key: [ota] pubkey in platformio.local.ini . The first *-ota image is flashed the usual way (above), later ones go as deltas. Tools: tools/ota_push.py (USB), tools/ota_mesh_push.py (over the mesh through a companion; needs the meshcore Python library, takes the admin password from [secrets] admin_pw in platformio.local.ini ; --side carries the transfer on a side channel, off the shared mesh), tools/ota_pack.py info . The transfer itself is the OTA engine of the tth.meshcore Ansible collection (module meshcore_fw_ota ), one code for the tools and Ansible. From a phone: the meshcore-open fork, repeater management \u2192 Firmware update (OTA), which finds the delta in the release by itself. How it works and bench numbers: docs/ota.md . Experimental even within this fork : the images come with every release (see the warning above) and have no second bank and no automatic rollback. A bad firmware that boots keeps running until you push the next one; one that does not boot needs USB/BLE DFU in hand. Tried on the bench (XIAO, USB, mesh, side channel) and on two of our masts since 13. 11. 2026. The radio watchdogs (see Diagnostics and operations) catch an image that boots with a dead radio: switch set radio.silence on for nodes you push to. Costs ~10 kB of RAM. Build Version stamping in every nRF52 env ( v1.18.0-tth , + = dirty tree), base version from the upstream tag ( tools/build_version.py ). tools/ : host tools for the nodes -- consoles (USB, BLE), flashing, bench tests, diagnostics ( tools/README.md ). Board names come from a local config outside the repo ( tools/config.example.ini ). hardware/cavity-box : parametric enclosure for a cavity filter on a mast. N\u00ed\u017ee je README upstreamov\u00e9ho MeshCore. Jeho flasher, klienti a n\u00e1vody se t\u00fdkaj\u00ed ofici\u00e1ln\u00edho firmwaru, ne releas\u016f tohoto forku. / Below is upstream MeshCore's README: its flasher, clients and guides refer to the official firmware, not to this fork's releases.","title":"About the fork"},{"location":"#about-this-fork-meshcore-tth","text":"\u010cesk\u00e1 verze . Warning Experimental firmware -- not meant for regular users. This fork and all its releases are a personal development branch for the nodes of one small network: a rolling release on upstream dev , built automatically about twice a day, with no stable channel, no support, and tried only on our own boards. It may carry bugs that take a node out of service, and getting one back then needs USB or BLE in hand. For everyday use flash the official MeshCore ( flasher.meshcore.io ). A fork of meshcore-dev/MeshCore that runs the repeaters, sensors and bench boards of a small Czech network on the CZ mesh (869.432 MHz). Upstream main and dev are merged automatically twice a day; everything below is on top of that. Our code is marked CUSTOM (TeTeHacko) in the source. Nothing here changes the wire protocol. The fork's and upstream's docs as a website: https://tth-pub.pages.rfa.cz/meshcore-tth/","title":"About this fork (meshcore-tth)"},{"location":"#repeater-antispam-all-of-it-off-switchable-none-of-it-upstream","text":"After flashing only the FairnessLimiter is on , with limits about twice above 30 days of real CZ mesh traffic: per channel a burst of 100 messages, then one per 30 s; per sender 150 and one per 10 s; per advert origin 30 and one per 10 min. It is a net for runaway floods, not a quota; fairness off switches it off for good. The advert window, the filters and dry-run stay off until you turn them on. FairnessLimiter -- token buckets on forwarded floods, keyed on the 1-byte ids already in the clear (channel hash, sender hash, advert origin). Port of Beanow's proposal #1502 , limits re-sized from 30 days of real CZ traffic. fairness , fairness cap , fairness refill , fairness grid ; direct-routed traffic is never limited. Per-origin advert window -- each node's flood advert forwarded at most once per N hours ( fairness advert , fairness advert clear ), ported from DutchMeshCore 's AdvertLimiter. Aimed at nodes that re-advertise every minute. Dry-run -- fairness dryrun on counts every verdict but forwards anyway; fairness air reports the airtime shed (or that would be) per reason. Channel filter -- on channels whose key the repeater knows (Public and #hashtag channels), stop forwarding messages of listed sender names ( filter add , filter del , filter list ). Names are spoofable: it contains a runaway bot, it is not security. Channel-hash deny-forward -- filter hash add [secs] : keyless, works on private channels too; reception is unaffected, only forwarding. With secs the channel is throttled (one packet per secs ) instead of cut. Message age limit -- filter age / filter age off (opt-in, 1-10080 min): do not forward group texts on the decrypted channels whose sender timestamp is older; inactive while the repeater clock is unset. It judges the sender's clock, so companions without a time sync are dropped too -- keep it in days. filter dryrun on counts every filter verdict but forwards anyway.","title":"Repeater: antispam (all of it off-switchable, none of it upstream)"},{"location":"#diagnostics-and-operations","text":"Every command of the fork, which builds have it and the defaults: docs/tth-commands.md . Repeater, room server and sensor (everything with a text console) have: Radio watchdogs. The hardware watchdog only catches a frozen loop; two of our nodes were found deaf with the loop running, and only a reboot helped. set radio.silence -- deaf receiver : when the received-frame counter does not move for minutes (a frame with a CRC error counts), the node re-arms its receiver first and reboots if that does not help either. Each such reboot doubles the threshold for the next boot (up to 16x) and the first frame received resets it, so a quiet site does not end in a reboot loop. Saved; off by default ( 0 ) -- pick a threshold well above the longest normal quiet spell of the site. Stalled TX (repeater only): packets wait in the queue and the sent counter does not move -> re-arm the radio, then reboot. An empty queue never counts. On, 15 min ( RADIO_TXSTALL_MIN ); set radio.txstall |off holds until the next reboot. get radio.reboots -- reboots done by the watchdogs (survives power loss); get boot -- why the board last reset, and the hardfault record (also printed at boot). dfu [uf2|serial|ota] -- a deterministic reboot into the bootloader (local console only); i2c -- bus scan. The repeater also has: blink (flashes the LED, also over the mesh -- finds a node on a mast), txpwr (TX power until reboot, with RadioLib's verdict), TX-failure counters in the status reply. Observer variants only ( *-observer ): text console over BLE next to USB, ble saved across reboots ( RPT_BLE_DEFAULT_OFF : starts off), own BLE PIN ( ble pin ), persisted connection TX power ( blepwr ), bleconn , a non-blocking BLE TX pump and connection parameters that hold on a weak link. Also observer variants only: a passive analyzer in the console -- nodes (heard repeaters/rooms, multi-path join key), rxlog (every frame heard, type/path/SNR/RSSI), pktlog (raw frames for an observer feed), big paged replies. Own builds only, not in the releases: channel bot ( BOT_CHANNEL_PSK : !link , !path , !snr , !heard , !noise , !ping , !help , narrowed by BOT_COMMANDS , per-sender cooldown, ignore list) -- answers without repeating; RADIO_DIAG : radiostat (SX1262 receiver state, hands off) and radiokick (one recovery step at a time, gentlest first -- the first that helps names the broken layer); PIN_DIAG : dio1 (the chip's IRQ status against the level on the pin -- which end of a dead DIO1 line is broken); LORA_POLL_IRQ : DIO1-less operation for a board with a dead IRQ line.","title":"Diagnostics and operations"},{"location":"#core-fixes","text":"Replay protection of admin commands survives a reboot. Upstream keeps a client's last timestamp in RAM only, so after every restart any captured command is accepted again -- a captured reboot reboots the node forever. Repeater, room server and sensor now write it to flash before acting on the command ( /s_acl_ts0|1 , alternating with a checksum, so a power cut mid-write does not lose it). A timestamp more than a day ahead of the node's clock ( ACL_TS_MAX_AHEAD ) is accepted but not stored, so a companion with a runaway clock cannot lock its admin out. Only admins are stored: a guest can only read, and with the empty guest password anybody is one, so its every request would be a flash write. Nothing changes for clients. Passwords can no longer be guessed over the air at full speed. Upstream checks every login without a limit and does not even answer a wrong one. After 4 wrong passwords within 3 minutes ( LOGIN_FAIL_MAX , LOGIN_FAIL_SECS ) no password is checked until the window ends. A client that is already an admin in the ACL always gets through -- nobody else can send a login in its name, so the attack cannot lock the admins out. A replayed blank-password login no longer floods a reply. A login from a client in the ACL with an empty password had no replay check; replayed, it gained nothing, but every copy made the node flood its reply over the mesh. TRACE no longer appends its path past the end of the payload; TRACE/PATH parsing and Packet::readFrom are bounds-checked. markSeen is idempotent again (the send path was eating the dedup window). calcMaxPacketMillis fallback no longer underflows (a node went deaf on it). Path-hash width comes from the node's prefs on every TX path, including sendZeroHop ; 2-byte path hashes are the default ( PATH_HASH_MODE_DEFAULT ). Failed transmits are re-queued with backoff instead of dropped. Per-packet RSSI captured at RX; ContactInfo zeroed before a partial fill.","title":"Core fixes"},{"location":"#power-clock-gps","text":"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. A node without GPS starts at its build epoch, not in 2024; the clock and a hardfault record survive a warm reset ( .noinit ); clkreboot . No blinking LED and slower BLE advertising on solar nodes. Battery level as an icon at the end of the advertised name: set batt.icon on , thresholds set batt.icon.lo and set batt.icon.hi (off by default; a long name has no room for it and the command says so). Optional RX duty cycle ( set radio.rxps , finer set radio.rxps 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 ), but on the live mesh one of our masts lost 16 % of its reception -- switch it on with care. SX1262 only, not the LR1110 (T1000-E). The nRF52 boot undervoltage lock ( PWRMGT_VOLTAGE_BOOTLOCK ) is off , as in upstream since v1.18.0 ( #2377 ): its fixed 3.3 V threshold kept LiFePO4 and LTO nodes from booting. The firmware boots on any cell chemistry; deep-discharge protection is up to the BMS or the cell's protection board. A configurable, chemistry-aware lock is waiting for upstream ( #2088 ). The exception is SenseCap_Solar_repeater (Li-ion, our masts): the lock is on and both thresholds are settable at runtime, also as an admin over the mesh -- set pwr.bootlock or off (default 3300; below it the node does not start and sleeps until the cell recovers) and set pwr.cutoff or off (default off; below it a running node switches off); get pwr ( docs/power.md ).","title":"Power, clock, GPS"},{"location":"#sensors-and-companions","text":"simple_sensor : telemetry from an external station over UART ( BudkaLinkSensorManager , one LPP channel per meter), sensor read . Sensors that would otherwise convert continuously (INA219, INA226, INA260, INA3221, BMP280) sleep between telemetry reads and measure on demand (idea and first INA219 patch: Alkel Brostl). INA chips are told apart by their ID, so an INA226 is no longer taken for an INA219. The shunt (INA219, INA226, INA3221; the INA260 has it inside) is set at runtime and saved: sensor set ina.shunt . Companion: gps duty persists, bounded build-date copy. Private key export, reading the BLE PIN and changing it (CLI set pin included) work only over paired BLE, never over USB, a UART or WiFi/TCP, and the reply that carries the key or PIN goes back only where the request came from. (The v1.17 merge had silently disabled that gate; a build without BLE still trusts its one transport.) KISS modem: off-by-one in the name clamp.","title":"Sensors and companions"},{"location":"#public-builds-czech-mesh-defaults","text":"Releases built from this repository ( pub-release ) come preset for the Czech mesh, following the meshcore.cz wiki, so a freshly flashed node does not need the usual round of settings: radio 869.432 MHz / 62.5 kHz / SF7 / CR5 (all builds); repeater and room server: zero-hop advert off, flood advert every 25 h, 10 % duty cycle ( get dutycycle \u2192 10.0% ; the deprecated af reads 9); repeater: regions cz and cs next to * -- add your own cz- with region put cz-xxx cz + region save ; 2-byte path hashes (this fork's default); repeater: the channel filter ( filter add ) is built in for Public, #meshcore and #test , with an empty list -- it does nothing until you add a name. They apply only to a node with no saved settings (new, or after an erase): a reflash keeps whatever the node already has, and regions you removed and saved stay removed. Set a name and an admin password yourself. The companion's BLE PIN is the public 123456 (boards with a display draw their own and show it). Whoever pairs with it owns the companion: messages, contacts, private key export. So change it in the app after the first pairing. And with the board in hand neither the PIN nor a password protects anything: the flash is not locked and the bootloader takes any firmware. Treat a lost or stolen node as compromised -- for a repeater, change the admin password wherever it was the same and drop its key from ACLs; for a companion, treat the channels it held as known. Observer variants ( *_repeater-observer-* ) of the nRF52 repeaters (XIAO, SenseCAP Solar, RAK4631, T1000-E, Heltec T114) add the nodes / rxlog / pktlog rings and a text console over BLE, for reading the repeater over USB or BLE ( meshcore-repeater-observer ). The BLE console is off after flashing ( RPT_BLE_DEFAULT_OFF ). It has no login of its own, only the BLE PIN, and the build's PIN is the public placeholder 123456 . So first set your own -- in the USB console, or as admin over the mesh (remote CLI in the app): ble pin <6 digits> (saved, survives a reboot and a reflash; it also drops every existing bond, so paired devices pair again). Only then ble on -- these builds refuse it while the PIN is still the placeholder. ble shows whether the PIN is own or build default , never the PIN itself. Releases up to tth-654d53f3 do not have ble pin : keep BLE off there and use USB.","title":"Public builds: Czech mesh defaults"},{"location":"#flashing-a-release","text":"Every release is an automatic build on upstream dev (see the warning above), not a stable version. Flash it only on nodes you can reach, and each new release on one of them first. Files are in Releases . A release is named after the upstream version and the date, e.g. v1.18.0+tth.20261112 (a second one that day .2 ), and its notes list the changes since the previous release. One set per board and role ( _- , e.g. Xiao_nrf52_repeater-v1.18.0+tth.20261112.zip ): .zip and .uf2 for nRF52 boards, .bin for ESP32 ( -merged.bin is the full image for a blank board, the plain .bin an update). SHA256SUMS lists the checksums. Releases up to 12. 11. 2026 were named tth- . nRF52 (XIAO, RAK4631, SenseCAP Solar, T1000-E, T114) with the MeshCore web flasher -- Chrome, Edge or Chromium on a computer (Web Serial; not Firefox or Safari): Connect the board over USB. Click Custom Firmware and choose the .zip for your board. Click Enter DFU mode and pick the board's serial port. The board restarts into its bootloader and shows up as a new port. Click Flash! and pick that new port. About 30 s, then the board restarts into the new firmware. Console in the flasher (or any serial terminal, 115200) checks the result: ver shows v1.xx.x-tth , the same as the \"Verze v uzlu\" (node version) line in the release notes. Do not click Erase Flash unless you want a new node: it wipes the identity (the node's key and everything that knows it) together with all settings. A plain flash keeps them. Tried on a XIAO (repeater-observer, 3. 11. 2026). ESP32 .bin through the same Custom Firmware button is untested here. Without the web flasher: on most boards a double-tap of reset opens the bootloader as a USB drive; copy the .uf2 onto it. Or adafruit-nrfutil dfu serial -pkg .zip -p -b 115200 with the board in the bootloader. After flashing a new node, set it up in the console: set name , password (at most 15 characters), your own region with region put cz- cz + region save . A repeater forwards from its first boot (upstream default) and these builds are on the live CZ frequency: on a desk without its antenna, set repeat off until it is in place.","title":"Flashing a release"},{"location":"#experimental-firmware-update-pushed-by-the-admin-ota","text":"Every nRF52 build with a text console (repeater, observer, room server, sensor) is in the release once more as an experimental *-ota / *-observer-ota image. It takes a new firmware from its admin with the fw \u2026 commands: on the USB or BLE console, or over the mesh as remote admin CLI . No bootloader change, no second bank: the node stores the package in free flash, checks all of it (signature, hashes, the delta applied dry) and rewrites itself only on fw apply , from a routine running in RAM. A power cut during the rewrite leaves it in the bootloader, back via USB/BLE DFU. Each *-ota image comes with a full package _-ota-.mcfw (USB/BLE only) and a delta \u2026.from-.mcfw from every kept earlier release, typically a few kB. Over the mesh a node takes only a delta, and never an older version than it runs -- enforced by the node, not by the tool. A full image or a step back only locally ( fw apply downgrade ). fw apply wants the battery at 3.8 V or more unless the node runs on USB. Packages and SHA256SUMS are signed by meshcore-ota@tth-pub , and an *-ota image accepts no other signature. Checking the downloads: ssh-keygen -Y verify -f tools/ota_allowed_signers -I meshcore-ota@tth-pub -n meshcore-ota -s SHA256SUMS.sig < SHA256SUMS . Your own build with your own key: [ota] pubkey in platformio.local.ini . The first *-ota image is flashed the usual way (above), later ones go as deltas. Tools: tools/ota_push.py (USB), tools/ota_mesh_push.py (over the mesh through a companion; needs the meshcore Python library, takes the admin password from [secrets] admin_pw in platformio.local.ini ; --side carries the transfer on a side channel, off the shared mesh), tools/ota_pack.py info . The transfer itself is the OTA engine of the tth.meshcore Ansible collection (module meshcore_fw_ota ), one code for the tools and Ansible. From a phone: the meshcore-open fork, repeater management \u2192 Firmware update (OTA), which finds the delta in the release by itself. How it works and bench numbers: docs/ota.md . Experimental even within this fork : the images come with every release (see the warning above) and have no second bank and no automatic rollback. A bad firmware that boots keeps running until you push the next one; one that does not boot needs USB/BLE DFU in hand. Tried on the bench (XIAO, USB, mesh, side channel) and on two of our masts since 13. 11. 2026. The radio watchdogs (see Diagnostics and operations) catch an image that boots with a dead radio: switch set radio.silence on for nodes you push to. Costs ~10 kB of RAM.","title":"Experimental: firmware update pushed by the admin (*-ota)"},{"location":"#build","text":"Version stamping in every nRF52 env ( v1.18.0-tth , + = dirty tree), base version from the upstream tag ( tools/build_version.py ). tools/ : host tools for the nodes -- consoles (USB, BLE), flashing, bench tests, diagnostics ( tools/README.md ). Board names come from a local config outside the repo ( tools/config.example.ini ). hardware/cavity-box : parametric enclosure for a cavity filter on a mast. N\u00ed\u017ee je README upstreamov\u00e9ho MeshCore. Jeho flasher, klienti a n\u00e1vody se t\u00fdkaj\u00ed ofici\u00e1ln\u00edho firmwaru, ne releas\u016f tohoto forku. / Below is upstream MeshCore's README: its flasher, clients and guides refer to the official firmware, not to this fork's releases.","title":"Build"},{"location":"ble-lora-coexistence/","text":"BLE/LoRa coexistence \u2014 bench reproduction attempt Working notes for the DIRECT-forward loss seen on mast-three (SenseCap Solar, SenseCap_Solar_repeater_ble ). Written down because the result is mostly negative , and a negative result is only worth anything if the method and its limits are recorded with it. The claim under test Commit f6e9aeca widened the BLE connection interval from 15\u201330 ms to 60\u201380 ms after an A/B on the mast showed ~40 % of DIRECT-route forwards silently lost with an idle BLE connection at 15\u201330 ms. The stated mechanism is that the SoftDevice's per-connection-event preemption disturbs the SX126x TX path ( startTransmit fail / send-complete timeout). The fix is deployed. What was never established is whether a bench rig can detect the effect at all \u2014 a measurement that reads zero in both the treatment and the control has shown nothing. Rig Isolated test mesh on 866.5 MHz (BW 62.5, SF 8, CR 5). Isolation is by frequency, not by tx power: a hilltop repeater with RX_BOOSTED_GAIN hears a few mW just fine. The override is compile-time ( platformio.local.ini ) because MyMesh.cpp seeds _prefs.freq from LORA_FREQ , so the firmware cannot come up on the production frequency even after erase . node board role bench-board XIAO nRF52840 + Wio-SX1262 forwarder under test bench-board same paired control / radiating witness bench-board , bench-board same probe sources bench-rpt SenseCap Solar Node forwarder, mast-identical hardware tth-s2-rpt same paired control Paired controls differ only in ADVERT_NAME , verified by diffing strings in the ELF. Any other difference invalidates them. Oracle The measured quantity is the node's own direct_rx \u2212 direct_tx from stats-packets : how many DIRECT packets it accepted for forwarding versus how many it actually sent. This is self-normalising \u2014 it does not depend on channel conditions or on a receiver hearing anything. tx_start_fail and tx_timeout are the mechanism-level counters. A second repeater with repeat off acts as a radiating witness, so \"counted a TX\" can be distinguished from \"actually radiated\". Route forcing: a contact is injected into the sender's companion with an explicit out_path , so the DM must traverse the node under test. out_path_len is not a hop count \u2014 it is a packed byte, top two bits = hash size \u2212 1, low six = hop count ( Packet.h:85 ). One hop with a 2-byte hash is 0x41 , not 1 . The receiver reads the size out of the packet ( Mesh.cpp:93 ), so a forced path works regardless of the node's path.hash.mode . What was measured All cells at a verified 22.50 ms connection interval \u2014 bleconn reports the parameters actually negotiated, because bleOnSecured() only requests them and the central may refuse. Without that read-back none of the null results below would mean anything. blepwr \u2248RSSI at central link up direct_rx direct_tx lost tx_timeout BLE off \u2014 \u2014 8 8 0 0 0 dBm \u221267 100 % 8 8 0 0 \u22128 \u221275 100 % 8 8 0 0 \u221212 \u221279 100 % 8 8 0 0 \u221216 \u221283 87 % 8 8 0 0 \u221220 \u221287 27 % 8 8 0 0 The \u221220 dBm row is a bonus condition: the link held only a quarter of the window, so the node spent the rest advertising and re-connecting \u2014 close to the reconnect churn the mast reports as HCI 0x3E. Ruled out as the missing factor: BLE link margin. The whole \u221275..\u221290 window the mast sits in is covered, at the known-bad interval, with zero loss. Why idle + weak link does nothing In idle the connection events carry empty PDUs, whose retransmission costs almost no radio time. The cost of a retransmission scales with payload size, and the mast has a bridge actively draining the console. Hence the poll mode in the harness. Direction matters too, and it is the reason to weaken our side rather than the central's: a connection event ends as soon as either side misses a packet, so if the central misses our PDU we must re-send it at the next anchor \u2014 an extra slave TX. If we miss the central's PDU we never transmit in that event at all, and the SoftDevice uses less radio. On mast hardware, with the file log on Two SenseCap Solar nodes ( bench-rpt forwarder, tth-s2-rpt paired control) \u2014 the same board as the mast, so InternalFS logging, INA226/solar telemetry and the SenseCap SPI layout are all in play. Again at a verified 22.50 ms interval ( bleconn ). file log BLE direct_rx direct_tx lost tx_timeout witness off off 8 8 0 0 +39 off idle, 88 % of window 8 8 0 0 +37 on off 8 8 0 0 +39 on idle, 90 % of window 8 8 0 0 +40 The logging condition was real, not nominal: log afterwards held 69 entries with RX/TX lines timestamped inside the measurement window, i.e. an InternalFS write per packet \u2014 the mechanism behind the known deaf windows. Ten cells, 80 forced forwards, zero lost, tx_timeout and tx_start_fail at zero throughout. Against the mast's reported ~40 % loss rate this is not a weak null: a single 8-probe cell would miss a true 40 % effect with probability 0.6\u2078 \u2248 1.7 %, and ten cells make it vanishing. Whatever the mast is doing, it is not reproduced by the connection interval, the BLE link margin, the board, or InternalFS logging \u2014 alone or together. Still open Loaded LoRa channel is the one uncontrolled difference left. Ours is idle; the mast relays flood traffic, so its forwards contend for a busy channel and the TX window lands on a BLE connection event far more often. This cannot be tested legally here: 866.5 is capped at 1 % duty and the 10 % sub-band (869.4\u2013869.65) is where production lives. Practical consequence: f6e9aeca can be neither confirmed nor refuted on the bench. Deciding whether the 60\u201380 ms interval is still needed requires measuring on mast-three itself \u2014 the counters ( stats-packets , and now bleconn to prove which interval is actually in force) are all reachable over its BLE console. Airtime is a hard limit, and the firmware will not enforce it 866.5 MHz sits in 865\u2013868 (CZ VO-R/10): 25 mW ERP, 1 % duty cycle = 36 s of transmission per hour . The firmware does not police this \u2014 airtime_factor defaults to 0 (= 100 %) and is clamped to 9, so the lowest duty MeshCore can enforce is 10 %. The first sweep consumed tx_air_secs 27 s in 18 minutes of uptime, a rate of ~2.5 %. Budget the probes: stats-radio.tx_air_secs is the ground truth, and the harness aborts before crossing a configured cap. stats-core.queue_len and errors are a required control, not decoration: when the airtime budget runs out the Dispatcher defers a forward ( next_tx_time , Dispatcher.cpp:101 ), which looks identical to loss in the counters. Both were zero throughout. Traps worth remembering USB and BLE consoles share one command[160] . Two concurrent consoles interleave into one line and crash the node. The harness keeps a strict sequence: counters over USB \u2192 close USB \u2192 BLE client \u2192 probes \u2192 stop BLE \u2192 counters over USB. Bluefruit.setTxPower() is advertising-only (see the commit message for blepwr ); the connection runs at the SoftDevice default 0 dBm. Weakening the link can lock you out of BLE. Below about \u221216 dBm the node's replies stop arriving and the value is re-applied on every reconnect (and, since 6. 10. 2026, saved). The way back is blepwr over the mesh admin CLI. ~~Runtime set tx does not change radiated LoRa power~~ \u2014 retracted. The original reading (+2 dBm \u2192 RSSI \u221244.1, \u22129 dBm \u2192 \u221244.0) was made with an instrument that could not report failure: RadioLibWrapper::setTxPower() discarded RadioLib's status, so a refused request looked exactly like an accepted one. Re-measured 2026-08-04 on the repeater build with txpwr confirming each step, x1 transmitting and x4 as witness: txpwr witness last_rssi +22 0 dBm (saturated) +14 \u22121 dBm (saturated) +6 \u22127 dBm 0 \u221218 dBm \u22129 \u221228 dBm 31 dB of command produced 28 dB of RSSI, and the witness recv counter rose by one at every step, so no point was missed. Radiated power does follow the setting. The top two points are saturated \u2014 the boards were ~10 cm apart \u2014 so the usable range of that particular rig starts around +6 dBm; characterising the top end needs attenuation or distance, not a bigger number. The lesson is not about tx power. It is that a null result from an instrument which cannot distinguish \"refused\" from \"no effect\" is not a result at all. The two commands this bench added Both live in examples/simple_repeater/main.cpp and are repeater-only. bleconn \u2014 what the link is actually doing bleconn -> BLE conn: interval 75.00 ms (req 60-80), latency 0, sup timeout 4000 ms [live] Reports the negotiated connection parameters, not the requested ones. The central is free to ignore a peripheral's request, so this is the only way to know whether a change like f6e9aeca (widening the requested interval to 60\u201380 ms) is in force on a node you cannot see. The trailing [live] / [last] says whether a client is connected right now or these are the values from the last one; before any client has ever connected it answers nothing seen yet . blepwr [dBm|default] \u2014 connection TX power, saved blepwr # report: BLE conn tx: 0 dBm, adv tx: 8 dBm blepwr 8 # set, apply to live connections and save blepwr default # forget the saved value, back to RPT_BLE_CONN_TX_POWER The reply carries how many live connections accepted the value ( OK - BLE conn tx 8 dBm (1/1 conn), saved ) because the nRF52840 only takes \u221240, \u221220, \u221216, \u221212, \u22128, \u22124, 0 and 2..8 dBm; anything else is rejected and is not latched or saved, so a typo cannot arm itself for the next reconnect. The value lives in /ble_pwr in InternalFS, so it survives a reboot and also a reflash with a different build default: an explicit value is pinned even when it equals the default (no file = follow RPT_BLE_CONN_TX_POWER , which mast-three's env sets to 8). Sets BLE_GAP_TX_POWER_ROLE_CONN , which is independent of Bluefruit.setTxPower() \u2014 that one only affects advertising, despite reading like a global. The connection otherwise runs at the SoftDevice default of 0 dBm; the compile-time starting value is RPT_BLE_CONN_TX_POWER . The value is re-applied on every 'secured' event and saved, so a setting weak enough to break the link persists across reconnects and reboots \u2014 at \u221240 dBm during this bench it locked the BLE console out. Fix it over the mesh admin CLI ( blepwr 0 ), which does not depend on BLE. Until 6. 10. 2026 a weakening auto-reverted after 5 minutes and nothing was saved; that went away once the value started to be saved, because a revert that the next reboot undoes again only made the state harder to read.","title":"BLE/LoRa coexistence"},{"location":"ble-lora-coexistence/#blelora-coexistence-bench-reproduction-attempt","text":"Working notes for the DIRECT-forward loss seen on mast-three (SenseCap Solar, SenseCap_Solar_repeater_ble ). Written down because the result is mostly negative , and a negative result is only worth anything if the method and its limits are recorded with it.","title":"BLE/LoRa coexistence \u2014 bench reproduction attempt"},{"location":"ble-lora-coexistence/#the-claim-under-test","text":"Commit f6e9aeca widened the BLE connection interval from 15\u201330 ms to 60\u201380 ms after an A/B on the mast showed ~40 % of DIRECT-route forwards silently lost with an idle BLE connection at 15\u201330 ms. The stated mechanism is that the SoftDevice's per-connection-event preemption disturbs the SX126x TX path ( startTransmit fail / send-complete timeout). The fix is deployed. What was never established is whether a bench rig can detect the effect at all \u2014 a measurement that reads zero in both the treatment and the control has shown nothing.","title":"The claim under test"},{"location":"ble-lora-coexistence/#rig","text":"Isolated test mesh on 866.5 MHz (BW 62.5, SF 8, CR 5). Isolation is by frequency, not by tx power: a hilltop repeater with RX_BOOSTED_GAIN hears a few mW just fine. The override is compile-time ( platformio.local.ini ) because MyMesh.cpp seeds _prefs.freq from LORA_FREQ , so the firmware cannot come up on the production frequency even after erase . node board role bench-board XIAO nRF52840 + Wio-SX1262 forwarder under test bench-board same paired control / radiating witness bench-board , bench-board same probe sources bench-rpt SenseCap Solar Node forwarder, mast-identical hardware tth-s2-rpt same paired control Paired controls differ only in ADVERT_NAME , verified by diffing strings in the ELF. Any other difference invalidates them.","title":"Rig"},{"location":"ble-lora-coexistence/#oracle","text":"The measured quantity is the node's own direct_rx \u2212 direct_tx from stats-packets : how many DIRECT packets it accepted for forwarding versus how many it actually sent. This is self-normalising \u2014 it does not depend on channel conditions or on a receiver hearing anything. tx_start_fail and tx_timeout are the mechanism-level counters. A second repeater with repeat off acts as a radiating witness, so \"counted a TX\" can be distinguished from \"actually radiated\". Route forcing: a contact is injected into the sender's companion with an explicit out_path , so the DM must traverse the node under test. out_path_len is not a hop count \u2014 it is a packed byte, top two bits = hash size \u2212 1, low six = hop count ( Packet.h:85 ). One hop with a 2-byte hash is 0x41 , not 1 . The receiver reads the size out of the packet ( Mesh.cpp:93 ), so a forced path works regardless of the node's path.hash.mode .","title":"Oracle"},{"location":"ble-lora-coexistence/#what-was-measured","text":"All cells at a verified 22.50 ms connection interval \u2014 bleconn reports the parameters actually negotiated, because bleOnSecured() only requests them and the central may refuse. Without that read-back none of the null results below would mean anything. blepwr \u2248RSSI at central link up direct_rx direct_tx lost tx_timeout BLE off \u2014 \u2014 8 8 0 0 0 dBm \u221267 100 % 8 8 0 0 \u22128 \u221275 100 % 8 8 0 0 \u221212 \u221279 100 % 8 8 0 0 \u221216 \u221283 87 % 8 8 0 0 \u221220 \u221287 27 % 8 8 0 0 The \u221220 dBm row is a bonus condition: the link held only a quarter of the window, so the node spent the rest advertising and re-connecting \u2014 close to the reconnect churn the mast reports as HCI 0x3E. Ruled out as the missing factor: BLE link margin. The whole \u221275..\u221290 window the mast sits in is covered, at the known-bad interval, with zero loss.","title":"What was measured"},{"location":"ble-lora-coexistence/#why-idle-weak-link-does-nothing","text":"In idle the connection events carry empty PDUs, whose retransmission costs almost no radio time. The cost of a retransmission scales with payload size, and the mast has a bridge actively draining the console. Hence the poll mode in the harness. Direction matters too, and it is the reason to weaken our side rather than the central's: a connection event ends as soon as either side misses a packet, so if the central misses our PDU we must re-send it at the next anchor \u2014 an extra slave TX. If we miss the central's PDU we never transmit in that event at all, and the SoftDevice uses less radio.","title":"Why idle + weak link does nothing"},{"location":"ble-lora-coexistence/#on-mast-hardware-with-the-file-log-on","text":"Two SenseCap Solar nodes ( bench-rpt forwarder, tth-s2-rpt paired control) \u2014 the same board as the mast, so InternalFS logging, INA226/solar telemetry and the SenseCap SPI layout are all in play. Again at a verified 22.50 ms interval ( bleconn ). file log BLE direct_rx direct_tx lost tx_timeout witness off off 8 8 0 0 +39 off idle, 88 % of window 8 8 0 0 +37 on off 8 8 0 0 +39 on idle, 90 % of window 8 8 0 0 +40 The logging condition was real, not nominal: log afterwards held 69 entries with RX/TX lines timestamped inside the measurement window, i.e. an InternalFS write per packet \u2014 the mechanism behind the known deaf windows. Ten cells, 80 forced forwards, zero lost, tx_timeout and tx_start_fail at zero throughout. Against the mast's reported ~40 % loss rate this is not a weak null: a single 8-probe cell would miss a true 40 % effect with probability 0.6\u2078 \u2248 1.7 %, and ten cells make it vanishing. Whatever the mast is doing, it is not reproduced by the connection interval, the BLE link margin, the board, or InternalFS logging \u2014 alone or together.","title":"On mast hardware, with the file log on"},{"location":"ble-lora-coexistence/#still-open","text":"Loaded LoRa channel is the one uncontrolled difference left. Ours is idle; the mast relays flood traffic, so its forwards contend for a busy channel and the TX window lands on a BLE connection event far more often. This cannot be tested legally here: 866.5 is capped at 1 % duty and the 10 % sub-band (869.4\u2013869.65) is where production lives. Practical consequence: f6e9aeca can be neither confirmed nor refuted on the bench. Deciding whether the 60\u201380 ms interval is still needed requires measuring on mast-three itself \u2014 the counters ( stats-packets , and now bleconn to prove which interval is actually in force) are all reachable over its BLE console.","title":"Still open"},{"location":"ble-lora-coexistence/#airtime-is-a-hard-limit-and-the-firmware-will-not-enforce-it","text":"866.5 MHz sits in 865\u2013868 (CZ VO-R/10): 25 mW ERP, 1 % duty cycle = 36 s of transmission per hour . The firmware does not police this \u2014 airtime_factor defaults to 0 (= 100 %) and is clamped to 9, so the lowest duty MeshCore can enforce is 10 %. The first sweep consumed tx_air_secs 27 s in 18 minutes of uptime, a rate of ~2.5 %. Budget the probes: stats-radio.tx_air_secs is the ground truth, and the harness aborts before crossing a configured cap. stats-core.queue_len and errors are a required control, not decoration: when the airtime budget runs out the Dispatcher defers a forward ( next_tx_time , Dispatcher.cpp:101 ), which looks identical to loss in the counters. Both were zero throughout.","title":"Airtime is a hard limit, and the firmware will not enforce it"},{"location":"ble-lora-coexistence/#traps-worth-remembering","text":"USB and BLE consoles share one command[160] . Two concurrent consoles interleave into one line and crash the node. The harness keeps a strict sequence: counters over USB \u2192 close USB \u2192 BLE client \u2192 probes \u2192 stop BLE \u2192 counters over USB. Bluefruit.setTxPower() is advertising-only (see the commit message for blepwr ); the connection runs at the SoftDevice default 0 dBm. Weakening the link can lock you out of BLE. Below about \u221216 dBm the node's replies stop arriving and the value is re-applied on every reconnect (and, since 6. 10. 2026, saved). The way back is blepwr over the mesh admin CLI. ~~Runtime set tx does not change radiated LoRa power~~ \u2014 retracted. The original reading (+2 dBm \u2192 RSSI \u221244.1, \u22129 dBm \u2192 \u221244.0) was made with an instrument that could not report failure: RadioLibWrapper::setTxPower() discarded RadioLib's status, so a refused request looked exactly like an accepted one. Re-measured 2026-08-04 on the repeater build with txpwr confirming each step, x1 transmitting and x4 as witness: txpwr witness last_rssi +22 0 dBm (saturated) +14 \u22121 dBm (saturated) +6 \u22127 dBm 0 \u221218 dBm \u22129 \u221228 dBm 31 dB of command produced 28 dB of RSSI, and the witness recv counter rose by one at every step, so no point was missed. Radiated power does follow the setting. The top two points are saturated \u2014 the boards were ~10 cm apart \u2014 so the usable range of that particular rig starts around +6 dBm; characterising the top end needs attenuation or distance, not a bigger number. The lesson is not about tx power. It is that a null result from an instrument which cannot distinguish \"refused\" from \"no effect\" is not a result at all.","title":"Traps worth remembering"},{"location":"ble-lora-coexistence/#the-two-commands-this-bench-added","text":"Both live in examples/simple_repeater/main.cpp and are repeater-only.","title":"The two commands this bench added"},{"location":"ble-lora-coexistence/#bleconn-what-the-link-is-actually-doing","text":"bleconn -> BLE conn: interval 75.00 ms (req 60-80), latency 0, sup timeout 4000 ms [live] Reports the negotiated connection parameters, not the requested ones. The central is free to ignore a peripheral's request, so this is the only way to know whether a change like f6e9aeca (widening the requested interval to 60\u201380 ms) is in force on a node you cannot see. The trailing [live] / [last] says whether a client is connected right now or these are the values from the last one; before any client has ever connected it answers nothing seen yet .","title":"bleconn \u2014 what the link is actually doing"},{"location":"ble-lora-coexistence/#blepwr-dbmdefault-connection-tx-power-saved","text":"blepwr # report: BLE conn tx: 0 dBm, adv tx: 8 dBm blepwr 8 # set, apply to live connections and save blepwr default # forget the saved value, back to RPT_BLE_CONN_TX_POWER The reply carries how many live connections accepted the value ( OK - BLE conn tx 8 dBm (1/1 conn), saved ) because the nRF52840 only takes \u221240, \u221220, \u221216, \u221212, \u22128, \u22124, 0 and 2..8 dBm; anything else is rejected and is not latched or saved, so a typo cannot arm itself for the next reconnect. The value lives in /ble_pwr in InternalFS, so it survives a reboot and also a reflash with a different build default: an explicit value is pinned even when it equals the default (no file = follow RPT_BLE_CONN_TX_POWER , which mast-three's env sets to 8). Sets BLE_GAP_TX_POWER_ROLE_CONN , which is independent of Bluefruit.setTxPower() \u2014 that one only affects advertising, despite reading like a global. The connection otherwise runs at the SoftDevice default of 0 dBm; the compile-time starting value is RPT_BLE_CONN_TX_POWER . The value is re-applied on every 'secured' event and saved, so a setting weak enough to break the link persists across reconnects and reboots \u2014 at \u221240 dBm during this bench it locked the BLE console out. Fix it over the mesh admin CLI ( blepwr 0 ), which does not depend on BLE. Until 6. 10. 2026 a weakening auto-reverted after 5 minutes and nothing was saved; that went away once the value started to be saved, because a revert that the next reboot undoes again only made the state harder to read.","title":"blepwr [dBm|default] \u2014 connection TX power, saved"},{"location":"budka-sensor/","text":"Budka link \u2014 a Chytra Budka as a sensor source A Chytra Budka (ESP32-S3 bird box) sends its readings over a one-way UART line to a XIAO nRF52840 running simple_sensor ; the sensor serves them as CayenneLPP telemetry to anyone on the mesh. The line format and the budka side are documented in the chytra-budka repo, firmware/MESHCORE.md . Build BudkaLinkSensorManager ( src/helpers/sensors/ ) replaces the variant's EnvironmentSensorManager when the env defines BUDKA_LINK_RX_PIN ; every other env is unchanged. [env : Xiao_x1_budka] ; platformio.local.ini extends = env:Xiao_nrf52_sensor build_flags = ${env : Xiao_nrf52_sensor.build_flags} ${test_radio.build_flags} ; bench : test band only -D BUDKA_LINK_RX_PIN = 0 ; D0 = the only pad LoRa + I\u00b2C leave free Optional: BUDKA_LINK_TX_PIN (default LED_GREEN \u2014 nothing is ever sent, the idle-high line keeps that LED dark), BUDKA_LINK_BAUD (115200), BUDKA_LINK_METERS (3), BUDKA_LINK_STALE_MS (120 s). Wiring Budka mc_tx pad \u2192 XIAO D0 , GND \u2194 GND, each board on its own USB. A 1 k\u03a9 series resistor protects against back-powering when one side is off. Telemetry layout channel content 1 the node itself next budka: temperature, humidity, pressure, motion count (generic sensor) next + k UC96 meter k : voltage, current, power (analog input), energy (kWh) A line with a bad checksum is dropped whole; a value not refreshed for 2 min is left out. Meter channels stay reserved while a meter is missing. Read it with .tth/tools/budka_telem.py . The sensor answers only clients in its ACL \u2014 a request from anyone else is dropped ( recv matches no peers in a MESH_DEBUG build). Add the companion from the sensor's USB console with setperm 1 , or log in as admin. The port may be a pyserial URL ( socket://\u2026 for an openHop companion), and the name may be the sensor's public key when the companion does not have it yet. Bench result (13. 10. 2026) x1 (sensor, test band) fed by the bench budka; x4 as USB companion: ch2 temp_C 25.3 humidity_% 59.0 generic 29 ch3 voltage_V 4.94 current_A 0.10 analog_in 0.49 energy_kWh 0.111 ch4 voltage_V 4.94 current_A 0.18 analog_in 0.89 energy_kWh 0.311 Not done Alerts (reed opened, budka WiFi down) and the return direction (mesh \u2192 budka). The sensor build has no dfu console command \u2014 reflash with pio run -t upload , one touch per power session.","title":"Budka as a sensor"},{"location":"budka-sensor/#budka-link-a-chytra-budka-as-a-sensor-source","text":"A Chytra Budka (ESP32-S3 bird box) sends its readings over a one-way UART line to a XIAO nRF52840 running simple_sensor ; the sensor serves them as CayenneLPP telemetry to anyone on the mesh. The line format and the budka side are documented in the chytra-budka repo, firmware/MESHCORE.md .","title":"Budka link \u2014 a Chytra Budka as a sensor source"},{"location":"budka-sensor/#build","text":"BudkaLinkSensorManager ( src/helpers/sensors/ ) replaces the variant's EnvironmentSensorManager when the env defines BUDKA_LINK_RX_PIN ; every other env is unchanged. [env : Xiao_x1_budka] ; platformio.local.ini extends = env:Xiao_nrf52_sensor build_flags = ${env : Xiao_nrf52_sensor.build_flags} ${test_radio.build_flags} ; bench : test band only -D BUDKA_LINK_RX_PIN = 0 ; D0 = the only pad LoRa + I\u00b2C leave free Optional: BUDKA_LINK_TX_PIN (default LED_GREEN \u2014 nothing is ever sent, the idle-high line keeps that LED dark), BUDKA_LINK_BAUD (115200), BUDKA_LINK_METERS (3), BUDKA_LINK_STALE_MS (120 s).","title":"Build"},{"location":"budka-sensor/#wiring","text":"Budka mc_tx pad \u2192 XIAO D0 , GND \u2194 GND, each board on its own USB. A 1 k\u03a9 series resistor protects against back-powering when one side is off.","title":"Wiring"},{"location":"budka-sensor/#telemetry-layout","text":"channel content 1 the node itself next budka: temperature, humidity, pressure, motion count (generic sensor) next + k UC96 meter k : voltage, current, power (analog input), energy (kWh) A line with a bad checksum is dropped whole; a value not refreshed for 2 min is left out. Meter channels stay reserved while a meter is missing. Read it with .tth/tools/budka_telem.py . The sensor answers only clients in its ACL \u2014 a request from anyone else is dropped ( recv matches no peers in a MESH_DEBUG build). Add the companion from the sensor's USB console with setperm 1 , or log in as admin. The port may be a pyserial URL ( socket://\u2026 for an openHop companion), and the name may be the sensor's public key when the companion does not have it yet.","title":"Telemetry layout"},{"location":"budka-sensor/#bench-result-13-10-2026","text":"x1 (sensor, test band) fed by the bench budka; x4 as USB companion: ch2 temp_C 25.3 humidity_% 59.0 generic 29 ch3 voltage_V 4.94 current_A 0.10 analog_in 0.49 energy_kWh 0.111 ch4 voltage_V 4.94 current_A 0.18 analog_in 0.89 energy_kWh 0.311","title":"Bench result (13. 10. 2026)"},{"location":"budka-sensor/#not-done","text":"Alerts (reed opened, budka WiFi down) and the return direction (mesh \u2192 budka). The sensor build has no dfu console command \u2014 reflash with pio run -t upload , one touch per power session.","title":"Not done"},{"location":"cli_commands/","text":"CLI Commands This document provides an overview of CLI commands that can be sent to MeshCore Repeaters, Room Servers and Sensors. Navigation Operational Neighbors Posts Statistics Logging Information Configuration Radio System Routing ACL Region Management Region Examples GPS Sensors Bridge Ethernet Operational Reboot the node Usage: - reboot Note: No reply is sent. Power-off the node Usage: - poweroff , or - shutdown Note: No reply is sent. Reset the clock and reboot meshcore-tth addition. Usage: - clkreboot Note: No reply is sent. Resets the clock to the firmware's build epoch (or, on an unstamped build, the upstream 15 May 2024 literal) and reboots. This is the only way to move a clock backwards: time and clock sync both refuse to. Sync the clock with the remote device Usage: - clock sync Takes the time from the packet's sender_timestamp , so it works only over the remote admin CLI , never from the USB or BLE console \u2014 those pass sender_timestamp = 0 (they share one command buffer, see examples/simple_repeater/main.cpp ), and 0 > curr is never true, so a local clock sync always answers ERR: clock cannot go backwards . Use time locally. Display current time in UTC Usage: - clock Reply: HH:MM - D/M/YYYY UTC (epoch ) The epoch is a meshcore-tth addition. The human part is minutes only, so a host comparing clocks cannot see a difference smaller than a minute and has to leave a deadband of over 59 s; the epoch makes the comparison exact. It is appended, so anything that only prints the reply is unaffected. Set the time to a specific timestamp Usage: - time Parameters: - epoch_seconds : Unix epoch time Refuses to go backwards ( secs > curr ), answering (ERR: clock cannot go backwards) . That reply usually means the clock was already right, so treat it as success and judge by reading clock back. Where the clock comes from if nobody sets it. Without GPS and without an I2C RTC the clock is volatile: it starts at the build epoch and only ticks from millis() . It is worth setting, because the RTC stamps every advert the node transmits and a receiver drops a stale timestamp as a replay. Automatic sources, in order of preference: GPS ( gps duty is enough \u2014 see docs/power.md ); an attached host \u2014 tools/ble_cli.py \"time {epoch}\" , the meshcore-ble-bridge / meshcore-serial-bridge scrape, or tools/xiao_uf2_flash.sh , which sets it right after every flash; the build epoch , which is where a freshly flashed board starts, and which needs nothing at all. Send a flood advert Usage: - advert Send a zero-hop advert Usage: - advert.zerohop Start an Over-The-Air (OTA) firmware update Usage: - start ota Erase/Factory Reset Usage: - erase Serial Only: Yes Warning: This is destructive! Neighbors (Repeater Only) List nearby neighbors Usage: - neighbors Note: The output of this command is limited to the 8 most recent adverts. Note: Each line is encoded as {pubkey-prefix}:{timestamp}:{snr*4} Remove a neighbor Usage: - neighbor.remove Parameters: - pubkey_prefix : The public key of the node to remove from the neighbors list. This can be a short prefix or the full key. All neighbors matching the provided prefix will be removed. Note: You can remove all neighbors by sending a space character as the prefix. The space indicates an empty prefix, which matches all existing neighbors. Discover zero hop neighbors Usage: - discover.neighbors Posts (Room Server Only) Post a message as the room server Usage: - room.post Parameters: - message : The text of the post Note: The post is stored and pushed to logged-in clients like a client's post, with the room server as its author. Statistics Clear Stats Usage: clear stats System Stats - Battery, Uptime, Queue Length and Debug Flags Usage: - stats-core Serial Only: Yes Note: Output format: {\"battery_mv\":,\"uptime_secs\":,\"errors\":,\"queue_len\":} Note: errors is a bitmask shown as \"Debug flags\" in the app's repeater status. Value Flag Meaning 1 ERR_EVENT_FULL A packet failed to send because the memory pool was full. 2 ERR_EVENT_CAD_TIMEOUT After waiting 4 seconds for a gap, a packet was transmitted into a busy network. 4 ERR_EVENT_STARTRX_TIMEOUT The radio was out of receive mode for more than 8 seconds. Flags stay set until the node reboots or clear stats is run. Radio Stats - Noise floor, Last RSSI/SNR, Airtime, Receive errors Usage: stats-radio Serial Only: Yes Packet stats - Packet counters: Received, Sent Usage: stats-packets Serial Only: Yes Logging Begin capture of rx log to node storage Usage: log start End capture of rx log to node storage Usage: log stop Erase captured log Usage: log erase Print the captured log to the serial terminal Usage: log Serial Only: Yes Info Get the Version Usage: ver Show the hardware name Usage: board Configuration Radio View or change this node's radio parameters Usage: - get radio - set radio ,,, Parameters: - freq : Frequency in MHz - bw : Bandwidth in kHz - sf : Spreading factor (5-12) - cr : Coding rate (5-8) Set by build flag: LORA_FREQ , LORA_BW , LORA_SF , LORA_CR Default: 869.618,62.5,8,5 Note: Requires reboot to apply Notes: These settings control the setup of the radio parameters. Refer to the node's manual for the correct settings to use. Setting a value too high or too low may violate the laws in your country. View or change this node's transmit power Usage: - get tx - set tx Parameters: - dbm : Power level in dBm (-9 to 22 on SX126x; meshcore-tth refuses values out of range or not taken by the radio) Set by build flag: LORA_TX_POWER Default: Varies by board Notes: This setting only controls the power level of the LoRa chip. Some nodes have an additional power amplifier stage which increases the total output. Refer to the node's manual for the correct setting to use. Setting a value too high may violate the laws in your country. Change the radio parameters for a set duration Usage: - tempradio ,,,, Parameters: - freq : Frequency in MHz (300-2500) - bw : Bandwidth in kHz (7.8-500) - sf : Spreading factor (5-12) - cr : Coding rate (5-8) - timeout_mins : Duration in minutes (must be > 0) Notes: These settings control the setup of the radio parameters. Refer to the node's manual for the correct settings to use. Setting a value too high or too low may violate the laws in your country. Note: This is not saved to preferences and will clear on reboot View or change this node's frequency Usage: - get freq - set freq Parameters: - frequency : Frequency in MHz Default: 869.618 Note: Requires reboot to apply Serial Only: set freq View or change this node's rx boosted gain mode (SX12xx and LR1110, v1.14.1+) Usage: - get radio.rxgain - set radio.rxgain Parameters: - state : on | off Default: on Temporary Note: If you upgraded from an older version to 1.14.1 without erasing flash, this setting is off because of #2118 View or change the LoRa FEM receive-path gain state on supported boards Usage: - get radio.fem.rxgain - set radio.fem.rxgain Parameters: - state : on | off Notes: - This controls the external LoRa FEM receive-path LNA where the board supports it. - This is separate from radio.rxgain , which controls the radio chip receive gain mode. View or change the LoRa FEM transmit-path gain state on supported boards Usage: - get radio.fem.txgain - set radio.fem.txgain Parameters: - state : on | off Notes: - This controls a software-selectable external LoRa FEM transmit gain where the board supports it. - On Station G3, remove the PA PL1 jumper to allow software control. on selects PA PL1 high/short and off selects PA PL1 low/open. The PA PL2 hardware jumper determines whether this switches between power levels 1/3 or 2/4. - Select an operating level and SX1262 transmit power that comply with local RF limits and the Station G3 power-supply requirements. - The setting is saved immediately, but on Station G3 the level is applied to the hardware at the start of the next transmit, so that the PA supply rail is never re-targeted while the PA is being driven. get reports the configured state, which may lead the hardware until the node next transmits. System View or change this node's name Usage: - get name - set name Parameters: - name : Node name Set by build flag: ADVERT_NAME Default: Varies by board Note: Advertised names can use up to 23 bytes when location is included and 31 bytes otherwise. Emoji and Unicode characters may take more than one byte. Names that exceed the available advert space are truncated at a valid UTF-8 code point boundary. Show battery state as an icon on the advertised name meshcore-tth addition. Appends a solar marker and a charge level to the name carried in adverts, so anyone who hears the node can see its state without logging in for telemetry. Off by default. Usage: - get batt.icon - set batt.icon Default: off Glyphs: \u2600 permanently (solar node), then one of \u2581\u2582\u2583\u2584\u2585\u2586\u2587\u2588 for the charge level -- or \u26a1 instead of the level while the node runs on external power (USB), where VBAT reads the charger rather than the cell. Note: The indicator costs 6 bytes of the name (3 + 3), which with a position in the advert leaves 17. Unicode has only two battery emoji and no \"half full\" one, and at 4 bytes each they do not fit -- hence block elements, which are 3 bytes and come in eight steps. If the name is too long the whole indicator is dropped rather than truncated, and both set and get say so. Note: Every level is the same byte width on purpose. A name that changed length with the charge would be re-truncated at some steps and not others, and every client that heard it would rewrite the contact. Note: Switching is hysteretic ( BATT_ICON_HYST_MV , default 50 mV) and asymmetric -- the level drops as soon as the voltage crosses a boundary but climbs only once clear of it. The measured daily swing of a solar node under weak sun is 38-46 mV and the drift 13 mV/day, so at eight levels the name changes roughly once a week. Battery scale for the name icon meshcore-tth addition. Usage: - get batt.icon.lo / set batt.icon.lo - get batt.icon.hi / set batt.icon.hi Set by build flag: BATT_ICON_LO_MV , BATT_ICON_HI_MV Default: 3300 and 4200 -- the same 1S Li-Ion scale the dashboards use, so the icon and the Grafana percentage tell one story. Parameters: - millivolts : 2500 .. 4500 , or 0 to use the build default View or change this node's latitude Usage: - get lat - set lat Set by build flag: ADVERT_LAT Default: 0 Parameters: - degrees : Latitude in degrees View or change this node's longitude Usage: - get lon - set lon Set by build flag: ADVERT_LON Default: 0 Parameters: - degrees : Longitude in degrees View or change this node's identity (Private Key) Usage: - get prv.key - set prv.key Parameters: - private_key : Private key in hex format (64 hex characters) Serial Only: - get prv.key : Yes - set prv.key : No Note: Requires reboot to take effect after setting Change this node's admin password Usage: - password Parameters: - new_password : New admin password Set by build flag: ADMIN_PASSWORD Default: password Note: Command reply echoes the updated password for confirmation. Note: Any node using this password will be added to the admin ACL list. View or change this node's guest password Usage: - get guest.password - set guest.password Parameters: - password : Guest password Set by build flag: ROOM_PASSWORD (Room Server only) Default: View or change this node's owner info Usage: - get owner.info - set owner.info Parameters: - text : Owner information text Default: Note: | characters are translated to newlines Note: Requires firmware 1.12+ Fine-tune the battery reading Usage: - get adc.multiplier - set adc.multiplier Parameters: - value : ADC multiplier (0.0-10.0) Default: 0.0 (value defined by board) Note: Returns \"Error: unsupported by this board\" if hardware doesn't support it View this node's public key Usage: get public.key View this node's firmware version Usage: ver View this node's configured role Usage: get role View or change this node's power saving flag (Repeater Only) Usage: - powersaving - powersaving on - powersaving off Parameters: - on : enable power saving - off : disable power saving Default: off Note: When enabled, device enters sleep mode between radio transmissions View or change the RX duty cycle (rxps) meshcore-tth addition. Usage: - get radio.rxps - set radio.rxps - set radio.rxps preamble <16|32> - set radio.rxps level [preamble <16|32>] - set radio.rxps - set radio.rxps The SX1262 sleeps between short listening windows ( SetRxDutyCycle ) instead of listening all the time, and stays awake through a packet once it hears a preamble. Ported from EasySkyMesh PowerSaving v18 (IoTThinks). Repeater, room server and sensor; SX1262 only (an LR11x0 reports supported=no ). Present only in builds with -D WITH_RX_POWERSAVING (the public releases have it) and off until you set it; the setting is saved. Parameters: - on (= conservative , level 3), balanced (level 6), max (level 8): the higher the level, the longer the sleep. The named presets assume senders with a 16-symbol preamble (the MeshCore default), so they are safe on a mixed mesh. - level : the same scale by number, 1..10; without preamble it follows the SF. 9 ( overdrive ) and 10 ( riskyWorkingMax ) are past the datasheet's timing condition -- 10 is known to lose packets. - : raw window lengths. get radio.rxps shows the requested and the effective state ( desired=on,effective=armed ), the window lengths and two error counters. If arming fails three times in a row, the radio falls back to continuous RX by itself ( effective=continuous , fail counts up). The noise-floor calibration also runs in continuous RX. Default: off Note: Measured 12. 11. 2026 on a XIAO nRF52840 + Wio-SX1262 at 5 V (866.5 MHz / SF8 / BW62.5, A/B/A/B, 15 min cells): max saves ~2.3 mA (cell repeatability 0.3 mA). A 3-board zero-hop test lost nothing on max (0/240 over two runs, the second on the public release). See docs/power.md . Routing View or change this node's repeat flag Usage: - get repeat - set repeat Parameters: - state : on | off Default: on View or change this node's advert path hash size Usage: - get path.hash.mode - set path.hash.mode Parameters: - value : Path hash size (0-2) - 0 : 1 Byte hash size (256 unique ids)[64 max flood] - 1 : 2 Byte hash size (65,536 unique ids)[32 max flood] - 2 : 3 Byte hash size (16,777,216 unique ids)[21 max flood] - 3 : DO NOT USE (Reserved) Default: 0 Note: the 'path.hash.mode' sets the low-level ID/hash encoding size used when the repeater adverts. This setting has no impact on what packet ID/hash size this repeater forwards, all sizes should be forwarded on firmware >= 1.14. This feature was added in firmware 1.14 Temporary Note: adverts with ID/hash sizes of 2 or 3 bytes may have limited flood propagation in your network while this feature is new as v1.13.0 firmware and older will drop packets with multibyte path ID/hashes as only 1-byte hashes are supported. Consider your install base of firmware >=1.14 has reached a criticality for effective network flooding before implementing higher ID/hash sizes. View or change this node's loop detection Usage: - get loop.detect - set loop.detect Parameters: - state : - off : no loop detection is performed - minimal : packets are dropped if repeater's ID/hash appears 4 or more times (1-byte), 2 or more (2-byte), 1 or more (3-byte) - moderate : packets are dropped if repeater's ID/hash appears 2 or more times (1-byte), 1 or more (2-byte), 1 or more (3-byte) - strict : packets are dropped if repeater's ID/hash appears 1 or more times (1-byte), 1 or more (2-byte), 1 or more (3-byte) Default: off Note: When it is enabled, repeaters will now reject flood packets which look like they are in a loop. This has been happening recently in some meshes when there is just a single 'bad' repeater firmware out there (probably some forked or custom firmware). If the payload is messed with, then forwarded, the same packet ends up causing a packet storm, repeated up to the max 64 hops. This feature was added in firmware 1.14 Example: If preference is loop.detect minimal , and a 1-byte path size packet is received, the repeater will see if its own ID/hash is already in the path. If it's already encoded 4 times, it will reject the packet. If the packet uses 2-byte path size, and repeater's own ID/hash is already encoded 2 times, it rejects. If the packet uses 3-byte path size, and the repeater's own ID/hash is already encoded 1 time, it rejects. View or change the retransmit delay factor for flood traffic Usage: - get txdelay - set txdelay Parameters: - value : Transmit delay factor (0-2) Default: 0.5 Note: When multiple nearby repeaters all hear the same flood packet, each waits a random amount of time before retransmitting to avoid simultaneous collisions. This factor scales the size of that random window. Higher values reduce collision risk at the cost of added latency. 0 disables the window entirely. View or change the retransmit delay factor for direct traffic Usage: - get direct.txdelay - set direct.txdelay Parameters: - value : Direct transmit delay factor (0-2) Default: 0.3 (Repeater) - 0.2 (Room Server, Sensor) Note: Same collision-avoidance random window as txdelay , but applied to direct (non-flood, routed) traffic. The default is lower because direct packets are addressed to a specific next hop, so far fewer nodes compete to retransmit them. [Experimental] View or change the processing delay for received traffic Usage: - get rxdelay - set rxdelay Parameters: - value : Receive delay base (0-20) Default: 0.0 Note: When enabled, repeaters that received a flood packet with a weak signal are held in a delay queue before processing, while those that received it with a strong signal process it immediately. This gives strong-signal paths forwarding priority. By the time weak-signal nodes process their copy, the packet may have already propagated and will be suppressed as a duplicate, reducing redundant retransmissions. View or change the duty cycle limit Usage: - get dutycycle - set dutycycle Parameters: - value : Duty cycle percentage (1-100) Default: 50% (equivalent to airtime factor 1.0) Examples: - set dutycycle 100 \u2014 no duty cycle limit - set dutycycle 50 \u2014 50% duty cycle (default) - set dutycycle 10 \u2014 10% duty cycle - set dutycycle 1 \u2014 1% duty cycle (strictest EU requirement) Note: Added in firmware v1.15.0 Notes: Refer to the node's manual for the correct settings to use. Setting a value too high may violate the laws in your country. View or change the airtime factor (duty cycle limit) Deprecated as of firmware v1.15.0. Use get/set dutycycle instead. Usage: - get af - set af Parameters: - value : Airtime factor (0-9). After each transmission, the repeater enforces a silent period of approximately the on-air transmission time multiplied by the value. This results in a long-term duty cycle of roughly 1 divided by (1 plus the value). For example: - af = 1 \u2192 ~50% duty - af = 2 \u2192 ~33% duty - af = 3 \u2192 ~25% duty - af = 9 \u2192 ~10% duty You are responsible for choosing a value that is appropriate for your jurisdiction and channel plan (for example EU 868 Mhz 10% duty cycle regulation). Default: 1.0 View or change the local interference threshold Usage: - get int.thresh - set int.thresh Parameters: - value : Interference threshold value Default: 0.0 Enable or disable hardware Channel Activity Detection (CAD) Usage: - get cad - set cad Description: When enabled, the radio performs a hardware Channel Activity Detection scan before transmitting and defers if the channel is busy. Runs independently of int.thresh \u2014 either, both, or none may be active. Parameters: - on|off : Enable or disable hardware CAD Default: off View or change the AGC Reset Interval Usage: - get agc.reset.interval - set agc.reset.interval Parameters: - value : Interval in seconds, 0-1020, rounded down to a multiple of 4 (17 becomes 16). 0 to disable. Default: 0.0 Radio silence watchdog (repeater, sensor, room server) meshcore-tth addition. Usage: - get radio.silence - set radio.silence - get radio.reboots Parameters: - minutes : 1-1440, or 0 / off to disable. Description: Recovers a receiver that has gone deaf while the node keeps running (the hardware watchdog only catches a frozen loop). After minutes without a single received frame \u2014 a receive error counts as heard, too \u2014 the receiver is re-armed (IRQs cleared, RX restarted). If nothing arrives within a further quarter of the threshold (at least 5 minutes), the node reboots. To keep a quiet site out of a reboot loop, each such reboot doubles the threshold for the next boot (up to 16\u00d7); the first frame received afterwards resets it. get radio.silence shows the threshold, the current multiplier, how long the receiver has been quiet and the stage (0 healthy, 1 re-armed). get radio.reboots counts the reboots done by this watchdog; it survives power loss. Pick a threshold well above the longest quiet spell the site normally has. Default: 0 (off) TX stall watchdog (repeater) meshcore-tth addition. Usage: - get radio.txstall - set radio.txstall Parameters: - minutes : 1-1440, or 0 / off to disable. Not saved: the build default ( RADIO_TXSTALL_MIN ) is back after a reboot. Description: Recovers a node that still receives but no longer transmits. If packets wait in the outbound queue and the sent counter does not move for minutes , the radio is re-armed (IRQs cleared, back to standby); if still nothing goes out within a further quarter of the threshold (at least 5 minutes), the node reboots. An empty queue never counts, so a quiet site cannot trigger it. get radio.txstall shows the threshold, the queue (in total and due now), how long nothing has been sent and the stage (0 healthy, 1 re-armed). Its reboots are counted in get radio.reboots and are logged with the queue numbers. Default: 15 Reboot into the bootloader (repeater, sensor, room server; nRF52, local console only) meshcore-tth addition. Usage: - dfu [uf2|serial|ota] Description: Reboots straight into the Adafruit bootloader: uf2 (default) brings up the UF2 drive, serial only the CDC port for adafruit-nrfutil , ota BLE DFU. Refused over the mesh, where it would leave the node waiting in the bootloader with no way back. Why the board last reset (repeater, sensor, room server) meshcore-tth addition. Usage: - get boot Description: The reset reason latched at boot ( RESETREAS on nRF52: 0x1 reset pin, 0x2 watchdog, 0x4 software reset, 0x8 lockup, 0 power-on) and, if the board crashed, the hardfault record (PC, LR, PSR). The same is printed once at boot, but on a build without a settle delay the console is not open yet at that moment. Enable or disable Multi-Acks support Usage: - get multi.acks - set multi.acks Parameters: - state : 0 (disable) or 1 (enable) Default: 0 View or change the flood advert interval Usage: - get flood.advert.interval - set flood.advert.interval Parameters: - hours : Interval in hours (3-168) Default: 47 (Repeater, Room Server) - 0 , disabled (Sensor) View or change the zero-hop advert interval Usage: - get advert.interval - set advert.interval Parameters: - minutes : Interval in minutes rounded down to the nearest multiple of 2 (61 becomes 60) (60-240) Default: 2 on a factory-fresh node, then 0 (disabled) once configured. Note: A new install ships with a 2 minute zero-hop advert interval. Saving any setting resets an interval below the 60 minute minimum to 0 , on the assumption that the node has now been deliberately configured. To keep zero-hop adverts running, set an explicit value in the 60-240 range. Limit the number of hops for a flood message Usage: - get flood.max - set flood.max Parameters: - value : Maximum flood hop count (0-64) Default: 64 Limit the number of hops for an unscoped flood message Usage: - get flood.max.unscoped - set flood.max.unscoped Parameters: - value : Maximum flood hop count (0-64) for a packet without a scope (no region set) Default: 64 - ( 0xFF indicates it hasn't been set, will track flood.max until it is.) Note: An alternative to region denyf * , setting flood.max.unscoped to a lower value such as 3 would allow for local unscoped messages to propagate, while preventing noisy neighbors from flooding a local region. Limit the number of hops for an advert flood message Usage: - get flood.max.advert - set flood.max.advert Parameters: - value : Maximum flood hop count (0-64) for an advert packet Default: 8 ACL Add, update or remove permissions for a companion Usage: - setperm Parameters: - pubkey : Companion public key - permissions : - 0 : Guest - 1 : Read-only - 2 : Read-write - 3 : Admin Note: Removes the entry when permissions is omitted View the current ACL Usage: - get acl Serial Only: Yes View or change this room server's 'read-only' flag Usage: - get allow.read.only - set allow.read.only Parameters: - state : on (enable) or off (disable) Default: off Region Management (v1.10.+) Bulk-load region lists Usage: - region load - region load [flood_flag] Parameters: - name : A name of a region. * represents the wildcard region Note: flood_flag : Optional F to allow flooding Note: Indentation creates parent-child relationships (max 8 levels) Note: region load with an empty name will not work remotely (it's interactive) Save any changes to regions made since reboot Usage: - region save Allow a region Usage: - region allowf Parameters: - name : Region name (or * for wildcard) Note: Setting on wildcard * allows packets without region transport codes Block a region Usage: - region denyf Parameters: - name : Region name (or * for wildcard) Note: Setting on wildcard * drops packets without region transport codes Show information for a region Usage: - region get Parameters: - name : Region name (or * for wildcard) View or change the home region for this node Usage: - region home - region home Parameters: - name : Region name View or change the default scope region for this node Usage: - region default - region default {name|} Parameters: - name : Region name, or to reset/clear Create a new region Usage: - region put [parent_name] Parameters: - name : Region name - parent_name : Parent region name (optional, defaults to wildcard) Define region hierarchy (single line) Usage: - region def [ ...] Parameters (tokens): Space-separated. A logical cursor starts at the wildcard * . name \u2014 Create name as a child of the current cursor (equivalent to region put name with the cursor as parent). Cursor moves to name . name|jump (or name,jump ) \u2014 Create name as a child of the current cursor, then move the cursor to jump (must already exist on the node, or have been created earlier in this command). jump is not the parent of name ; use this form to pop back up and start another branch. Behavior: Each created region defaults to flood-allowed (same as region put ). The reply is the resulting region tree (same format as bare region ); review it before running region save to persist. On error, the reply is Err - ... and any regions placed before the failure remain on the node, just like a partial chain of region put . Existing regions: region def does not clear the existing tree \u2014 if a name already exists, its parent is updated to the current cursor; otherwise a new region is created. To start from scratch, region remove the unwanted regions first. Limits: Repeater serial accepts one line up to 160 characters . For larger trees, split across multiple region def commands; the cursor resets to * between commands, so lead the next command with child|ancestor to reposition. Each token splits at most once on | \u2014 region def a|b|c|d is not a flat-list shorthand; see the flat-list example below. Example \u2014 linear chain (each token becomes a child of the previous): region def a b c d e region save Example \u2014 branched tree (equivalent to region put a , region put b a , region put c b , region put d c , region put e b , region put f e ): region def a b c d|b e f region save Example \u2014 error and partial state: region def a b c|nope d The reply is Err - unknown jump: nope . a , b , and c were placed before the failure; d was not. Run region to inspect, then re-run with a corrected jump or repair with region remove / region put . Example \u2014 flat list (each region a child of * ). Use |* after each token to pop the cursor back to the root before the next token: region def a|* b|* c|* d|* e|* f region save Remove a region Usage: - region remove Parameters: - name : Region name Note: Must remove all child regions before the region can be removed View all regions Usage: - region list Serial Only: Yes Parameters: - filter : allowed | denied Note: Requires firmware 1.12+ Dump all defined regions and flood permissions Usage: - region Serial Only: For firmware older than 1.12.0 Region Examples Example 1: Using F Flag with Named Public Region region load #Europe F region save Explanation: - Creates a region named #Europe with flooding enabled - Packets from this region will be flooded to other nodes Example 2: Using Wildcard with F Flag region load * F region save Explanation: - Creates a wildcard region * with flooding enabled - Enables flooding for all regions automatically - Applies only to packets without transport codes Example 3: Using Wildcard Without F Flag region load * region save Explanation: - Creates a wildcard region * without flooding - This region exists but doesn't affect packet distribution - Used as a default/empty region Example 4: Nested Public Region with F Flag region load #Europe F #UK #London #Manchester #France #Paris #Lyon region save Explanation: - Creates #Europe region with flooding enabled - Adds nested child regions ( #UK , #France ) - All nested regions inherit the flooding flag from parent Example 5: Wildcard with Nested Public Regions region load * F #NorthAmerica #USA #NewYork #California #Canada #Ontario #Quebec region save Explanation: - Creates wildcard region * with flooding enabled - Adds nested #NorthAmerica hierarchy - Enables flooding for all child regions automatically - Useful for global networks with specific regional rules GPS (When GPS support is compiled in) View GPS state Usage: - gps Note: Reports the requested state, receiver activity, last-fix status (last fix gives number of sats and how long ago was the fix), and mode. In periodic mode, waiting means the receiver is off between acquisitions; the last fix remains available. off(hw) means a hardware GPS switch is off. Change GPS state Usage: - gps Parameters: - state : on | off | duty Default: off Note: In duty-cycle mode gps answers duty, {awake|asleep}, {fix|no fix}, {sat count} sats . meshcore-tth addition: gps duty powers the receiver only around a clock sync and cuts it in between. It is meant for a node that runs GPS purely to keep its (volatile) RTC set \u2014 a mast or solar repeater \u2014 where a receiver drawing tens of mA continuously dwarfs the rest of the power budget. Unlike gps period , every attempt is capped even before the first fix ever, so a node that never sees the sky does not keep the receiver powered. It sets gps period to 0. The position still comes from prefs (see set advert.loc ), so duty mode does not affect what a repeater advertises. gps on / gps off leave duty mode. Build-time knobs: GPS_DUTY_SYNC_INTERVAL_SECS (86400), GPS_DUTY_MAX_AWAKE_SECS (300, the cap on one attempt) and GPS_DUTY_RETRY_SECS (21600, backoff after a window with no fix). View or change the GPS acquisition period Usage: - gps period - gps period Parameters: - value : 0 for continuous tracking, or a period. The value can be postfixed with s , m , h or d to specify the unit (seconds by default). Note: A periodic acquisition stops after receiving a valid fix, then resumes after the configured period. Without a fix it stops after 5 minutes ( GPS_PERIODIC_ACQUISITION_TIMEOUT_MS ), or, until the first fix since boot, after the first fix timeout (see gps firstfix ). View or change the first fix timeout Usage: - gps firstfix - gps firstfix Parameters: - value : 0 for no limit, or a duration up to 1d . The value can be postfixed with s , m , h or d to specify the unit (seconds by default). Default: 1h ( GPS_FIRST_FIX_TIMEOUT_MS ) Note: In periodic mode, limits an acquisition until the first valid fix since boot. A cold start can take much longer than the usual 5 minutes with a weak sky view; after the limit the GPS sleeps for the period and tries again. Saved with the other GPS settings. View the last GPS fix Usage: - gps fix Output: - > Fix (n sat): , : the GPS currently has a fix. - > Last fix ago (n sat)[, acq