diff --git a/404.html b/404.html index bdcf462e..cb78525d 100644 --- a/404.html +++ b/404.html @@ -96,15 +96,15 @@
  • - O forku + About the fork
  • - - English + + Česky
  • @@ -140,7 +140,7 @@ - O forku + About the fork @@ -153,7 +153,7 @@ - English + Česky @@ -196,7 +196,7 @@ - Příkazy konzole · console commands + Console commands @@ -212,7 +212,7 @@ - Aktualizace od admina · OTA + Firmware update by the admin (OTA) @@ -228,7 +228,7 @@ - Napájení · power + Power saving @@ -244,7 +244,7 @@ - Budka jako senzor · Budka sensor + Budka as a sensor @@ -260,7 +260,7 @@ - Koexistence BLE/LoRa + BLE/LoRa coexistence diff --git a/ble-lora-coexistence/index.html b/ble-lora-coexistence/index.html index a1ddf311..6d6a74d8 100644 --- a/ble-lora-coexistence/index.html +++ b/ble-lora-coexistence/index.html @@ -20,7 +20,7 @@ -Koexistence BLE/LoRa - MeshCore TTH +BLE/LoRa coexistence - MeshCore TTH @@ -100,15 +100,15 @@
  • - O forku + About the fork
  • - - English + + Česky
  • @@ -144,7 +144,7 @@ - O forku + About the fork @@ -157,7 +157,7 @@ - English + Česky @@ -196,7 +196,7 @@ - Příkazy konzole · console commands + Console commands @@ -212,7 +212,7 @@ - Aktualizace od admina · OTA + Firmware update by the admin (OTA) @@ -228,7 +228,7 @@ - Napájení · power + Power saving @@ -244,7 +244,7 @@ - Budka jako senzor · Budka sensor + Budka as a sensor @@ -259,7 +259,7 @@
  • - Koexistence BLE/LoRa + BLE/LoRa coexistence
  • diff --git a/budka-sensor/index.html b/budka-sensor/index.html index c82c2c92..512bbc96 100644 --- a/budka-sensor/index.html +++ b/budka-sensor/index.html @@ -20,7 +20,7 @@ -Budka jako senzor · Budka sensor - MeshCore TTH +Budka as a sensor - MeshCore TTH @@ -100,15 +100,15 @@
  • - O forku + About the fork
  • - - English + + Česky
  • @@ -144,7 +144,7 @@ - O forku + About the fork @@ -157,7 +157,7 @@ - English + Česky @@ -196,7 +196,7 @@ - Příkazy konzole · console commands + Console commands @@ -212,7 +212,7 @@ - Aktualizace od admina · OTA + Firmware update by the admin (OTA) @@ -228,7 +228,7 @@ - Napájení · power + Power saving @@ -243,7 +243,7 @@
  • - Budka jako senzor · Budka sensor + Budka as a sensor
  • @@ -258,7 +258,7 @@ - Koexistence BLE/LoRa + BLE/LoRa coexistence diff --git a/cli_commands/index.html b/cli_commands/index.html index 60c56723..a7ef6e09 100644 --- a/cli_commands/index.html +++ b/cli_commands/index.html @@ -100,15 +100,15 @@
  • - O forku + About the fork
  • - - English + + Česky
  • @@ -144,7 +144,7 @@ - O forku + About the fork @@ -157,7 +157,7 @@ - English + Česky @@ -200,7 +200,7 @@ - Příkazy konzole · console commands + Console commands @@ -216,7 +216,7 @@ - Aktualizace od admina · OTA + Firmware update by the admin (OTA) @@ -232,7 +232,7 @@ - Napájení · power + Power saving @@ -248,7 +248,7 @@ - Budka jako senzor · Budka sensor + Budka as a sensor @@ -264,7 +264,7 @@ - Koexistence BLE/LoRa + BLE/LoRa coexistence diff --git a/companion_cli/index.html b/companion_cli/index.html index 981a5827..b76c7d6f 100644 --- a/companion_cli/index.html +++ b/companion_cli/index.html @@ -100,15 +100,15 @@
  • - O forku + About the fork
  • - - English + + Česky
  • @@ -144,7 +144,7 @@ - O forku + About the fork @@ -157,7 +157,7 @@ - English + Česky @@ -200,7 +200,7 @@ - Příkazy konzole · console commands + Console commands @@ -216,7 +216,7 @@ - Aktualizace od admina · OTA + Firmware update by the admin (OTA) @@ -232,7 +232,7 @@ - Napájení · power + Power saving @@ -248,7 +248,7 @@ - Budka jako senzor · Budka sensor + Budka as a sensor @@ -264,7 +264,7 @@ - Koexistence BLE/LoRa + BLE/LoRa coexistence diff --git a/companion_protocol/index.html b/companion_protocol/index.html index 6657e22b..01b10127 100644 --- a/companion_protocol/index.html +++ b/companion_protocol/index.html @@ -100,15 +100,15 @@
  • - O forku + About the fork
  • - - English + + Česky
  • @@ -144,7 +144,7 @@ - O forku + About the fork @@ -157,7 +157,7 @@ - English + Česky @@ -200,7 +200,7 @@ - Příkazy konzole · console commands + Console commands @@ -216,7 +216,7 @@ - Aktualizace od admina · OTA + Firmware update by the admin (OTA) @@ -232,7 +232,7 @@ - Napájení · power + Power saving @@ -248,7 +248,7 @@ - Budka jako senzor · Budka sensor + Budka as a sensor @@ -264,7 +264,7 @@ - Koexistence BLE/LoRa + BLE/LoRa coexistence diff --git a/cs/index.html b/cs/index.html new file mode 100644 index 00000000..7ae14cb1 --- /dev/null +++ b/cs/index.html @@ -0,0 +1,889 @@ + + + + + + + + + + + + + + + + + + + + + + +Česky - MeshCore TTH + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    + + + +
    +
    + +
    +
    +
    +
    +

    O tomto forku (meshcore-tth)

    +

    English version -- experimental +firmware, not meant for regular users.

    +
    +

    Warning

    +

    Experimentální firmware – není určený pro běžné uživatele. Tenhle fork +i všechny jeho releasy jsou osobní vývojová větev pro uzly jedné malé sítě: +rolling release nad upstreamovou větví dev, sestavovaný automaticky +zhruba dvakrát denně, bez stabilního kanálu, bez podpory a vyzkoušený jen +na našich deskách. Může obsahovat chyby, které uzel vyřadí z provozu, +a vrátit ho pak jde jen s USB nebo BLE v ruce. Pro běžný provoz nahrajte +oficiální MeshCore (flasher.meshcore.io).

    +
    +

    Fork projektu meshcore-dev/MeshCore, +na kterém běží repeatery, senzory a testovací desky malé české sítě na CZ +meshi (869,432 MHz). Upstreamové větve main a dev se slučují automaticky +dvakrát denně; všechno níže je navíc nad nimi. Náš kód je ve zdrojácích +označený CUSTOM (TeTeHacko). Nic z toho nemění protokol na rádiu.

    +

    Repeater: antispam (všechno vypínatelné, nic z toho není v upstreamu)

    +

    Po nahrání je zapnutý jen FairnessLimiter, s limity se zhruba +dvojnásobnou rezervou nad 30 dní skutečného provozu CZ meshe: na kanál dávka +100 zpráv a pak jedna za 30 s, na odesílatele 150 a jedna za 10 s, na +původce advertu 30 a jeden za 10 min. Je to síť na utržené floody, ne kvóta; +fairness off ho vypne natrvalo. Okno na adverty, filtry a dry-run jsou +vypnuté, dokud je nezapnete.

    +
      +
    • FairnessLimiter – token buckety na přeposílané floody podle 1bajtových + identifikátorů, které jsou v paketu stejně v čitelné podobě (hash kanálu, + hash odesílatele, původce advertu). Port návrhu Beanowa + #1502, limity + přepočítané z 30 dní skutečného provozu CZ meshe. + fairness [on|off|grid|cap|refill]; přímo směrovaný provoz se neomezuje nikdy.
    • +
    • Okno na adverty podle původce – flood advert každého uzlu se přepošle + nejvýš jednou za N hodin (fairness advert <h>|clear), převzato + z AdvertLimiteru DutchMeshCore. + Míří na uzly, které advertují každou minutu.
    • +
    • Dry-run – fairness dryrun on započítá každý verdikt, ale přepošle + i tak; fairness air ukáže ušetřený (nebo ušetřitelný) airtime podle důvodu.
    • +
    • Filtr kanálů – na kanálech, jejichž klíč repeater zná (Public + a #hashtag kanály), přestane přeposílat zprávy uvedených jmen odesílatelů + (filter add|del|list). Jméno se dá podvrhnout: je to brzda na utrženého + bota, ne bezpečnost.
    • +
    • Blokace přeposílání podle hashe kanálu – filter hash add <hex> [s]: + bez klíče, takže funguje i na soukromých kanálech; příjem se nemění, jen + přeposílání. S s se kanál neodřízne, ale přiškrtí (jeden paket za s + sekund).
    • +
    • Limit stáří zprávy – filter age <min>|off (volitelné, 1–10080 min): + nepřeposílá skupinové zprávy na dešifrovaných kanálech, jejichž čas od + odesílatele je starší; bez nastavených hodin repeateru neplatí. Posuzuje + hodiny odesílatele, takže zahodí i companiony bez synchronizace času – + nastavuj ho na dny.
    • +
    • filter dryrun on započítá každý verdikt filter, ale přepošle i tak.
    • +
    +

    Diagnostika a provoz

    +

    Všechny příkazy forku, kde je který build má a výchozí hodnoty: +docs/tth-commands.md.

    +

    Repeater, room server i senzor (všechno s textovou konzolí) mají:

    +
      +
    • Watchdogy rádia. Hardwarový watchdog chytí jen zamrzlou smyčku; dva naše + uzly ale byly nalezeny hluché s běžící smyčkou a pomohl až restart.
    • +
    • set radio.silence <min> – hluchý přijímač: když se za <min> minut + nepohne čítač přijatých rámců (počítá se i rámec s chybou CRC), uzel + napřed znovu nahodí příjem, a když ani to nepomůže, restartuje se. Každý + takový restart zdvojnásobí práh pro příští start (až 16×), první přijatý + rámec ho vrátí, takže tiché místo neskončí ve smyčce restartů. Uloží se; + ve výchozím stavu vypnutý (0) – práh volte s rezervou nad nejdelší + běžné ticho na místě.
    • +
    • Zaseknuté vysílání (jen repeater): pakety čekají ve frontě a čítač + odeslaných se nehýbe → znovu nahodí rádio, pak restart. Prázdná fronta se + nepočítá. Zapnutý, 15 min (RADIO_TXSTALL_MIN); set radio.txstall + <min>|off platí jen do restartu.
    • +
    • get radio.reboots – kolik restartů watchdogy udělaly (přežije i výpadek + napájení); get boot – proč se deska naposledy resetovala a záznam + o hardfaultu (vypíše se i při startu).
    • +
    • dfu [uf2|serial|ota] – spolehlivý reboot do bootloaderu (jen z lokální + konzole); i2c – sken sběrnice.
    • +
    +

    Repeater navíc:

    +
      +
    • blink (rozbliká LED, i přes mesh – najdete uzel na stožáru), txpwr + (vysílací výkon do restartu, s verdiktem RadioLibu), čítače chyb vysílání + ve stavové odpovědi.
    • +
    • Jen observer varianty (*-observer): textová konzole přes BLE vedle USB, + ble on|off uložené přes reboot (RPT_BLE_DEFAULT_OFF: startuje vypnuté), + vlastní BLE PIN (ble pin), uložený vysílací výkon spojení (blepwr), + bleconn, neblokující BLE vysílání a parametry spojení, které vydrží i na + slabém linku.
    • +
    • Taky jen observer varianty: pasivní analyzátor v konzoli – nodes + (slyšené repeatery a roomy, klíč pro spojení více cest), rxlog (každý + slyšený rámec: typ, cesta, SNR, RSSI), pktlog (surové rámce pro feed + observeru), velké stránkované odpovědi.
    • +
    • Jen vlastní buildy, ne releasy:
    • +
    • kanálový bot (BOT_CHANNEL_PSK: !link, !path, !snr, !heard, + !noise, !ping, !help, výběr přes BOT_COMMANDS, cooldown na + odesílatele, ignore list) – odpovídá, aniž by přeposílal;
    • +
    • RADIO_DIAG: radiostat (stav přijímače SX1262 bez zásahu) a + radiokick rx|clrirq|standby|agc (jeden krok obnovy, od nejjemnějšího – + první, který pomůže, ukáže rozbitou vrstvu);
    • +
    • PIN_DIAG: dio1 (stav přerušení v čipu proti úrovni na pinu – který + konec mrtvé linky DIO1 je přerušený);
    • +
    • LORA_POLL_IRQ: provoz bez DIO1 pro desku s mrtvou linkou přerušení.
    • +
    +

    Opravy jádra

    +
      +
    • Ochrana proti přehrání admin příkazů přežije reboot. Upstream si + poslední timestamp klienta drží jen v RAM, takže po každém restartu projde + libovolný zachycený příkaz znovu – zachycený reboot uzel restartuje + pořád dokola. Repeater, room server i sensor ho teď zapíšou do flash dřív, + než příkaz provedou (/s_acl_ts0|1, střídavě s kontrolním součtem, takže + ho nesmaže ani výpadek napájení při zápisu). Timestamp víc než den před + hodinami uzlu (ACL_TS_MAX_AHEAD) se přijme, ale neuloží, aby companion + s rozhozenými hodinami nezamkl admina. Ukládá se jen u adminů: host smí + jen číst a s prázdným guest heslem se jím stane kdokoli, takže by každý + jeho dotaz znamenal zápis do flash. Klientů se to nijak netýká.
    • +
    • Hesla nejde hádat přes éter plnou rychlostí. Upstream kontroluje každý + login bez omezení a na špatné heslo ani neodpoví. Po 4 špatných heslech + během 3 minut (LOGIN_FAIL_MAX, LOGIN_FAIL_SECS) se hesla do konce okna + nekontrolují. Klient, který už je v ACL jako admin, projde vždy – login + jeho jménem nikdo jiný poslat nedokáže, takže útok adminy nezamkne.
    • +
    • Přehraný login bez hesla už nevyvolá flood odpověď. Login klienta z ACL + s prázdným heslem neměl ochranu proti přehrání; útočník tím nic nezískal, + ale každá kopie donutila uzel poslat odpověď floodem přes celý mesh.
    • +
    • TRACE už nepřipisuje cestu za konec payloadu; parsování TRACE/PATH + a Packet::readFrom hlídají meze.
    • +
    • markSeen je zase idempotentní (odesílací cesta ujídala okno deduplikace).
    • +
    • Záložní výpočet v calcMaxPacketMillis už nepodteče (uzel na tom ohluchl).
    • +
    • Šířka path hashe se bere z nastavení uzlu na všech cestách vysílání včetně + sendZeroHop; výchozí jsou 2bajtové path hashe (PATH_HASH_MODE_DEFAULT).
    • +
    • Nepovedené vysílání se zařadí znovu s odstupem, místo aby se zahodilo.
    • +
    • RSSI každého paketu se zaznamená při příjmu; ContactInfo se před + částečným vyplněním vynuluje.
    • +
    +

    Napájení, hodiny, GPS

    +
      +
    • GPS duty cycle (gps duty), i na T1000-E, kde nebyl: přijímač běží jen + kolem synchronizace hodin (jednou denně, po neúspěšném okně znovu za 6 h). + Dotaz na polohu přijímač probudí pro příští dotaz.
    • +
    • Uzel bez GPS startuje na čase sestavení firmwaru, ne v roce 2024; hodiny + a záznam o hardfaultu přežijí teplý reset (.noinit); clkreboot.
    • +
    • Na solárních uzlech žádná blikající LED a pomalejší BLE advertising.
    • +
    • Stav baterie jako ikona na konci advertovaného jména: set batt.icon on, + prahy set batt.icon.lo|hi <mV> (výchozí vypnuté; dlouhé jméno ikonu + nepojme a příkaz na to upozorní).
    • +
    • Volitelný RX duty cycle (set radio.rxps off|on|balanced|max, jemněji + level <1-10>; port PowerSaving z EasySkyMesh): SX1262 mezi krátkými okny + poslechu spí. Ve veřejných buildech je zabudovaný a vypnutý; max na + lavici ušetřil ~2,3 mA bez ztráty paketů (docs/power.md), + na ostrém meshi ale jeden náš stožár ztratil 16 % příjmu – zapínat s rozmyslem. Jen + SX1262, ne LR1110 (T1000-E).
    • +
    • Podpěťová pojistka při startu (PWRMGT_VOLTAGE_BOOTLOCK) je na nRF52 + vypnutá, stejně jako v upstreamu od v1.18.0 + (#2377): pevný práh + 3,3 V nepouštěl k životu uzly na LiFePO4 nebo LTO. Firmware tak naběhne na + jakékoli chemii článku; před hlubokým vybitím má chránit BMS nebo ochranná + destička článku. Konfigurovatelná pojistka podle chemie čeká na upstream + (#2088). Výjimkou je + SenseCap_Solar_repeater (Li-ion, naše stožáry): pojistka je zapnutá + a oba prahy jdou nastavit za běhu, i přes mesh jako admin – + set pwr.bootlock <mV>|off (výchozí 3300, pod ním uzel nenaběhne a spí, + dokud se článek nezotaví) a set pwr.cutoff <mV>|off (výchozí vypnuto, + pod ním se běžící uzel vypne); get pwr (docs/power.md).
    • +
    +

    Senzory a companiony

    +
      +
    • simple_sensor: telemetrie z externí stanice po UART + (BudkaLinkSensorManager, jeden LPP kanál na veličinu), sensor read.
    • +
    • Senzory, které jinak měří nepřetržitě (INA219, INA226, INA260, INA3221, + BMP280), mezi čteními telemetrie spí a měří jen na vyžádání (nápad a první + patch pro INA219: Alkel Brostl). Čipy INA se rozlišují podle ID, takže + INA226 už se nedetekuje jako INA219. Odpor bočníku se nastavuje za běhu + a ukládá se: sensor set ina.shunt <mΩ>.
    • +
    • Companion: gps duty přežije reboot, kopie data sestavení má hlídanou + délku. Export privátního klíče, čtení BLE PINu a jeho změna (i přes CLI + set pin) jdou jen přes spárované BLE, ne přes USB, UART ani WiFi/TCP, + a odpověď s klíčem či PINem jde jen tam, odkud přišel dotaz. (Merge v1.17 + tu kontrolu potichu vyřadil; build bez BLE bere své jediné rozhraní dál + jako důvěryhodné.) KISS modem: oprava o jedna vedle při zkracování jména.
    • +
    +

    Veřejné buildy: výchozí nastavení pro český mesh

    +

    Releasy z tohoto repozitáře (pub-release) jsou přednastavené pro český +mesh podle wiki meshcore.cz, takže čerstvě nahraný +uzel nepotřebuje obvyklé kolečko nastavování:

    +
      +
    • rádio 869,432 MHz / 62,5 kHz / SF7 / CR5 (všechny buildy);
    • +
    • repeater a room server: zero-hop advert vypnutý, flood advert každých 25 h, + duty cycle 10 % (get dutycycle → 10.0%; zastaralé af je 9);
    • +
    • repeater: regiony cz a cs vedle * – vlastní cz-<kraj> přidáš přes + region put cz-xxx cz + region save;
    • +
    • 2bajtové path hashe (výchozí v tomto forku);
    • +
    • repeater: filtr kanálů (filter add <jméno>) je zabudovaný pro Public, + #meshcore a #test, s prázdným seznamem – nedělá nic, dokud do něj + nepřidáš jméno.
    • +
    +

    Platí jen pro uzel bez uloženého nastavení (nový nebo po erase): nové +nahrání ponechá, co už uzel má, a regiony, které jsi smazal a uložil, +zůstanou smazané. Jméno a admin heslo si nastav sám.

    +

    BLE PIN companionu je veřejný 123456 (desky s displejem si losují +vlastní a ukážou ho). Kdo se s ním spáruje, má companion celý: zprávy, +kontakty, export privátního klíče. Po prvním spárování ho proto změň +v aplikaci. A s deskou v ruce nechrání nic ani PIN, ani heslo: flash není +zamčená a bootloader přijme jakýkoli firmware. Ztracený nebo ukradený uzel +ber jako vyzrazený – u repeateru změň admin heslo všude, kde bylo stejné, +a vyhoď jeho klíč z ACL; u companionu ber kanály, které na něm byly, jako +známé.

    +

    Varianty observer (*_repeater-observer-*) nRF52 repeaterů (XIAO, SenseCAP +Solar, RAK4631, T1000-E, Heltec T114) přidávají buffery nodes / rxlog / +pktlog a textovou konzoli přes BLE, aby šel repeater číst přes USB nebo BLE +(meshcore-repeater-observer). +BLE konzole je po nahrání vypnutá (RPT_BLE_DEFAULT_OFF). Nemá vlastní +přihlášení, jen BLE PIN, a PIN v buildu je veřejný zástupný 123456. Nejdřív +si proto nastav vlastní – v USB konzoli, nebo jako admin přes mesh (vzdálené +CLI v aplikaci): ble pin <6 číslic> (uloží se a přežije reboot i nové +nahrání; zároveň smaže všechny bondy, takže spárovaná zařízení se párují +znovu). Teprve pak ble on – dokud je PIN zástupný, tyhle buildy ho odmítnou. +ble ukáže, jestli je PIN own nebo build default, samotný PIN nikdy. +Releasy do tth-654d53f3 ble pin nemají: BLE tam nech vypnuté a používej USB.

    +

    Nahrání releasu

    +

    Každý release je automatický build nad upstreamovým dev (viz upozornění +nahoře), ne stabilní verze. Nahrávejte ho jen na uzly, na které dosáhnete, +a nový release vždy nejdřív na jeden z nich.

    +

    Soubory jsou v Releases. +Release se jmenuje podle upstreamové verze a data, např. +v1.18.0+tth.20261112 (druhý téhož dne .2), a v popisu má změny od +předchozího releasu. Pro každou desku a roli je jedna sada +(<deska>_<role>-<release>, např. Xiao_nrf52_repeater-v1.18.0+tth.20261112.zip): +.zip a .uf2 pro nRF52, .bin pro ESP32 (-merged.bin je celý obraz pro +prázdnou desku, obyčejný .bin aktualizace). Kontrolní součty jsou +v SHA256SUMS. Releasy do 12. 11. 2026 se jmenovaly tth-<sha>.

    +

    nRF52 (XIAO, RAK4631, SenseCAP Solar, T1000-E, T114) přes +webový flasher MeshCore – Chrome, Edge nebo +Chromium na počítači (Web Serial; ne Firefox ani Safari):

    +
      +
    1. Připoj desku přes USB.
    2. +
    3. Klikni na Custom Firmware a vyber .zip pro svou desku.
    4. +
    5. Klikni na Enter DFU mode a vyber sériový port desky. Deska se + restartuje do bootloaderu a objeví se jako nový port.
    6. +
    7. Klikni na Flash! a vyber ten nový port. Zhruba 30 s, pak se deska + restartuje do nového firmwaru.
    8. +
    9. Console ve flasheru (nebo jakýkoli sériový terminál, 115200) ověří + výsledek: ver ukáže v1.xx.x-tth<sha>, stejně jako řádek „Verze v uzlu“ + v popisu releasu.
    10. +
    +

    Neklikej na Erase Flash, pokud nechceš nový uzel: smaže identitu (klíč +uzlu a všechno, co ho zná) i veškeré nastavení. Obyčejné nahrání je zachová.

    +

    Vyzkoušeno na XIAO (repeater-observer, 3. 11. 2026). ESP32 .bin přes stejné +tlačítko Custom Firmware tu vyzkoušené není.

    +

    Bez webového flasheru: na většině desek otevře dvojí stisk resetu bootloader +jako USB disk; zkopíruj na něj .uf2. Nebo +adafruit-nrfutil dfu serial -pkg <soubor>.zip -p <port> -b 115200 s deskou +v bootloaderu.

    +

    Nový uzel po nahrání nastav v konzoli: set name <jméno>, +password <admin heslo> (nejvýš 15 znaků), vlastní region přes +region put cz-<kraj> cz + region save. Repeater přeposílá od prvního +startu (výchozí v upstreamu) a tyhle buildy jsou na ostré CZ frekvenci: na +stole bez antény dej set repeat off, dokud není na místě.

    +

    Experimentální: aktualizace firmwaru od admina (*-ota)

    +

    Každý nRF52 build s textovou konzolí (repeater, observer, room server, +senzor) je v releasu ještě jednou jako experimentální *-ota / +*-observer-ota. Ten umí přijmout nový firmware od admina příkazy fw …: +v USB nebo BLE konzoli, nebo přes mesh jako vzdálené admin CLI. Bez změny +bootloaderu a bez druhé banky: uzel si balíček uloží do volné flash, +zkontroluje ho celý (podpis, hashe, nanečisto provedená delta) a přepíše se +až na fw apply, rutinou běžící z RAM. Když během přepisu vypadne napájení, +zůstane v bootloaderu a vrátí se přes USB/BLE DFU.

    +
      +
    • V releasu je ke každému *-ota obrazu plný balíček + <deska>_<role>-ota-<release>.mcfw (jen přes USB/BLE) a delta + ….from-<starší release>.mcfw od každého drženého předchozího releasu, + typicky jednotky kB.
    • +
    • Přes mesh uzel přijme jen deltu, a nikdy ne starší verzi, než má – + vynucuje to uzel, ne nástroj. Plný obraz nebo návrat ke starší verzi jen + lokálně (fw apply downgrade). fw apply čeká na baterii ≥ 3,8 V, pokud + uzel neběží z USB.
    • +
    • Balíčky i SHA256SUMS jsou podepsané klíčem meshcore-ota@tth-pub + a *-ota obraz jiný podpis nepřijme. Ověření stažených souborů: + ssh-keygen -Y verify -f tools/ota_allowed_signers -I meshcore-ota@tth-pub + -n meshcore-ota -s SHA256SUMS.sig < SHA256SUMS. Vlastní build s vlastním + klíčem: [ota] pubkey v platformio.local.ini.
    • +
    • První *-ota obraz se nahraje obyčejně (viz výše), další už jako delta. + Nástroje: tools/ota_push.py (USB), tools/ota_mesh_push.py (přes mesh + skrz companion; potřebuje pythonovou knihovnu meshcore, admin heslo bere + z [secrets] admin_pw v platformio.local.ini; s --side jde přenos po + vedlejším kanálu mimo sdílený mesh), tools/ota_pack.py info. Přenos samotný + je OTA engine kolekce + tth.meshcore (modul + meshcore_fw_ota), stejný kód pro nástroje i Ansible. Z telefonu: fork + aplikace meshcore-open, správa + repeateru → Firmware update (OTA), deltu si najde v releasu sám. + Postup a čísla: docs/ota.md.
    • +
    • Experimentální i v rámci tohoto forku: obrazy přicházejí s každým + releasem (viz upozornění nahoře) a nemají druhou banku ani automatický + návrat. Vadný firmware, který nabootuje, běží, dokud nepošlete další; + takový, který nenabootuje, chce USB/BLE DFU v ruce. Vyzkoušeno na lavici + (XIAO, USB, mesh, vedlejší kanál) a od 13. 11. 2026 na dvou našich + stožárech. Proti obrazu, který nabootuje s mrtvým rádiem, jsou watchdogy + rádia (viz Diagnostika a provoz): pro uzly, kam posíláte OTA, zapněte + set radio.silence. Stojí ~10 kB RAM navíc.
    • +
    +

    Sestavení

    +
      +
    • Razítko verze v každém nRF52 envu (v1.18.0-tth<sha>, + = neuklizený + strom), základní verze z upstreamového tagu (tools/build_version.py).
    • +
    • tools/: nástroje na uzly – konzole (USB, BLE), flashování, testy na + lavici, diagnostika (tools/README.md). Desky podle jména + bere z lokálního configu mimo repo (tools/config.example.ini).
    • +
    • hardware/cavity-box: parametrická krabička pro dutinový filtr na stožár.
    • +
    +
    +
    + +
    +
    +
    +
    + + + + + + + + \ No newline at end of file diff --git a/en/index.html b/en/index.html deleted file mode 100644 index b78511c8..00000000 --- a/en/index.html +++ /dev/null @@ -1,894 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -English - MeshCore TTH - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - -
    -
    - -
    -
    -
    -
    -

    About this fork (meshcore-tth)

    -

    Česká verze výše.

    -
    -

    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.

    -

    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 [on|off|grid|cap|refill]; direct-routed traffic is never limited.
    • -
    • Per-origin advert window -- each node's flood advert forwarded at most - once per N hours (fairness advert <h>|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|del|list). Names are spoofable: it contains a runaway bot, - it is not security.
    • -
    • Channel-hash deny-forward -- filter hash add <hex> [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 <min>|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 <min> -- deaf receiver: when the received-frame - counter does not move for <min> 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 - <min>|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 on|off 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 rx|clrirq|standby|agc (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|hi <mV> (off by default; a long name has - no room for it and the command says so).
    • -
    • Optional RX duty cycle (set radio.rxps off|on|balanced|max, finer - 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 <mV>|off (default 3300; below it the node does not start - and sleeps until the cell recovers) and set pwr.cutoff <mV>|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 is set at runtime - and saved: sensor set ina.shunt <mOhm>.
    • -
    • 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 → 10.0%; the deprecated af reads 9);
    • -
    • repeater: regions cz and cs next to * -- add your own cz-<kraj> - with region put cz-xxx cz + region save;
    • -
    • 2-byte path hashes (this fork's default);
    • -
    • repeater: the channel filter (filter add <name>) 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 -(<board>_<role>-<release>, 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-<sha>.

    -

    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):

    -
      -
    1. Connect the board over USB.
    2. -
    3. Click Custom Firmware and choose the .zip for your board.
    4. -
    5. Click Enter DFU mode and pick the board's serial port. The board - restarts into its bootloader and shows up as a new port.
    6. -
    7. Click Flash! and pick that new port. About 30 s, then the board - restarts into the new firmware.
    8. -
    9. Console in the flasher (or any serial terminal, 115200) checks the - result: ver shows v1.xx.x-tth<sha>, the same as the "Verze v uzlu" - (node version) line in the release notes.
    10. -
    -

    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 <file>.zip -p <port> -b 115200 with the -board in the bootloader.

    -

    After flashing a new node, set it up in the console: set name <name>, -password <admin password> (at most 15 characters), your own region with -region put cz-<kraj> 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 … 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 - <board>_<role>-ota-<release>.mcfw (USB/BLE only) and a delta - ….from-<earlier release>.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 → 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<sha>, + = 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íže je README upstreamového MeshCore. Jeho flasher, klienti a návody se -týkají oficiálního firmwaru, ne releasů tohoto forku. / Below is upstream -MeshCore's README: its flasher, clients and guides refer to the official -firmware, not to this fork's releases.

    -
    - -
    -
    -
    -
    - - - - - - - - \ No newline at end of file diff --git a/faq/index.html b/faq/index.html index 49b75ad9..2cb2a139 100644 --- a/faq/index.html +++ b/faq/index.html @@ -100,15 +100,15 @@
  • - O forku + About the fork
  • - - English + + Česky
  • @@ -144,7 +144,7 @@ - O forku + About the fork @@ -157,7 +157,7 @@ - English + Česky @@ -200,7 +200,7 @@ - Příkazy konzole · console commands + Console commands @@ -216,7 +216,7 @@ - Aktualizace od admina · OTA + Firmware update by the admin (OTA) @@ -232,7 +232,7 @@ - Napájení · power + Power saving @@ -248,7 +248,7 @@ - Budka jako senzor · Budka sensor + Budka as a sensor @@ -264,7 +264,7 @@ - Koexistence BLE/LoRa + BLE/LoRa coexistence diff --git a/index.html b/index.html index 4fb909ec..3d1059c3 100644 --- a/index.html +++ b/index.html @@ -20,7 +20,7 @@ -O forku - MeshCore TTH +About the fork - MeshCore TTH @@ -100,15 +100,15 @@
  • - O forku + About the fork
  • - - English + + Česky
  • @@ -143,7 +143,7 @@ - O forku + About the fork @@ -155,7 +155,7 @@ - English + Česky @@ -198,7 +198,7 @@ - Příkazy konzole · console commands + Console commands @@ -214,7 +214,7 @@ - Aktualizace od admina · OTA + Firmware update by the admin (OTA) @@ -230,7 +230,7 @@ - Napájení · power + Power saving @@ -246,7 +246,7 @@ - Budka jako senzor · Budka sensor + Budka as a sensor @@ -262,7 +262,7 @@ - Koexistence BLE/LoRa + BLE/LoRa coexistence @@ -532,321 +532,326 @@
    -

    O tomto forku (meshcore-tth)

    -

    English version below -- experimental -firmware, not meant for regular users.

    +

    About this fork (meshcore-tth)

    +

    Česká verze.

    Warning

    -

    Experimentální firmware – není určený pro běžné uživatele. Tenhle fork -i všechny jeho releasy jsou osobní vývojová větev pro uzly jedné malé sítě: -rolling release nad upstreamovou větví dev, sestavovaný automaticky -zhruba dvakrát denně, bez stabilního kanálu, bez podpory a vyzkoušený jen -na našich deskách. Může obsahovat chyby, které uzel vyřadí z provozu, -a vrátit ho pak jde jen s USB nebo BLE v ruce. Pro běžný provoz nahrajte -oficiální MeshCore (flasher.meshcore.io).

    +

    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).

    -

    Fork projektu meshcore-dev/MeshCore, -na kterém běží repeatery, senzory a testovací desky malé české sítě na CZ -meshi (869,432 MHz). Upstreamové větve main a dev se slučují automaticky -dvakrát denně; všechno níže je navíc nad nimi. Náš kód je ve zdrojácích -označený CUSTOM (TeTeHacko). Nic z toho nemění protokol na rádiu.

    -

    Repeater: antispam (všechno vypínatelné, nic z toho není v upstreamu)

    -

    Po nahrání je zapnutý jen FairnessLimiter, s limity se zhruba -dvojnásobnou rezervou nad 30 dní skutečného provozu CZ meshe: na kanál dávka -100 zpráv a pak jedna za 30 s, na odesílatele 150 a jedna za 10 s, na -původce advertu 30 a jeden za 10 min. Je to síť na utržené floody, ne kvóta; -fairness off ho vypne natrvalo. Okno na adverty, filtry a dry-run jsou -vypnuté, dokud je nezapnete.

    +

    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.

    +

    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.

    -

    Diagnostika a provoz

    -

    Všechny příkazy forku, kde je který build má a výchozí hodnoty: +

    Diagnostics and operations

    +

    Every command of the fork, which builds have it and the defaults: docs/tth-commands.md.

    -

    Repeater, room server i senzor (všechno s textovou konzolí) mají:

    +

    Repeater, room server and sensor (everything with a text console) have:

    -

    Repeater navíc:

    +

    The repeater also has:

    -

    Opravy jádra

    +

    Core fixes

    -

    Napájení, hodiny, GPS

    +

    Power, clock, GPS

    -

    Senzory a companiony

    +

    Sensors and companions

    -

    Veřejné buildy: výchozí nastavení pro český mesh

    -

    Releasy z tohoto repozitáře (pub-release) jsou přednastavené pro český -mesh podle wiki meshcore.cz, takže čerstvě nahraný -uzel nepotřebuje obvyklé kolečko nastavování:

    +

    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:

    -

    Platí jen pro uzel bez uloženého nastavení (nový nebo po erase): nové -nahrání ponechá, co už uzel má, a regiony, které jsi smazal a uložil, -zůstanou smazané. Jméno a admin heslo si nastav sám.

    -

    BLE PIN companionu je veřejný 123456 (desky s displejem si losují -vlastní a ukážou ho). Kdo se s ním spáruje, má companion celý: zprávy, -kontakty, export privátního klíče. Po prvním spárování ho proto změň -v aplikaci. A s deskou v ruce nechrání nic ani PIN, ani heslo: flash není -zamčená a bootloader přijme jakýkoli firmware. Ztracený nebo ukradený uzel -ber jako vyzrazený – u repeateru změň admin heslo všude, kde bylo stejné, -a vyhoď jeho klíč z ACL; u companionu ber kanály, které na něm byly, jako -známé.

    -

    Varianty observer (*_repeater-observer-*) nRF52 repeaterů (XIAO, SenseCAP -Solar, RAK4631, T1000-E, Heltec T114) přidávají buffery nodes / rxlog / -pktlog a textovou konzoli přes BLE, aby šel repeater číst přes USB nebo BLE -(meshcore-repeater-observer). -BLE konzole je po nahrání vypnutá (RPT_BLE_DEFAULT_OFF). Nemá vlastní -přihlášení, jen BLE PIN, a PIN v buildu je veřejný zástupný 123456. Nejdřív -si proto nastav vlastní – v USB konzoli, nebo jako admin přes mesh (vzdálené -CLI v aplikaci): ble pin <6 číslic> (uloží se a přežije reboot i nové -nahrání; zároveň smaže všechny bondy, takže spárovaná zařízení se párují -znovu). Teprve pak ble on – dokud je PIN zástupný, tyhle buildy ho odmítnou. -ble ukáže, jestli je PIN own nebo build default, samotný PIN nikdy. -Releasy do tth-654d53f3 ble pin nemají: BLE tam nech vypnuté a používej USB.

    -

    Nahrání releasu

    -

    Každý release je automatický build nad upstreamovým dev (viz upozornění -nahoře), ne stabilní verze. Nahrávejte ho jen na uzly, na které dosáhnete, -a nový release vždy nejdřív na jeden z nich.

    -

    Soubory jsou v Releases. -Release se jmenuje podle upstreamové verze a data, např. -v1.18.0+tth.20261112 (druhý téhož dne .2), a v popisu má změny od -předchozího releasu. Pro každou desku a roli je jedna sada -(<deska>_<role>-<release>, např. Xiao_nrf52_repeater-v1.18.0+tth.20261112.zip): -.zip a .uf2 pro nRF52, .bin pro ESP32 (-merged.bin je celý obraz pro -prázdnou desku, obyčejný .bin aktualizace). Kontrolní součty jsou -v SHA256SUMS. Releasy do 12. 11. 2026 se jmenovaly tth-<sha>.

    -

    nRF52 (XIAO, RAK4631, SenseCAP Solar, T1000-E, T114) přes -webový flasher MeshCore – Chrome, Edge nebo -Chromium na počítači (Web Serial; ne Firefox ani Safari):

    +

    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 +(<board>_<role>-<release>, 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-<sha>.

    +

    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):

      -
    1. Připoj desku přes USB.
    2. -
    3. Klikni na Custom Firmware a vyber .zip pro svou desku.
    4. -
    5. Klikni na Enter DFU mode a vyber sériový port desky. Deska se - restartuje do bootloaderu a objeví se jako nový port.
    6. -
    7. Klikni na Flash! a vyber ten nový port. Zhruba 30 s, pak se deska - restartuje do nového firmwaru.
    8. -
    9. Console ve flasheru (nebo jakýkoli sériový terminál, 115200) ověří - výsledek: ver ukáže v1.xx.x-tth<sha>, stejně jako řádek „Verze v uzlu“ - v popisu releasu.
    10. +
    11. Connect the board over USB.
    12. +
    13. Click Custom Firmware and choose the .zip for your board.
    14. +
    15. Click Enter DFU mode and pick the board's serial port. The board + restarts into its bootloader and shows up as a new port.
    16. +
    17. Click Flash! and pick that new port. About 30 s, then the board + restarts into the new firmware.
    18. +
    19. Console in the flasher (or any serial terminal, 115200) checks the + result: ver shows v1.xx.x-tth<sha>, the same as the "Verze v uzlu" + (node version) line in the release notes.
    -

    Neklikej na Erase Flash, pokud nechceš nový uzel: smaže identitu (klíč -uzlu a všechno, co ho zná) i veškeré nastavení. Obyčejné nahrání je zachová.

    -

    Vyzkoušeno na XIAO (repeater-observer, 3. 11. 2026). ESP32 .bin přes stejné -tlačítko Custom Firmware tu vyzkoušené není.

    -

    Bez webového flasheru: na většině desek otevře dvojí stisk resetu bootloader -jako USB disk; zkopíruj na něj .uf2. Nebo -adafruit-nrfutil dfu serial -pkg <soubor>.zip -p <port> -b 115200 s deskou -v bootloaderu.

    -

    Nový uzel po nahrání nastav v konzoli: set name <jméno>, -password <admin heslo> (nejvýš 15 znaků), vlastní region přes -region put cz-<kraj> cz + region save. Repeater přeposílá od prvního -startu (výchozí v upstreamu) a tyhle buildy jsou na ostré CZ frekvenci: na -stole bez antény dej set repeat off, dokud není na místě.

    -

    Experimentální: aktualizace firmwaru od admina (*-ota)

    -

    Každý nRF52 build s textovou konzolí (repeater, observer, room server, -senzor) je v releasu ještě jednou jako experimentální *-ota / -*-observer-ota. Ten umí přijmout nový firmware od admina příkazy fw …: -v USB nebo BLE konzoli, nebo přes mesh jako vzdálené admin CLI. Bez změny -bootloaderu a bez druhé banky: uzel si balíček uloží do volné flash, -zkontroluje ho celý (podpis, hashe, nanečisto provedená delta) a přepíše se -až na fw apply, rutinou běžící z RAM. Když během přepisu vypadne napájení, -zůstane v bootloaderu a vrátí se přes USB/BLE DFU.

    +

    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 <file>.zip -p <port> -b 115200 with the +board in the bootloader.

    +

    After flashing a new node, set it up in the console: set name <name>, +password <admin password> (at most 15 characters), your own region with +region put cz-<kraj> 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 … 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.

    -

    Sestavení

    +

    Build


    +

    Níže je README upstreamového MeshCore. Jeho flasher, klienti a návody se +týkají oficiálního firmwaru, ne releasů tohoto forku. / Below is upstream +MeshCore's README: its flasher, clients and guides refer to the official +firmware, not to this fork's releases.

    diff --git a/kiss_modem_protocol/index.html b/kiss_modem_protocol/index.html index 4406e2e2..d2610641 100644 --- a/kiss_modem_protocol/index.html +++ b/kiss_modem_protocol/index.html @@ -100,15 +100,15 @@
  • - O forku + About the fork
  • - - English + + Česky
  • @@ -144,7 +144,7 @@ - O forku + About the fork @@ -157,7 +157,7 @@ - English + Česky @@ -200,7 +200,7 @@ - Příkazy konzole · console commands + Console commands @@ -216,7 +216,7 @@ - Aktualizace od admina · OTA + Firmware update by the admin (OTA) @@ -232,7 +232,7 @@ - Napájení · power + Power saving @@ -248,7 +248,7 @@ - Budka jako senzor · Budka sensor + Budka as a sensor @@ -264,7 +264,7 @@ - Koexistence BLE/LoRa + BLE/LoRa coexistence diff --git a/meshcore/index.html b/meshcore/index.html index 4d27ea91..ec305af2 100644 --- a/meshcore/index.html +++ b/meshcore/index.html @@ -100,15 +100,15 @@
  • - O forku + About the fork
  • - - English + + Česky
  • @@ -144,7 +144,7 @@ - O forku + About the fork @@ -157,7 +157,7 @@ - English + Česky @@ -200,7 +200,7 @@ - Příkazy konzole · console commands + Console commands @@ -216,7 +216,7 @@ - Aktualizace od admina · OTA + Firmware update by the admin (OTA) @@ -232,7 +232,7 @@ - Napájení · power + Power saving @@ -248,7 +248,7 @@ - Budka jako senzor · Budka sensor + Budka as a sensor @@ -264,7 +264,7 @@ - Koexistence BLE/LoRa + BLE/LoRa coexistence diff --git a/nrf52_power_management/index.html b/nrf52_power_management/index.html index f74d2672..fa57be64 100644 --- a/nrf52_power_management/index.html +++ b/nrf52_power_management/index.html @@ -100,15 +100,15 @@
  • - O forku + About the fork
  • - - English + + Česky
  • @@ -144,7 +144,7 @@ - O forku + About the fork @@ -157,7 +157,7 @@ - English + Česky @@ -200,7 +200,7 @@ - Příkazy konzole · console commands + Console commands @@ -216,7 +216,7 @@ - Aktualizace od admina · OTA + Firmware update by the admin (OTA) @@ -232,7 +232,7 @@ - Napájení · power + Power saving @@ -248,7 +248,7 @@ - Budka jako senzor · Budka sensor + Budka as a sensor @@ -264,7 +264,7 @@ - Koexistence BLE/LoRa + BLE/LoRa coexistence diff --git a/number_allocations/index.html b/number_allocations/index.html index 62efdd02..b10ec290 100644 --- a/number_allocations/index.html +++ b/number_allocations/index.html @@ -100,15 +100,15 @@
  • - O forku + About the fork
  • - - English + + Česky
  • @@ -144,7 +144,7 @@ - O forku + About the fork @@ -157,7 +157,7 @@ - English + Česky @@ -200,7 +200,7 @@ - Příkazy konzole · console commands + Console commands @@ -216,7 +216,7 @@ - Aktualizace od admina · OTA + Firmware update by the admin (OTA) @@ -232,7 +232,7 @@ - Napájení · power + Power saving @@ -248,7 +248,7 @@ - Budka jako senzor · Budka sensor + Budka as a sensor @@ -264,7 +264,7 @@ - Koexistence BLE/LoRa + BLE/LoRa coexistence diff --git a/ota/index.html b/ota/index.html index fccab33d..66a97ff6 100644 --- a/ota/index.html +++ b/ota/index.html @@ -20,7 +20,7 @@ -Aktualizace od admina · OTA - MeshCore TTH +Firmware update by the admin (OTA) - MeshCore TTH @@ -100,15 +100,15 @@
  • - O forku + About the fork
  • - - English + + Česky
  • @@ -144,7 +144,7 @@ - O forku + About the fork @@ -157,7 +157,7 @@ - English + Česky @@ -196,7 +196,7 @@ - Příkazy konzole · console commands + Console commands @@ -211,7 +211,7 @@
  • - Aktualizace od admina · OTA + Firmware update by the admin (OTA)
  • @@ -226,7 +226,7 @@ - Napájení · power + Power saving @@ -242,7 +242,7 @@ - Budka jako senzor · Budka sensor + Budka as a sensor @@ -258,7 +258,7 @@ - Koexistence BLE/LoRa + BLE/LoRa coexistence diff --git a/packet_format/index.html b/packet_format/index.html index a2bbd715..8912ec15 100644 --- a/packet_format/index.html +++ b/packet_format/index.html @@ -100,15 +100,15 @@
  • - O forku + About the fork
  • - - English + + Česky
  • @@ -144,7 +144,7 @@ - O forku + About the fork @@ -157,7 +157,7 @@ - English + Česky @@ -200,7 +200,7 @@ - Příkazy konzole · console commands + Console commands @@ -216,7 +216,7 @@ - Aktualizace od admina · OTA + Firmware update by the admin (OTA) @@ -232,7 +232,7 @@ - Napájení · power + Power saving @@ -248,7 +248,7 @@ - Budka jako senzor · Budka sensor + Budka as a sensor @@ -264,7 +264,7 @@ - Koexistence BLE/LoRa + BLE/LoRa coexistence diff --git a/payloads/index.html b/payloads/index.html index e099844b..b3125fb7 100644 --- a/payloads/index.html +++ b/payloads/index.html @@ -100,15 +100,15 @@
  • - O forku + About the fork
  • - - English + + Česky
  • @@ -144,7 +144,7 @@ - O forku + About the fork @@ -157,7 +157,7 @@ - English + Česky @@ -200,7 +200,7 @@ - Příkazy konzole · console commands + Console commands @@ -216,7 +216,7 @@ - Aktualizace od admina · OTA + Firmware update by the admin (OTA) @@ -232,7 +232,7 @@ - Napájení · power + Power saving @@ -248,7 +248,7 @@ - Budka jako senzor · Budka sensor + Budka as a sensor @@ -264,7 +264,7 @@ - Koexistence BLE/LoRa + BLE/LoRa coexistence diff --git a/power/index.html b/power/index.html index d666fe03..62f99aa1 100644 --- a/power/index.html +++ b/power/index.html @@ -20,7 +20,7 @@ -Napájení · power - MeshCore TTH +Power saving - MeshCore TTH @@ -100,15 +100,15 @@
  • - O forku + About the fork
  • - - English + + Česky
  • @@ -144,7 +144,7 @@ - O forku + About the fork @@ -157,7 +157,7 @@ - English + Česky @@ -196,7 +196,7 @@ - Příkazy konzole · console commands + Console commands @@ -212,7 +212,7 @@ - Aktualizace od admina · OTA + Firmware update by the admin (OTA) @@ -227,7 +227,7 @@
  • - Napájení · power + Power saving
  • @@ -242,7 +242,7 @@ - Budka jako senzor · Budka sensor + Budka as a sensor @@ -258,7 +258,7 @@ - Koexistence BLE/LoRa + BLE/LoRa coexistence diff --git a/qr_codes/index.html b/qr_codes/index.html index 8f2e1484..3a3f4683 100644 --- a/qr_codes/index.html +++ b/qr_codes/index.html @@ -100,15 +100,15 @@
  • - O forku + About the fork
  • - - English + + Česky
  • @@ -144,7 +144,7 @@ - O forku + About the fork @@ -157,7 +157,7 @@ - English + Česky @@ -200,7 +200,7 @@ - Příkazy konzole · console commands + Console commands @@ -216,7 +216,7 @@ - Aktualizace od admina · OTA + Firmware update by the admin (OTA) @@ -232,7 +232,7 @@ - Napájení · power + Power saving @@ -248,7 +248,7 @@ - Budka jako senzor · Budka sensor + Budka as a sensor @@ -264,7 +264,7 @@ - Koexistence BLE/LoRa + BLE/LoRa coexistence diff --git a/radio_presets/index.html b/radio_presets/index.html index dd8be1bb..9c78af37 100644 --- a/radio_presets/index.html +++ b/radio_presets/index.html @@ -100,15 +100,15 @@
  • - O forku + About the fork
  • - - English + + Česky
  • @@ -144,7 +144,7 @@ - O forku + About the fork @@ -157,7 +157,7 @@ - English + Česky @@ -200,7 +200,7 @@ - Příkazy konzole · console commands + Console commands @@ -216,7 +216,7 @@ - Aktualizace od admina · OTA + Firmware update by the admin (OTA) @@ -232,7 +232,7 @@ - Napájení · power + Power saving @@ -248,7 +248,7 @@ - Budka jako senzor · Budka sensor + Budka as a sensor @@ -264,7 +264,7 @@ - Koexistence BLE/LoRa + BLE/LoRa coexistence diff --git a/search/search_index.json b/search/search_index.json index 2f5617c5..dcc8e5e6 100644 --- a/search/search_index.json +++ b/search/search_index.json @@ -1 +1 @@ -{"config":{"indexing":"full","lang":["en"],"min_search_length":3,"prebuild_index":false,"separator":"[\\s\\-]+"},"docs":[{"location":"","text":"O tomto forku (meshcore-tth) English version below -- experimental firmware, not meant for regular users. Warning Experiment\u00e1ln\u00ed firmware \u2013 nen\u00ed ur\u010den\u00fd pro b\u011b\u017en\u00e9 u\u017eivatele. Tenhle fork i v\u0161echny jeho releasy jsou osobn\u00ed v\u00fdvojov\u00e1 v\u011btev pro uzly jedn\u00e9 mal\u00e9 s\u00edt\u011b: rolling release nad upstreamovou v\u011btv\u00ed dev , sestavovan\u00fd automaticky zhruba dvakr\u00e1t denn\u011b, bez stabiln\u00edho kan\u00e1lu, bez podpory a vyzkou\u0161en\u00fd jen na na\u0161ich desk\u00e1ch. M\u016f\u017ee obsahovat chyby, kter\u00e9 uzel vy\u0159ad\u00ed z provozu, a vr\u00e1tit ho pak jde jen s USB nebo BLE v ruce. Pro b\u011b\u017en\u00fd provoz nahrajte ofici\u00e1ln\u00ed MeshCore ( flasher.meshcore.io ). Fork projektu meshcore-dev/MeshCore , na kter\u00e9m b\u011b\u017e\u00ed repeatery, senzory a testovac\u00ed desky mal\u00e9 \u010desk\u00e9 s\u00edt\u011b na CZ meshi (869,432 MHz). Upstreamov\u00e9 v\u011btve main a dev se slu\u010duj\u00ed automaticky dvakr\u00e1t denn\u011b; v\u0161echno n\u00ed\u017ee je nav\u00edc nad nimi. N\u00e1\u0161 k\u00f3d je ve zdroj\u00e1c\u00edch ozna\u010den\u00fd CUSTOM (TeTeHacko) . Nic z toho nem\u011bn\u00ed protokol na r\u00e1diu. Repeater: antispam (v\u0161echno vyp\u00ednateln\u00e9, nic z toho nen\u00ed v upstreamu) Po nahr\u00e1n\u00ed je zapnut\u00fd jen FairnessLimiter , s limity se zhruba dvojn\u00e1sobnou rezervou nad 30 dn\u00ed skute\u010dn\u00e9ho provozu CZ meshe: na kan\u00e1l d\u00e1vka 100 zpr\u00e1v a pak jedna za 30 s, na odes\u00edlatele 150 a jedna za 10 s, na p\u016fvodce advertu 30 a jeden za 10 min. Je to s\u00ed\u0165 na utr\u017een\u00e9 floody, ne kv\u00f3ta; fairness off ho vypne natrvalo. Okno na adverty, filtry a dry-run jsou vypnut\u00e9, dokud je nezapnete. FairnessLimiter \u2013 token buckety na p\u0159epos\u00edlan\u00e9 floody podle 1bajtov\u00fdch identifik\u00e1tor\u016f, kter\u00e9 jsou v paketu stejn\u011b v \u010diteln\u00e9 podob\u011b (hash kan\u00e1lu, hash odes\u00edlatele, p\u016fvodce advertu). Port n\u00e1vrhu Beanowa #1502 , limity p\u0159epo\u010d\u00edtan\u00e9 z 30 dn\u00ed skute\u010dn\u00e9ho provozu CZ meshe. fairness [on|off|grid|cap|refill] ; p\u0159\u00edmo sm\u011brovan\u00fd provoz se neomezuje nikdy. Okno na adverty podle p\u016fvodce \u2013 flood advert ka\u017ed\u00e9ho uzlu se p\u0159epo\u0161le nejv\u00fd\u0161 jednou za N hodin ( fairness advert |clear ), p\u0159evzato z AdvertLimiteru DutchMeshCore . M\u00ed\u0159\u00ed na uzly, kter\u00e9 advertuj\u00ed ka\u017edou minutu. Dry-run \u2013 fairness dryrun on zapo\u010d\u00edt\u00e1 ka\u017ed\u00fd verdikt, ale p\u0159epo\u0161le i tak; fairness air uk\u00e1\u017ee u\u0161et\u0159en\u00fd (nebo u\u0161et\u0159iteln\u00fd) airtime podle d\u016fvodu. Filtr kan\u00e1l\u016f \u2013 na kan\u00e1lech, jejich\u017e kl\u00ed\u010d repeater zn\u00e1 (Public a #hashtag kan\u00e1ly), p\u0159estane p\u0159epos\u00edlat zpr\u00e1vy uveden\u00fdch jmen odes\u00edlatel\u016f ( filter add|del|list ). Jm\u00e9no se d\u00e1 podvrhnout: je to brzda na utr\u017een\u00e9ho bota, ne bezpe\u010dnost. Blokace p\u0159epos\u00edl\u00e1n\u00ed podle hashe kan\u00e1lu \u2013 filter hash add [s] : bez kl\u00ed\u010de, tak\u017ee funguje i na soukrom\u00fdch kan\u00e1lech; p\u0159\u00edjem se nem\u011bn\u00ed, jen p\u0159epos\u00edl\u00e1n\u00ed. S s se kan\u00e1l neod\u0159\u00edzne, ale p\u0159i\u0161krt\u00ed (jeden paket za s sekund). Limit st\u00e1\u0159\u00ed zpr\u00e1vy \u2013 filter age |off (voliteln\u00e9, 1\u201310080 min): nep\u0159epos\u00edl\u00e1 skupinov\u00e9 zpr\u00e1vy na de\u0161ifrovan\u00fdch kan\u00e1lech, jejich\u017e \u010das od odes\u00edlatele je star\u0161\u00ed; bez nastaven\u00fdch hodin repeateru neplat\u00ed. Posuzuje hodiny odes\u00edlatele, tak\u017ee zahod\u00ed i companiony bez synchronizace \u010dasu \u2013 nastavuj ho na dny. filter dryrun on zapo\u010d\u00edt\u00e1 ka\u017ed\u00fd verdikt filter , ale p\u0159epo\u0161le i tak. Diagnostika a provoz V\u0161echny p\u0159\u00edkazy forku, kde je kter\u00fd build m\u00e1 a v\u00fdchoz\u00ed hodnoty: docs/tth-commands.md . Repeater, room server i senzor (v\u0161echno s textovou konzol\u00ed) maj\u00ed: Watchdogy r\u00e1dia. Hardwarov\u00fd watchdog chyt\u00ed jen zamrzlou smy\u010dku; dva na\u0161e uzly ale byly nalezeny hluch\u00e9 s b\u011b\u017e\u00edc\u00ed smy\u010dkou a pomohl a\u017e restart. set radio.silence \u2013 hluch\u00fd p\u0159ij\u00edma\u010d : kdy\u017e se za minut nepohne \u010d\u00edta\u010d p\u0159ijat\u00fdch r\u00e1mc\u016f (po\u010d\u00edt\u00e1 se i r\u00e1mec s chybou CRC), uzel nap\u0159ed znovu nahod\u00ed p\u0159\u00edjem, a kdy\u017e ani to nepom\u016f\u017ee, restartuje se. Ka\u017ed\u00fd takov\u00fd restart zdvojn\u00e1sob\u00ed pr\u00e1h pro p\u0159\u00ed\u0161t\u00ed start (a\u017e 16\u00d7), prvn\u00ed p\u0159ijat\u00fd r\u00e1mec ho vr\u00e1t\u00ed, tak\u017ee tich\u00e9 m\u00edsto neskon\u010d\u00ed ve smy\u010dce restart\u016f. Ulo\u017e\u00ed se; ve v\u00fdchoz\u00edm stavu vypnut\u00fd ( 0 ) \u2013 pr\u00e1h volte s rezervou nad nejdel\u0161\u00ed b\u011b\u017en\u00e9 ticho na m\u00edst\u011b. Zaseknut\u00e9 vys\u00edl\u00e1n\u00ed (jen repeater): pakety \u010dekaj\u00ed ve front\u011b a \u010d\u00edta\u010d odeslan\u00fdch se neh\u00fdbe \u2192 znovu nahod\u00ed r\u00e1dio, pak restart. Pr\u00e1zdn\u00e1 fronta se nepo\u010d\u00edt\u00e1. Zapnut\u00fd, 15 min ( RADIO_TXSTALL_MIN ); set radio.txstall |off plat\u00ed jen do restartu. get radio.reboots \u2013 kolik restart\u016f watchdogy ud\u011blaly (p\u0159e\u017eije i v\u00fdpadek nap\u00e1jen\u00ed); get boot \u2013 pro\u010d se deska naposledy resetovala a z\u00e1znam o hardfaultu (vyp\u00ed\u0161e se i p\u0159i startu). dfu [uf2|serial|ota] \u2013 spolehliv\u00fd reboot do bootloaderu (jen z lok\u00e1ln\u00ed konzole); i2c \u2013 sken sb\u011brnice. Repeater nav\u00edc: blink (rozblik\u00e1 LED, i p\u0159es mesh \u2013 najdete uzel na sto\u017e\u00e1ru), txpwr (vys\u00edlac\u00ed v\u00fdkon do restartu, s verdiktem RadioLibu), \u010d\u00edta\u010de chyb vys\u00edl\u00e1n\u00ed ve stavov\u00e9 odpov\u011bdi. Jen observer varianty ( *-observer ): textov\u00e1 konzole p\u0159es BLE vedle USB, ble on|off ulo\u017een\u00e9 p\u0159es reboot ( RPT_BLE_DEFAULT_OFF : startuje vypnut\u00e9), vlastn\u00ed BLE PIN ( ble pin ), ulo\u017een\u00fd vys\u00edlac\u00ed v\u00fdkon spojen\u00ed ( blepwr ), bleconn , neblokuj\u00edc\u00ed BLE vys\u00edl\u00e1n\u00ed a parametry spojen\u00ed, kter\u00e9 vydr\u017e\u00ed i na slab\u00e9m linku. Taky jen observer varianty: pasivn\u00ed analyz\u00e1tor v konzoli \u2013 nodes (sly\u0161en\u00e9 repeatery a roomy, kl\u00ed\u010d pro spojen\u00ed v\u00edce cest), rxlog (ka\u017ed\u00fd sly\u0161en\u00fd r\u00e1mec: typ, cesta, SNR, RSSI), pktlog (surov\u00e9 r\u00e1mce pro feed observeru), velk\u00e9 str\u00e1nkovan\u00e9 odpov\u011bdi. Jen vlastn\u00ed buildy, ne releasy: kan\u00e1lov\u00fd bot ( BOT_CHANNEL_PSK : !link , !path , !snr , !heard , !noise , !ping , !help , v\u00fdb\u011br p\u0159es BOT_COMMANDS , cooldown na odes\u00edlatele, ignore list) \u2013 odpov\u00edd\u00e1, ani\u017e by p\u0159epos\u00edlal; RADIO_DIAG : radiostat (stav p\u0159ij\u00edma\u010de SX1262 bez z\u00e1sahu) a radiokick rx|clrirq|standby|agc (jeden krok obnovy, od nejjemn\u011bj\u0161\u00edho \u2013 prvn\u00ed, kter\u00fd pom\u016f\u017ee, uk\u00e1\u017ee rozbitou vrstvu); PIN_DIAG : dio1 (stav p\u0159eru\u0161en\u00ed v \u010dipu proti \u00farovni na pinu \u2013 kter\u00fd konec mrtv\u00e9 linky DIO1 je p\u0159eru\u0161en\u00fd); LORA_POLL_IRQ : provoz bez DIO1 pro desku s mrtvou linkou p\u0159eru\u0161en\u00ed. Opravy j\u00e1dra Ochrana proti p\u0159ehr\u00e1n\u00ed admin p\u0159\u00edkaz\u016f p\u0159e\u017eije reboot. Upstream si posledn\u00ed timestamp klienta dr\u017e\u00ed jen v RAM, tak\u017ee po ka\u017ed\u00e9m restartu projde libovoln\u00fd zachycen\u00fd p\u0159\u00edkaz znovu \u2013 zachycen\u00fd reboot uzel restartuje po\u0159\u00e1d dokola. Repeater, room server i sensor ho te\u010f zap\u00ed\u0161ou do flash d\u0159\u00edv, ne\u017e p\u0159\u00edkaz provedou ( /s_acl_ts0|1 , st\u0159\u00eddav\u011b s kontroln\u00edm sou\u010dtem, tak\u017ee ho nesma\u017ee ani v\u00fdpadek nap\u00e1jen\u00ed p\u0159i z\u00e1pisu). Timestamp v\u00edc ne\u017e den p\u0159ed hodinami uzlu ( ACL_TS_MAX_AHEAD ) se p\u0159ijme, ale neulo\u017e\u00ed, aby companion s rozhozen\u00fdmi hodinami nezamkl admina. Ukl\u00e1d\u00e1 se jen u admin\u016f: host sm\u00ed jen \u010d\u00edst a s pr\u00e1zdn\u00fdm guest heslem se j\u00edm stane kdokoli, tak\u017ee by ka\u017ed\u00fd jeho dotaz znamenal z\u00e1pis do flash. Klient\u016f se to nijak net\u00fdk\u00e1. Hesla nejde h\u00e1dat p\u0159es \u00e9ter plnou rychlost\u00ed. Upstream kontroluje ka\u017ed\u00fd login bez omezen\u00ed a na \u0161patn\u00e9 heslo ani neodpov\u00ed. Po 4 \u0161patn\u00fdch heslech b\u011bhem 3 minut ( LOGIN_FAIL_MAX , LOGIN_FAIL_SECS ) se hesla do konce okna nekontroluj\u00ed. Klient, kter\u00fd u\u017e je v ACL jako admin, projde v\u017edy \u2013 login jeho jm\u00e9nem nikdo jin\u00fd poslat nedok\u00e1\u017ee, tak\u017ee \u00fatok adminy nezamkne. P\u0159ehran\u00fd login bez hesla u\u017e nevyvol\u00e1 flood odpov\u011b\u010f. Login klienta z ACL s pr\u00e1zdn\u00fdm heslem nem\u011bl ochranu proti p\u0159ehr\u00e1n\u00ed; \u00fato\u010dn\u00edk t\u00edm nic nez\u00edskal, ale ka\u017ed\u00e1 kopie donutila uzel poslat odpov\u011b\u010f floodem p\u0159es cel\u00fd mesh. TRACE u\u017e nep\u0159ipisuje cestu za konec payloadu; parsov\u00e1n\u00ed TRACE/PATH a Packet::readFrom hl\u00eddaj\u00ed meze. markSeen je zase idempotentn\u00ed (odes\u00edlac\u00ed cesta uj\u00eddala okno deduplikace). Z\u00e1lo\u017en\u00ed v\u00fdpo\u010det v calcMaxPacketMillis u\u017e nepodte\u010de (uzel na tom ohluchl). \u0160\u00ed\u0159ka path hashe se bere z nastaven\u00ed uzlu na v\u0161ech cest\u00e1ch vys\u00edl\u00e1n\u00ed v\u010detn\u011b sendZeroHop ; v\u00fdchoz\u00ed jsou 2bajtov\u00e9 path hashe ( PATH_HASH_MODE_DEFAULT ). Nepoveden\u00e9 vys\u00edl\u00e1n\u00ed se za\u0159ad\u00ed znovu s odstupem, m\u00edsto aby se zahodilo. RSSI ka\u017ed\u00e9ho paketu se zaznamen\u00e1 p\u0159i p\u0159\u00edjmu; ContactInfo se p\u0159ed \u010d\u00e1ste\u010dn\u00fdm vypln\u011bn\u00edm vynuluje. Nap\u00e1jen\u00ed, hodiny, GPS GPS duty cycle ( gps duty ), i na T1000-E, kde nebyl: p\u0159ij\u00edma\u010d b\u011b\u017e\u00ed jen kolem synchronizace hodin (jednou denn\u011b, po ne\u00fasp\u011b\u0161n\u00e9m okn\u011b znovu za 6 h). Dotaz na polohu p\u0159ij\u00edma\u010d probud\u00ed pro p\u0159\u00ed\u0161t\u00ed dotaz. Uzel bez GPS startuje na \u010dase sestaven\u00ed firmwaru, ne v roce 2024; hodiny a z\u00e1znam o hardfaultu p\u0159e\u017eij\u00ed tepl\u00fd reset ( .noinit ); clkreboot . Na sol\u00e1rn\u00edch uzlech \u017e\u00e1dn\u00e1 blikaj\u00edc\u00ed LED a pomalej\u0161\u00ed BLE advertising. Stav baterie jako ikona na konci advertovan\u00e9ho jm\u00e9na: set batt.icon on , prahy set batt.icon.lo|hi (v\u00fdchoz\u00ed vypnut\u00e9; dlouh\u00e9 jm\u00e9no ikonu nepojme a p\u0159\u00edkaz na to upozorn\u00ed). Voliteln\u00fd RX duty cycle ( set radio.rxps off|on|balanced|max , jemn\u011bji level <1-10> ; port PowerSaving z EasySkyMesh): SX1262 mezi kr\u00e1tk\u00fdmi okny poslechu sp\u00ed. Ve ve\u0159ejn\u00fdch buildech je zabudovan\u00fd a vypnut\u00fd ; max na lavici u\u0161et\u0159il ~2,3 mA bez ztr\u00e1ty paket\u016f ( docs/power.md ), na ostr\u00e9m meshi ale jeden n\u00e1\u0161 sto\u017e\u00e1r ztratil 16 % p\u0159\u00edjmu \u2013 zap\u00ednat s rozmyslem. Jen SX1262, ne LR1110 (T1000-E). Podp\u011b\u0165ov\u00e1 pojistka p\u0159i startu ( PWRMGT_VOLTAGE_BOOTLOCK ) je na nRF52 vypnut\u00e1 , stejn\u011b jako v upstreamu od v1.18.0 ( #2377 ): pevn\u00fd pr\u00e1h 3,3 V nepou\u0161t\u011bl k \u017eivotu uzly na LiFePO4 nebo LTO. Firmware tak nab\u011bhne na jak\u00e9koli chemii \u010dl\u00e1nku; p\u0159ed hlubok\u00fdm vybit\u00edm m\u00e1 chr\u00e1nit BMS nebo ochrann\u00e1 desti\u010dka \u010dl\u00e1nku. Konfigurovateln\u00e1 pojistka podle chemie \u010dek\u00e1 na upstream ( #2088 ). V\u00fdjimkou je SenseCap_Solar_repeater (Li-ion, na\u0161e sto\u017e\u00e1ry): pojistka je zapnut\u00e1 a oba prahy jdou nastavit za b\u011bhu, i p\u0159es mesh jako admin \u2013 set pwr.bootlock |off (v\u00fdchoz\u00ed 3300, pod n\u00edm uzel nenab\u011bhne a sp\u00ed, dokud se \u010dl\u00e1nek nezotav\u00ed) a set pwr.cutoff |off (v\u00fdchoz\u00ed vypnuto, pod n\u00edm se b\u011b\u017e\u00edc\u00ed uzel vypne); get pwr ( docs/power.md ). Senzory a companiony simple_sensor : telemetrie z extern\u00ed stanice po UART ( BudkaLinkSensorManager , jeden LPP kan\u00e1l na veli\u010dinu), sensor read . Senzory, kter\u00e9 jinak m\u011b\u0159\u00ed nep\u0159etr\u017eit\u011b (INA219, INA226, INA260, INA3221, BMP280), mezi \u010dten\u00edmi telemetrie sp\u00ed a m\u011b\u0159\u00ed jen na vy\u017e\u00e1d\u00e1n\u00ed (n\u00e1pad a prvn\u00ed patch pro INA219: Alkel Brostl). \u010cipy INA se rozli\u0161uj\u00ed podle ID, tak\u017ee INA226 u\u017e se nedetekuje jako INA219. Odpor bo\u010dn\u00edku se nastavuje za b\u011bhu a ukl\u00e1d\u00e1 se: sensor set ina.shunt . Companion: gps duty p\u0159e\u017eije reboot, kopie data sestaven\u00ed m\u00e1 hl\u00eddanou d\u00e9lku. Export priv\u00e1tn\u00edho kl\u00ed\u010de, \u010dten\u00ed BLE PINu a jeho zm\u011bna (i p\u0159es CLI set pin ) jdou jen p\u0159es sp\u00e1rovan\u00e9 BLE, ne p\u0159es USB, UART ani WiFi/TCP, a odpov\u011b\u010f s kl\u00ed\u010dem \u010di PINem jde jen tam, odkud p\u0159i\u0161el dotaz. (Merge v1.17 tu kontrolu potichu vy\u0159adil; build bez BLE bere sv\u00e9 jedin\u00e9 rozhran\u00ed d\u00e1l jako d\u016fv\u011bryhodn\u00e9.) KISS modem: oprava o jedna vedle p\u0159i zkracov\u00e1n\u00ed jm\u00e9na. Ve\u0159ejn\u00e9 buildy: v\u00fdchoz\u00ed nastaven\u00ed pro \u010desk\u00fd mesh Releasy z tohoto repozit\u00e1\u0159e ( pub-release ) jsou p\u0159ednastaven\u00e9 pro \u010desk\u00fd mesh podle wiki meshcore.cz , tak\u017ee \u010derstv\u011b nahran\u00fd uzel nepot\u0159ebuje obvykl\u00e9 kole\u010dko nastavov\u00e1n\u00ed: r\u00e1dio 869,432 MHz / 62,5 kHz / SF7 / CR5 (v\u0161echny buildy); repeater a room server: zero-hop advert vypnut\u00fd, flood advert ka\u017ed\u00fdch 25 h, duty cycle 10 % ( get dutycycle \u2192 10.0% ; zastaral\u00e9 af je 9); repeater: regiony cz a cs vedle * \u2013 vlastn\u00ed cz- p\u0159id\u00e1\u0161 p\u0159es region put cz-xxx cz + region save ; 2bajtov\u00e9 path hashe (v\u00fdchoz\u00ed v tomto forku); repeater: filtr kan\u00e1l\u016f ( filter add ) je zabudovan\u00fd pro Public, #meshcore a #test , s pr\u00e1zdn\u00fdm seznamem \u2013 ned\u011bl\u00e1 nic, dokud do n\u011bj nep\u0159id\u00e1\u0161 jm\u00e9no. Plat\u00ed jen pro uzel bez ulo\u017een\u00e9ho nastaven\u00ed (nov\u00fd nebo po erase ): nov\u00e9 nahr\u00e1n\u00ed ponech\u00e1, co u\u017e uzel m\u00e1, a regiony, kter\u00e9 jsi smazal a ulo\u017eil, z\u016fstanou smazan\u00e9. Jm\u00e9no a admin heslo si nastav s\u00e1m. BLE PIN companionu je ve\u0159ejn\u00fd 123456 (desky s displejem si losuj\u00ed vlastn\u00ed a uk\u00e1\u017eou ho). Kdo se s n\u00edm sp\u00e1ruje, m\u00e1 companion cel\u00fd: zpr\u00e1vy, kontakty, export priv\u00e1tn\u00edho kl\u00ed\u010de. Po prvn\u00edm sp\u00e1rov\u00e1n\u00ed ho proto zm\u011b\u0148 v aplikaci. A s deskou v ruce nechr\u00e1n\u00ed nic ani PIN, ani heslo: flash nen\u00ed zam\u010den\u00e1 a bootloader p\u0159ijme jak\u00fdkoli firmware. Ztracen\u00fd nebo ukraden\u00fd uzel ber jako vyzrazen\u00fd \u2013 u repeateru zm\u011b\u0148 admin heslo v\u0161ude, kde bylo stejn\u00e9, a vyho\u010f jeho kl\u00ed\u010d z ACL; u companionu ber kan\u00e1ly, kter\u00e9 na n\u011bm byly, jako zn\u00e1m\u00e9. Varianty observer ( *_repeater-observer-* ) nRF52 repeater\u016f (XIAO, SenseCAP Solar, RAK4631, T1000-E, Heltec T114) p\u0159id\u00e1vaj\u00ed buffery nodes / rxlog / pktlog a textovou konzoli p\u0159es BLE, aby \u0161el repeater \u010d\u00edst p\u0159es USB nebo BLE ( meshcore-repeater-observer ). BLE konzole je po nahr\u00e1n\u00ed vypnut\u00e1 ( RPT_BLE_DEFAULT_OFF ). Nem\u00e1 vlastn\u00ed p\u0159ihl\u00e1\u0161en\u00ed, jen BLE PIN, a PIN v buildu je ve\u0159ejn\u00fd z\u00e1stupn\u00fd 123456 . Nejd\u0159\u00edv si proto nastav vlastn\u00ed \u2013 v USB konzoli, nebo jako admin p\u0159es mesh (vzd\u00e1len\u00e9 CLI v aplikaci): ble pin <6 \u010d\u00edslic> (ulo\u017e\u00ed se a p\u0159e\u017eije reboot i nov\u00e9 nahr\u00e1n\u00ed; z\u00e1rove\u0148 sma\u017ee v\u0161echny bondy, tak\u017ee sp\u00e1rovan\u00e1 za\u0159\u00edzen\u00ed se p\u00e1ruj\u00ed znovu). Teprve pak ble on \u2013 dokud je PIN z\u00e1stupn\u00fd, tyhle buildy ho odm\u00edtnou. ble uk\u00e1\u017ee, jestli je PIN own nebo build default , samotn\u00fd PIN nikdy. Releasy do tth-654d53f3 ble pin nemaj\u00ed: BLE tam nech vypnut\u00e9 a pou\u017e\u00edvej USB. Nahr\u00e1n\u00ed releasu Ka\u017ed\u00fd release je automatick\u00fd build nad upstreamov\u00fdm dev (viz upozorn\u011bn\u00ed naho\u0159e), ne stabiln\u00ed verze. Nahr\u00e1vejte ho jen na uzly, na kter\u00e9 dos\u00e1hnete, a nov\u00fd release v\u017edy nejd\u0159\u00edv na jeden z nich. Soubory jsou v Releases . Release se jmenuje podle upstreamov\u00e9 verze a data, nap\u0159. v1.18.0+tth.20261112 (druh\u00fd t\u00e9ho\u017e dne .2 ), a v popisu m\u00e1 zm\u011bny od p\u0159edchoz\u00edho releasu. Pro ka\u017edou desku a roli je jedna sada ( _- , nap\u0159. Xiao_nrf52_repeater-v1.18.0+tth.20261112.zip ): .zip a .uf2 pro nRF52, .bin pro ESP32 ( -merged.bin je cel\u00fd obraz pro pr\u00e1zdnou desku, oby\u010dejn\u00fd .bin aktualizace). Kontroln\u00ed sou\u010dty jsou v SHA256SUMS . Releasy do 12. 11. 2026 se jmenovaly tth- . nRF52 (XIAO, RAK4631, SenseCAP Solar, T1000-E, T114) p\u0159es webov\u00fd flasher MeshCore \u2013 Chrome, Edge nebo Chromium na po\u010d\u00edta\u010di (Web Serial; ne Firefox ani Safari): P\u0159ipoj desku p\u0159es USB. Klikni na Custom Firmware a vyber .zip pro svou desku. Klikni na Enter DFU mode a vyber s\u00e9riov\u00fd port desky. Deska se restartuje do bootloaderu a objev\u00ed se jako nov\u00fd port. Klikni na Flash! a vyber ten nov\u00fd port. Zhruba 30 s, pak se deska restartuje do nov\u00e9ho firmwaru. Console ve flasheru (nebo jak\u00fdkoli s\u00e9riov\u00fd termin\u00e1l, 115200) ov\u011b\u0159\u00ed v\u00fdsledek: ver uk\u00e1\u017ee v1.xx.x-tth , stejn\u011b jako \u0159\u00e1dek \u201eVerze v uzlu\u201c v popisu releasu. Neklikej na Erase Flash , pokud nechce\u0161 nov\u00fd uzel: sma\u017ee identitu (kl\u00ed\u010d uzlu a v\u0161echno, co ho zn\u00e1) i ve\u0161ker\u00e9 nastaven\u00ed. Oby\u010dejn\u00e9 nahr\u00e1n\u00ed je zachov\u00e1. Vyzkou\u0161eno na XIAO (repeater-observer, 3. 11. 2026). ESP32 .bin p\u0159es stejn\u00e9 tla\u010d\u00edtko Custom Firmware tu vyzkou\u0161en\u00e9 nen\u00ed. Bez webov\u00e9ho flasheru: na v\u011bt\u0161in\u011b desek otev\u0159e dvoj\u00ed stisk resetu bootloader jako USB disk; zkop\u00edruj na n\u011bj .uf2 . Nebo adafruit-nrfutil dfu serial -pkg .zip -p -b 115200 s deskou v bootloaderu. Nov\u00fd uzel po nahr\u00e1n\u00ed nastav v konzoli: set name , password (nejv\u00fd\u0161 15 znak\u016f), vlastn\u00ed region p\u0159es region put cz- cz + region save . Repeater p\u0159epos\u00edl\u00e1 od prvn\u00edho startu (v\u00fdchoz\u00ed v upstreamu) a tyhle buildy jsou na ostr\u00e9 CZ frekvenci: na stole bez ant\u00e9ny dej set repeat off , dokud nen\u00ed na m\u00edst\u011b. Experiment\u00e1ln\u00ed: aktualizace firmwaru od admina ( *-ota ) Ka\u017ed\u00fd nRF52 build s textovou konzol\u00ed (repeater, observer, room server, senzor) je v releasu je\u0161t\u011b jednou jako experiment\u00e1ln\u00ed *-ota / *-observer-ota . Ten um\u00ed p\u0159ijmout nov\u00fd firmware od admina p\u0159\u00edkazy fw \u2026 : v USB nebo BLE konzoli, nebo p\u0159es mesh jako vzd\u00e1len\u00e9 admin CLI . Bez zm\u011bny bootloaderu a bez druh\u00e9 banky: uzel si bal\u00ed\u010dek ulo\u017e\u00ed do voln\u00e9 flash, zkontroluje ho cel\u00fd (podpis, hashe, nane\u010disto proveden\u00e1 delta) a p\u0159ep\u00ed\u0161e se a\u017e na fw apply , rutinou b\u011b\u017e\u00edc\u00ed z RAM. Kdy\u017e b\u011bhem p\u0159episu vypadne nap\u00e1jen\u00ed, z\u016fstane v bootloaderu a vr\u00e1t\u00ed se p\u0159es USB/BLE DFU. V releasu je ke ka\u017ed\u00e9mu *-ota obrazu pln\u00fd bal\u00ed\u010dek _-ota-.mcfw (jen p\u0159es USB/BLE) a delta \u2026.from-.mcfw od ka\u017ed\u00e9ho dr\u017een\u00e9ho p\u0159edchoz\u00edho releasu, typicky jednotky kB. P\u0159es mesh uzel p\u0159ijme jen deltu, a nikdy ne star\u0161\u00ed verzi, ne\u017e m\u00e1 \u2013 vynucuje to uzel, ne n\u00e1stroj. Pln\u00fd obraz nebo n\u00e1vrat ke star\u0161\u00ed verzi jen lok\u00e1ln\u011b ( fw apply downgrade ). fw apply \u010dek\u00e1 na baterii \u2265 3,8 V, pokud uzel neb\u011b\u017e\u00ed z USB. Bal\u00ed\u010dky i SHA256SUMS jsou podepsan\u00e9 kl\u00ed\u010dem meshcore-ota@tth-pub a *-ota obraz jin\u00fd podpis nep\u0159ijme. Ov\u011b\u0159en\u00ed sta\u017een\u00fdch soubor\u016f: ssh-keygen -Y verify -f tools/ota_allowed_signers -I meshcore-ota@tth-pub -n meshcore-ota -s SHA256SUMS.sig < SHA256SUMS . Vlastn\u00ed build s vlastn\u00edm kl\u00ed\u010dem: [ota] pubkey v platformio.local.ini . Prvn\u00ed *-ota obraz se nahraje oby\u010dejn\u011b (viz v\u00fd\u0161e), dal\u0161\u00ed u\u017e jako delta. N\u00e1stroje: tools/ota_push.py (USB), tools/ota_mesh_push.py (p\u0159es mesh skrz companion; pot\u0159ebuje pythonovou knihovnu meshcore , admin heslo bere z [secrets] admin_pw v platformio.local.ini ; s --side jde p\u0159enos po vedlej\u0161\u00edm kan\u00e1lu mimo sd\u00edlen\u00fd mesh), tools/ota_pack.py info . P\u0159enos samotn\u00fd je OTA engine kolekce tth.meshcore (modul meshcore_fw_ota ), stejn\u00fd k\u00f3d pro n\u00e1stroje i Ansible. Z telefonu: fork aplikace meshcore-open , spr\u00e1va repeateru \u2192 Firmware update (OTA), deltu si najde v releasu s\u00e1m. Postup a \u010d\u00edsla: docs/ota.md . Experiment\u00e1ln\u00ed i v r\u00e1mci tohoto forku : obrazy p\u0159ich\u00e1zej\u00ed s ka\u017ed\u00fdm releasem (viz upozorn\u011bn\u00ed naho\u0159e) a nemaj\u00ed druhou banku ani automatick\u00fd n\u00e1vrat. Vadn\u00fd firmware, kter\u00fd nabootuje, b\u011b\u017e\u00ed, dokud nepo\u0161lete dal\u0161\u00ed; takov\u00fd, kter\u00fd nenabootuje, chce USB/BLE DFU v ruce. Vyzkou\u0161eno na lavici (XIAO, USB, mesh, vedlej\u0161\u00ed kan\u00e1l) a od 13. 11. 2026 na dvou na\u0161ich sto\u017e\u00e1rech. Proti obrazu, kter\u00fd nabootuje s mrtv\u00fdm r\u00e1diem, jsou watchdogy r\u00e1dia (viz Diagnostika a provoz): pro uzly, kam pos\u00edl\u00e1te OTA, zapn\u011bte set radio.silence . Stoj\u00ed ~10 kB RAM nav\u00edc. Sestaven\u00ed Raz\u00edtko verze v ka\u017ed\u00e9m nRF52 envu ( v1.18.0-tth , + = neuklizen\u00fd strom), z\u00e1kladn\u00ed verze z upstreamov\u00e9ho tagu ( tools/build_version.py ). tools/ : n\u00e1stroje na uzly \u2013 konzole (USB, BLE), flashov\u00e1n\u00ed, testy na lavici, diagnostika ( tools/README.md ). Desky podle jm\u00e9na bere z lok\u00e1ln\u00edho configu mimo repo ( tools/config.example.ini ). hardware/cavity-box : parametrick\u00e1 krabi\u010dka pro dutinov\u00fd filtr na sto\u017e\u00e1r.","title":"O forku"},{"location":"#o-tomto-forku-meshcore-tth","text":"English version below -- experimental firmware, not meant for regular users. Warning Experiment\u00e1ln\u00ed firmware \u2013 nen\u00ed ur\u010den\u00fd pro b\u011b\u017en\u00e9 u\u017eivatele. Tenhle fork i v\u0161echny jeho releasy jsou osobn\u00ed v\u00fdvojov\u00e1 v\u011btev pro uzly jedn\u00e9 mal\u00e9 s\u00edt\u011b: rolling release nad upstreamovou v\u011btv\u00ed dev , sestavovan\u00fd automaticky zhruba dvakr\u00e1t denn\u011b, bez stabiln\u00edho kan\u00e1lu, bez podpory a vyzkou\u0161en\u00fd jen na na\u0161ich desk\u00e1ch. M\u016f\u017ee obsahovat chyby, kter\u00e9 uzel vy\u0159ad\u00ed z provozu, a vr\u00e1tit ho pak jde jen s USB nebo BLE v ruce. Pro b\u011b\u017en\u00fd provoz nahrajte ofici\u00e1ln\u00ed MeshCore ( flasher.meshcore.io ). Fork projektu meshcore-dev/MeshCore , na kter\u00e9m b\u011b\u017e\u00ed repeatery, senzory a testovac\u00ed desky mal\u00e9 \u010desk\u00e9 s\u00edt\u011b na CZ meshi (869,432 MHz). Upstreamov\u00e9 v\u011btve main a dev se slu\u010duj\u00ed automaticky dvakr\u00e1t denn\u011b; v\u0161echno n\u00ed\u017ee je nav\u00edc nad nimi. N\u00e1\u0161 k\u00f3d je ve zdroj\u00e1c\u00edch ozna\u010den\u00fd CUSTOM (TeTeHacko) . Nic z toho nem\u011bn\u00ed protokol na r\u00e1diu.","title":"O tomto forku (meshcore-tth)"},{"location":"#repeater-antispam-vsechno-vypinatelne-nic-z-toho-neni-v-upstreamu","text":"Po nahr\u00e1n\u00ed je zapnut\u00fd jen FairnessLimiter , s limity se zhruba dvojn\u00e1sobnou rezervou nad 30 dn\u00ed skute\u010dn\u00e9ho provozu CZ meshe: na kan\u00e1l d\u00e1vka 100 zpr\u00e1v a pak jedna za 30 s, na odes\u00edlatele 150 a jedna za 10 s, na p\u016fvodce advertu 30 a jeden za 10 min. Je to s\u00ed\u0165 na utr\u017een\u00e9 floody, ne kv\u00f3ta; fairness off ho vypne natrvalo. Okno na adverty, filtry a dry-run jsou vypnut\u00e9, dokud je nezapnete. FairnessLimiter \u2013 token buckety na p\u0159epos\u00edlan\u00e9 floody podle 1bajtov\u00fdch identifik\u00e1tor\u016f, kter\u00e9 jsou v paketu stejn\u011b v \u010diteln\u00e9 podob\u011b (hash kan\u00e1lu, hash odes\u00edlatele, p\u016fvodce advertu). Port n\u00e1vrhu Beanowa #1502 , limity p\u0159epo\u010d\u00edtan\u00e9 z 30 dn\u00ed skute\u010dn\u00e9ho provozu CZ meshe. fairness [on|off|grid|cap|refill] ; p\u0159\u00edmo sm\u011brovan\u00fd provoz se neomezuje nikdy. Okno na adverty podle p\u016fvodce \u2013 flood advert ka\u017ed\u00e9ho uzlu se p\u0159epo\u0161le nejv\u00fd\u0161 jednou za N hodin ( fairness advert |clear ), p\u0159evzato z AdvertLimiteru DutchMeshCore . M\u00ed\u0159\u00ed na uzly, kter\u00e9 advertuj\u00ed ka\u017edou minutu. Dry-run \u2013 fairness dryrun on zapo\u010d\u00edt\u00e1 ka\u017ed\u00fd verdikt, ale p\u0159epo\u0161le i tak; fairness air uk\u00e1\u017ee u\u0161et\u0159en\u00fd (nebo u\u0161et\u0159iteln\u00fd) airtime podle d\u016fvodu. Filtr kan\u00e1l\u016f \u2013 na kan\u00e1lech, jejich\u017e kl\u00ed\u010d repeater zn\u00e1 (Public a #hashtag kan\u00e1ly), p\u0159estane p\u0159epos\u00edlat zpr\u00e1vy uveden\u00fdch jmen odes\u00edlatel\u016f ( filter add|del|list ). Jm\u00e9no se d\u00e1 podvrhnout: je to brzda na utr\u017een\u00e9ho bota, ne bezpe\u010dnost. Blokace p\u0159epos\u00edl\u00e1n\u00ed podle hashe kan\u00e1lu \u2013 filter hash add [s] : bez kl\u00ed\u010de, tak\u017ee funguje i na soukrom\u00fdch kan\u00e1lech; p\u0159\u00edjem se nem\u011bn\u00ed, jen p\u0159epos\u00edl\u00e1n\u00ed. S s se kan\u00e1l neod\u0159\u00edzne, ale p\u0159i\u0161krt\u00ed (jeden paket za s sekund). Limit st\u00e1\u0159\u00ed zpr\u00e1vy \u2013 filter age |off (voliteln\u00e9, 1\u201310080 min): nep\u0159epos\u00edl\u00e1 skupinov\u00e9 zpr\u00e1vy na de\u0161ifrovan\u00fdch kan\u00e1lech, jejich\u017e \u010das od odes\u00edlatele je star\u0161\u00ed; bez nastaven\u00fdch hodin repeateru neplat\u00ed. Posuzuje hodiny odes\u00edlatele, tak\u017ee zahod\u00ed i companiony bez synchronizace \u010dasu \u2013 nastavuj ho na dny. filter dryrun on zapo\u010d\u00edt\u00e1 ka\u017ed\u00fd verdikt filter , ale p\u0159epo\u0161le i tak.","title":"Repeater: antispam (v\u0161echno vyp\u00ednateln\u00e9, nic z toho nen\u00ed v upstreamu)"},{"location":"#diagnostika-a-provoz","text":"V\u0161echny p\u0159\u00edkazy forku, kde je kter\u00fd build m\u00e1 a v\u00fdchoz\u00ed hodnoty: docs/tth-commands.md . Repeater, room server i senzor (v\u0161echno s textovou konzol\u00ed) maj\u00ed: Watchdogy r\u00e1dia. Hardwarov\u00fd watchdog chyt\u00ed jen zamrzlou smy\u010dku; dva na\u0161e uzly ale byly nalezeny hluch\u00e9 s b\u011b\u017e\u00edc\u00ed smy\u010dkou a pomohl a\u017e restart. set radio.silence \u2013 hluch\u00fd p\u0159ij\u00edma\u010d : kdy\u017e se za minut nepohne \u010d\u00edta\u010d p\u0159ijat\u00fdch r\u00e1mc\u016f (po\u010d\u00edt\u00e1 se i r\u00e1mec s chybou CRC), uzel nap\u0159ed znovu nahod\u00ed p\u0159\u00edjem, a kdy\u017e ani to nepom\u016f\u017ee, restartuje se. Ka\u017ed\u00fd takov\u00fd restart zdvojn\u00e1sob\u00ed pr\u00e1h pro p\u0159\u00ed\u0161t\u00ed start (a\u017e 16\u00d7), prvn\u00ed p\u0159ijat\u00fd r\u00e1mec ho vr\u00e1t\u00ed, tak\u017ee tich\u00e9 m\u00edsto neskon\u010d\u00ed ve smy\u010dce restart\u016f. Ulo\u017e\u00ed se; ve v\u00fdchoz\u00edm stavu vypnut\u00fd ( 0 ) \u2013 pr\u00e1h volte s rezervou nad nejdel\u0161\u00ed b\u011b\u017en\u00e9 ticho na m\u00edst\u011b. Zaseknut\u00e9 vys\u00edl\u00e1n\u00ed (jen repeater): pakety \u010dekaj\u00ed ve front\u011b a \u010d\u00edta\u010d odeslan\u00fdch se neh\u00fdbe \u2192 znovu nahod\u00ed r\u00e1dio, pak restart. Pr\u00e1zdn\u00e1 fronta se nepo\u010d\u00edt\u00e1. Zapnut\u00fd, 15 min ( RADIO_TXSTALL_MIN ); set radio.txstall |off plat\u00ed jen do restartu. get radio.reboots \u2013 kolik restart\u016f watchdogy ud\u011blaly (p\u0159e\u017eije i v\u00fdpadek nap\u00e1jen\u00ed); get boot \u2013 pro\u010d se deska naposledy resetovala a z\u00e1znam o hardfaultu (vyp\u00ed\u0161e se i p\u0159i startu). dfu [uf2|serial|ota] \u2013 spolehliv\u00fd reboot do bootloaderu (jen z lok\u00e1ln\u00ed konzole); i2c \u2013 sken sb\u011brnice. Repeater nav\u00edc: blink (rozblik\u00e1 LED, i p\u0159es mesh \u2013 najdete uzel na sto\u017e\u00e1ru), txpwr (vys\u00edlac\u00ed v\u00fdkon do restartu, s verdiktem RadioLibu), \u010d\u00edta\u010de chyb vys\u00edl\u00e1n\u00ed ve stavov\u00e9 odpov\u011bdi. Jen observer varianty ( *-observer ): textov\u00e1 konzole p\u0159es BLE vedle USB, ble on|off ulo\u017een\u00e9 p\u0159es reboot ( RPT_BLE_DEFAULT_OFF : startuje vypnut\u00e9), vlastn\u00ed BLE PIN ( ble pin ), ulo\u017een\u00fd vys\u00edlac\u00ed v\u00fdkon spojen\u00ed ( blepwr ), bleconn , neblokuj\u00edc\u00ed BLE vys\u00edl\u00e1n\u00ed a parametry spojen\u00ed, kter\u00e9 vydr\u017e\u00ed i na slab\u00e9m linku. Taky jen observer varianty: pasivn\u00ed analyz\u00e1tor v konzoli \u2013 nodes (sly\u0161en\u00e9 repeatery a roomy, kl\u00ed\u010d pro spojen\u00ed v\u00edce cest), rxlog (ka\u017ed\u00fd sly\u0161en\u00fd r\u00e1mec: typ, cesta, SNR, RSSI), pktlog (surov\u00e9 r\u00e1mce pro feed observeru), velk\u00e9 str\u00e1nkovan\u00e9 odpov\u011bdi. Jen vlastn\u00ed buildy, ne releasy: kan\u00e1lov\u00fd bot ( BOT_CHANNEL_PSK : !link , !path , !snr , !heard , !noise , !ping , !help , v\u00fdb\u011br p\u0159es BOT_COMMANDS , cooldown na odes\u00edlatele, ignore list) \u2013 odpov\u00edd\u00e1, ani\u017e by p\u0159epos\u00edlal; RADIO_DIAG : radiostat (stav p\u0159ij\u00edma\u010de SX1262 bez z\u00e1sahu) a radiokick rx|clrirq|standby|agc (jeden krok obnovy, od nejjemn\u011bj\u0161\u00edho \u2013 prvn\u00ed, kter\u00fd pom\u016f\u017ee, uk\u00e1\u017ee rozbitou vrstvu); PIN_DIAG : dio1 (stav p\u0159eru\u0161en\u00ed v \u010dipu proti \u00farovni na pinu \u2013 kter\u00fd konec mrtv\u00e9 linky DIO1 je p\u0159eru\u0161en\u00fd); LORA_POLL_IRQ : provoz bez DIO1 pro desku s mrtvou linkou p\u0159eru\u0161en\u00ed.","title":"Diagnostika a provoz"},{"location":"#opravy-jadra","text":"Ochrana proti p\u0159ehr\u00e1n\u00ed admin p\u0159\u00edkaz\u016f p\u0159e\u017eije reboot. Upstream si posledn\u00ed timestamp klienta dr\u017e\u00ed jen v RAM, tak\u017ee po ka\u017ed\u00e9m restartu projde libovoln\u00fd zachycen\u00fd p\u0159\u00edkaz znovu \u2013 zachycen\u00fd reboot uzel restartuje po\u0159\u00e1d dokola. Repeater, room server i sensor ho te\u010f zap\u00ed\u0161ou do flash d\u0159\u00edv, ne\u017e p\u0159\u00edkaz provedou ( /s_acl_ts0|1 , st\u0159\u00eddav\u011b s kontroln\u00edm sou\u010dtem, tak\u017ee ho nesma\u017ee ani v\u00fdpadek nap\u00e1jen\u00ed p\u0159i z\u00e1pisu). Timestamp v\u00edc ne\u017e den p\u0159ed hodinami uzlu ( ACL_TS_MAX_AHEAD ) se p\u0159ijme, ale neulo\u017e\u00ed, aby companion s rozhozen\u00fdmi hodinami nezamkl admina. Ukl\u00e1d\u00e1 se jen u admin\u016f: host sm\u00ed jen \u010d\u00edst a s pr\u00e1zdn\u00fdm guest heslem se j\u00edm stane kdokoli, tak\u017ee by ka\u017ed\u00fd jeho dotaz znamenal z\u00e1pis do flash. Klient\u016f se to nijak net\u00fdk\u00e1. Hesla nejde h\u00e1dat p\u0159es \u00e9ter plnou rychlost\u00ed. Upstream kontroluje ka\u017ed\u00fd login bez omezen\u00ed a na \u0161patn\u00e9 heslo ani neodpov\u00ed. Po 4 \u0161patn\u00fdch heslech b\u011bhem 3 minut ( LOGIN_FAIL_MAX , LOGIN_FAIL_SECS ) se hesla do konce okna nekontroluj\u00ed. Klient, kter\u00fd u\u017e je v ACL jako admin, projde v\u017edy \u2013 login jeho jm\u00e9nem nikdo jin\u00fd poslat nedok\u00e1\u017ee, tak\u017ee \u00fatok adminy nezamkne. P\u0159ehran\u00fd login bez hesla u\u017e nevyvol\u00e1 flood odpov\u011b\u010f. Login klienta z ACL s pr\u00e1zdn\u00fdm heslem nem\u011bl ochranu proti p\u0159ehr\u00e1n\u00ed; \u00fato\u010dn\u00edk t\u00edm nic nez\u00edskal, ale ka\u017ed\u00e1 kopie donutila uzel poslat odpov\u011b\u010f floodem p\u0159es cel\u00fd mesh. TRACE u\u017e nep\u0159ipisuje cestu za konec payloadu; parsov\u00e1n\u00ed TRACE/PATH a Packet::readFrom hl\u00eddaj\u00ed meze. markSeen je zase idempotentn\u00ed (odes\u00edlac\u00ed cesta uj\u00eddala okno deduplikace). Z\u00e1lo\u017en\u00ed v\u00fdpo\u010det v calcMaxPacketMillis u\u017e nepodte\u010de (uzel na tom ohluchl). \u0160\u00ed\u0159ka path hashe se bere z nastaven\u00ed uzlu na v\u0161ech cest\u00e1ch vys\u00edl\u00e1n\u00ed v\u010detn\u011b sendZeroHop ; v\u00fdchoz\u00ed jsou 2bajtov\u00e9 path hashe ( PATH_HASH_MODE_DEFAULT ). Nepoveden\u00e9 vys\u00edl\u00e1n\u00ed se za\u0159ad\u00ed znovu s odstupem, m\u00edsto aby se zahodilo. RSSI ka\u017ed\u00e9ho paketu se zaznamen\u00e1 p\u0159i p\u0159\u00edjmu; ContactInfo se p\u0159ed \u010d\u00e1ste\u010dn\u00fdm vypln\u011bn\u00edm vynuluje.","title":"Opravy j\u00e1dra"},{"location":"#napajeni-hodiny-gps","text":"GPS duty cycle ( gps duty ), i na T1000-E, kde nebyl: p\u0159ij\u00edma\u010d b\u011b\u017e\u00ed jen kolem synchronizace hodin (jednou denn\u011b, po ne\u00fasp\u011b\u0161n\u00e9m okn\u011b znovu za 6 h). Dotaz na polohu p\u0159ij\u00edma\u010d probud\u00ed pro p\u0159\u00ed\u0161t\u00ed dotaz. Uzel bez GPS startuje na \u010dase sestaven\u00ed firmwaru, ne v roce 2024; hodiny a z\u00e1znam o hardfaultu p\u0159e\u017eij\u00ed tepl\u00fd reset ( .noinit ); clkreboot . Na sol\u00e1rn\u00edch uzlech \u017e\u00e1dn\u00e1 blikaj\u00edc\u00ed LED a pomalej\u0161\u00ed BLE advertising. Stav baterie jako ikona na konci advertovan\u00e9ho jm\u00e9na: set batt.icon on , prahy set batt.icon.lo|hi (v\u00fdchoz\u00ed vypnut\u00e9; dlouh\u00e9 jm\u00e9no ikonu nepojme a p\u0159\u00edkaz na to upozorn\u00ed). Voliteln\u00fd RX duty cycle ( set radio.rxps off|on|balanced|max , jemn\u011bji level <1-10> ; port PowerSaving z EasySkyMesh): SX1262 mezi kr\u00e1tk\u00fdmi okny poslechu sp\u00ed. Ve ve\u0159ejn\u00fdch buildech je zabudovan\u00fd a vypnut\u00fd ; max na lavici u\u0161et\u0159il ~2,3 mA bez ztr\u00e1ty paket\u016f ( docs/power.md ), na ostr\u00e9m meshi ale jeden n\u00e1\u0161 sto\u017e\u00e1r ztratil 16 % p\u0159\u00edjmu \u2013 zap\u00ednat s rozmyslem. Jen SX1262, ne LR1110 (T1000-E). Podp\u011b\u0165ov\u00e1 pojistka p\u0159i startu ( PWRMGT_VOLTAGE_BOOTLOCK ) je na nRF52 vypnut\u00e1 , stejn\u011b jako v upstreamu od v1.18.0 ( #2377 ): pevn\u00fd pr\u00e1h 3,3 V nepou\u0161t\u011bl k \u017eivotu uzly na LiFePO4 nebo LTO. Firmware tak nab\u011bhne na jak\u00e9koli chemii \u010dl\u00e1nku; p\u0159ed hlubok\u00fdm vybit\u00edm m\u00e1 chr\u00e1nit BMS nebo ochrann\u00e1 desti\u010dka \u010dl\u00e1nku. Konfigurovateln\u00e1 pojistka podle chemie \u010dek\u00e1 na upstream ( #2088 ). V\u00fdjimkou je SenseCap_Solar_repeater (Li-ion, na\u0161e sto\u017e\u00e1ry): pojistka je zapnut\u00e1 a oba prahy jdou nastavit za b\u011bhu, i p\u0159es mesh jako admin \u2013 set pwr.bootlock |off (v\u00fdchoz\u00ed 3300, pod n\u00edm uzel nenab\u011bhne a sp\u00ed, dokud se \u010dl\u00e1nek nezotav\u00ed) a set pwr.cutoff |off (v\u00fdchoz\u00ed vypnuto, pod n\u00edm se b\u011b\u017e\u00edc\u00ed uzel vypne); get pwr ( docs/power.md ).","title":"Nap\u00e1jen\u00ed, hodiny, GPS"},{"location":"#senzory-a-companiony","text":"simple_sensor : telemetrie z extern\u00ed stanice po UART ( BudkaLinkSensorManager , jeden LPP kan\u00e1l na veli\u010dinu), sensor read . Senzory, kter\u00e9 jinak m\u011b\u0159\u00ed nep\u0159etr\u017eit\u011b (INA219, INA226, INA260, INA3221, BMP280), mezi \u010dten\u00edmi telemetrie sp\u00ed a m\u011b\u0159\u00ed jen na vy\u017e\u00e1d\u00e1n\u00ed (n\u00e1pad a prvn\u00ed patch pro INA219: Alkel Brostl). \u010cipy INA se rozli\u0161uj\u00ed podle ID, tak\u017ee INA226 u\u017e se nedetekuje jako INA219. Odpor bo\u010dn\u00edku se nastavuje za b\u011bhu a ukl\u00e1d\u00e1 se: sensor set ina.shunt . Companion: gps duty p\u0159e\u017eije reboot, kopie data sestaven\u00ed m\u00e1 hl\u00eddanou d\u00e9lku. Export priv\u00e1tn\u00edho kl\u00ed\u010de, \u010dten\u00ed BLE PINu a jeho zm\u011bna (i p\u0159es CLI set pin ) jdou jen p\u0159es sp\u00e1rovan\u00e9 BLE, ne p\u0159es USB, UART ani WiFi/TCP, a odpov\u011b\u010f s kl\u00ed\u010dem \u010di PINem jde jen tam, odkud p\u0159i\u0161el dotaz. (Merge v1.17 tu kontrolu potichu vy\u0159adil; build bez BLE bere sv\u00e9 jedin\u00e9 rozhran\u00ed d\u00e1l jako d\u016fv\u011bryhodn\u00e9.) KISS modem: oprava o jedna vedle p\u0159i zkracov\u00e1n\u00ed jm\u00e9na.","title":"Senzory a companiony"},{"location":"#verejne-buildy-vychozi-nastaveni-pro-cesky-mesh","text":"Releasy z tohoto repozit\u00e1\u0159e ( pub-release ) jsou p\u0159ednastaven\u00e9 pro \u010desk\u00fd mesh podle wiki meshcore.cz , tak\u017ee \u010derstv\u011b nahran\u00fd uzel nepot\u0159ebuje obvykl\u00e9 kole\u010dko nastavov\u00e1n\u00ed: r\u00e1dio 869,432 MHz / 62,5 kHz / SF7 / CR5 (v\u0161echny buildy); repeater a room server: zero-hop advert vypnut\u00fd, flood advert ka\u017ed\u00fdch 25 h, duty cycle 10 % ( get dutycycle \u2192 10.0% ; zastaral\u00e9 af je 9); repeater: regiony cz a cs vedle * \u2013 vlastn\u00ed cz- p\u0159id\u00e1\u0161 p\u0159es region put cz-xxx cz + region save ; 2bajtov\u00e9 path hashe (v\u00fdchoz\u00ed v tomto forku); repeater: filtr kan\u00e1l\u016f ( filter add ) je zabudovan\u00fd pro Public, #meshcore a #test , s pr\u00e1zdn\u00fdm seznamem \u2013 ned\u011bl\u00e1 nic, dokud do n\u011bj nep\u0159id\u00e1\u0161 jm\u00e9no. Plat\u00ed jen pro uzel bez ulo\u017een\u00e9ho nastaven\u00ed (nov\u00fd nebo po erase ): nov\u00e9 nahr\u00e1n\u00ed ponech\u00e1, co u\u017e uzel m\u00e1, a regiony, kter\u00e9 jsi smazal a ulo\u017eil, z\u016fstanou smazan\u00e9. Jm\u00e9no a admin heslo si nastav s\u00e1m. BLE PIN companionu je ve\u0159ejn\u00fd 123456 (desky s displejem si losuj\u00ed vlastn\u00ed a uk\u00e1\u017eou ho). Kdo se s n\u00edm sp\u00e1ruje, m\u00e1 companion cel\u00fd: zpr\u00e1vy, kontakty, export priv\u00e1tn\u00edho kl\u00ed\u010de. Po prvn\u00edm sp\u00e1rov\u00e1n\u00ed ho proto zm\u011b\u0148 v aplikaci. A s deskou v ruce nechr\u00e1n\u00ed nic ani PIN, ani heslo: flash nen\u00ed zam\u010den\u00e1 a bootloader p\u0159ijme jak\u00fdkoli firmware. Ztracen\u00fd nebo ukraden\u00fd uzel ber jako vyzrazen\u00fd \u2013 u repeateru zm\u011b\u0148 admin heslo v\u0161ude, kde bylo stejn\u00e9, a vyho\u010f jeho kl\u00ed\u010d z ACL; u companionu ber kan\u00e1ly, kter\u00e9 na n\u011bm byly, jako zn\u00e1m\u00e9. Varianty observer ( *_repeater-observer-* ) nRF52 repeater\u016f (XIAO, SenseCAP Solar, RAK4631, T1000-E, Heltec T114) p\u0159id\u00e1vaj\u00ed buffery nodes / rxlog / pktlog a textovou konzoli p\u0159es BLE, aby \u0161el repeater \u010d\u00edst p\u0159es USB nebo BLE ( meshcore-repeater-observer ). BLE konzole je po nahr\u00e1n\u00ed vypnut\u00e1 ( RPT_BLE_DEFAULT_OFF ). Nem\u00e1 vlastn\u00ed p\u0159ihl\u00e1\u0161en\u00ed, jen BLE PIN, a PIN v buildu je ve\u0159ejn\u00fd z\u00e1stupn\u00fd 123456 . Nejd\u0159\u00edv si proto nastav vlastn\u00ed \u2013 v USB konzoli, nebo jako admin p\u0159es mesh (vzd\u00e1len\u00e9 CLI v aplikaci): ble pin <6 \u010d\u00edslic> (ulo\u017e\u00ed se a p\u0159e\u017eije reboot i nov\u00e9 nahr\u00e1n\u00ed; z\u00e1rove\u0148 sma\u017ee v\u0161echny bondy, tak\u017ee sp\u00e1rovan\u00e1 za\u0159\u00edzen\u00ed se p\u00e1ruj\u00ed znovu). Teprve pak ble on \u2013 dokud je PIN z\u00e1stupn\u00fd, tyhle buildy ho odm\u00edtnou. ble uk\u00e1\u017ee, jestli je PIN own nebo build default , samotn\u00fd PIN nikdy. Releasy do tth-654d53f3 ble pin nemaj\u00ed: BLE tam nech vypnut\u00e9 a pou\u017e\u00edvej USB.","title":"Ve\u0159ejn\u00e9 buildy: v\u00fdchoz\u00ed nastaven\u00ed pro \u010desk\u00fd mesh"},{"location":"#nahrani-releasu","text":"Ka\u017ed\u00fd release je automatick\u00fd build nad upstreamov\u00fdm dev (viz upozorn\u011bn\u00ed naho\u0159e), ne stabiln\u00ed verze. Nahr\u00e1vejte ho jen na uzly, na kter\u00e9 dos\u00e1hnete, a nov\u00fd release v\u017edy nejd\u0159\u00edv na jeden z nich. Soubory jsou v Releases . Release se jmenuje podle upstreamov\u00e9 verze a data, nap\u0159. v1.18.0+tth.20261112 (druh\u00fd t\u00e9ho\u017e dne .2 ), a v popisu m\u00e1 zm\u011bny od p\u0159edchoz\u00edho releasu. Pro ka\u017edou desku a roli je jedna sada ( _- , nap\u0159. Xiao_nrf52_repeater-v1.18.0+tth.20261112.zip ): .zip a .uf2 pro nRF52, .bin pro ESP32 ( -merged.bin je cel\u00fd obraz pro pr\u00e1zdnou desku, oby\u010dejn\u00fd .bin aktualizace). Kontroln\u00ed sou\u010dty jsou v SHA256SUMS . Releasy do 12. 11. 2026 se jmenovaly tth- . nRF52 (XIAO, RAK4631, SenseCAP Solar, T1000-E, T114) p\u0159es webov\u00fd flasher MeshCore \u2013 Chrome, Edge nebo Chromium na po\u010d\u00edta\u010di (Web Serial; ne Firefox ani Safari): P\u0159ipoj desku p\u0159es USB. Klikni na Custom Firmware a vyber .zip pro svou desku. Klikni na Enter DFU mode a vyber s\u00e9riov\u00fd port desky. Deska se restartuje do bootloaderu a objev\u00ed se jako nov\u00fd port. Klikni na Flash! a vyber ten nov\u00fd port. Zhruba 30 s, pak se deska restartuje do nov\u00e9ho firmwaru. Console ve flasheru (nebo jak\u00fdkoli s\u00e9riov\u00fd termin\u00e1l, 115200) ov\u011b\u0159\u00ed v\u00fdsledek: ver uk\u00e1\u017ee v1.xx.x-tth , stejn\u011b jako \u0159\u00e1dek \u201eVerze v uzlu\u201c v popisu releasu. Neklikej na Erase Flash , pokud nechce\u0161 nov\u00fd uzel: sma\u017ee identitu (kl\u00ed\u010d uzlu a v\u0161echno, co ho zn\u00e1) i ve\u0161ker\u00e9 nastaven\u00ed. Oby\u010dejn\u00e9 nahr\u00e1n\u00ed je zachov\u00e1. Vyzkou\u0161eno na XIAO (repeater-observer, 3. 11. 2026). ESP32 .bin p\u0159es stejn\u00e9 tla\u010d\u00edtko Custom Firmware tu vyzkou\u0161en\u00e9 nen\u00ed. Bez webov\u00e9ho flasheru: na v\u011bt\u0161in\u011b desek otev\u0159e dvoj\u00ed stisk resetu bootloader jako USB disk; zkop\u00edruj na n\u011bj .uf2 . Nebo adafruit-nrfutil dfu serial -pkg .zip -p -b 115200 s deskou v bootloaderu. Nov\u00fd uzel po nahr\u00e1n\u00ed nastav v konzoli: set name , password (nejv\u00fd\u0161 15 znak\u016f), vlastn\u00ed region p\u0159es region put cz- cz + region save . Repeater p\u0159epos\u00edl\u00e1 od prvn\u00edho startu (v\u00fdchoz\u00ed v upstreamu) a tyhle buildy jsou na ostr\u00e9 CZ frekvenci: na stole bez ant\u00e9ny dej set repeat off , dokud nen\u00ed na m\u00edst\u011b.","title":"Nahr\u00e1n\u00ed releasu"},{"location":"#experimentalni-aktualizace-firmwaru-od-admina-ota","text":"Ka\u017ed\u00fd nRF52 build s textovou konzol\u00ed (repeater, observer, room server, senzor) je v releasu je\u0161t\u011b jednou jako experiment\u00e1ln\u00ed *-ota / *-observer-ota . Ten um\u00ed p\u0159ijmout nov\u00fd firmware od admina p\u0159\u00edkazy fw \u2026 : v USB nebo BLE konzoli, nebo p\u0159es mesh jako vzd\u00e1len\u00e9 admin CLI . Bez zm\u011bny bootloaderu a bez druh\u00e9 banky: uzel si bal\u00ed\u010dek ulo\u017e\u00ed do voln\u00e9 flash, zkontroluje ho cel\u00fd (podpis, hashe, nane\u010disto proveden\u00e1 delta) a p\u0159ep\u00ed\u0161e se a\u017e na fw apply , rutinou b\u011b\u017e\u00edc\u00ed z RAM. Kdy\u017e b\u011bhem p\u0159episu vypadne nap\u00e1jen\u00ed, z\u016fstane v bootloaderu a vr\u00e1t\u00ed se p\u0159es USB/BLE DFU. V releasu je ke ka\u017ed\u00e9mu *-ota obrazu pln\u00fd bal\u00ed\u010dek _-ota-.mcfw (jen p\u0159es USB/BLE) a delta \u2026.from-.mcfw od ka\u017ed\u00e9ho dr\u017een\u00e9ho p\u0159edchoz\u00edho releasu, typicky jednotky kB. P\u0159es mesh uzel p\u0159ijme jen deltu, a nikdy ne star\u0161\u00ed verzi, ne\u017e m\u00e1 \u2013 vynucuje to uzel, ne n\u00e1stroj. Pln\u00fd obraz nebo n\u00e1vrat ke star\u0161\u00ed verzi jen lok\u00e1ln\u011b ( fw apply downgrade ). fw apply \u010dek\u00e1 na baterii \u2265 3,8 V, pokud uzel neb\u011b\u017e\u00ed z USB. Bal\u00ed\u010dky i SHA256SUMS jsou podepsan\u00e9 kl\u00ed\u010dem meshcore-ota@tth-pub a *-ota obraz jin\u00fd podpis nep\u0159ijme. Ov\u011b\u0159en\u00ed sta\u017een\u00fdch soubor\u016f: ssh-keygen -Y verify -f tools/ota_allowed_signers -I meshcore-ota@tth-pub -n meshcore-ota -s SHA256SUMS.sig < SHA256SUMS . Vlastn\u00ed build s vlastn\u00edm kl\u00ed\u010dem: [ota] pubkey v platformio.local.ini . Prvn\u00ed *-ota obraz se nahraje oby\u010dejn\u011b (viz v\u00fd\u0161e), dal\u0161\u00ed u\u017e jako delta. N\u00e1stroje: tools/ota_push.py (USB), tools/ota_mesh_push.py (p\u0159es mesh skrz companion; pot\u0159ebuje pythonovou knihovnu meshcore , admin heslo bere z [secrets] admin_pw v platformio.local.ini ; s --side jde p\u0159enos po vedlej\u0161\u00edm kan\u00e1lu mimo sd\u00edlen\u00fd mesh), tools/ota_pack.py info . P\u0159enos samotn\u00fd je OTA engine kolekce tth.meshcore (modul meshcore_fw_ota ), stejn\u00fd k\u00f3d pro n\u00e1stroje i Ansible. Z telefonu: fork aplikace meshcore-open , spr\u00e1va repeateru \u2192 Firmware update (OTA), deltu si najde v releasu s\u00e1m. Postup a \u010d\u00edsla: docs/ota.md . Experiment\u00e1ln\u00ed i v r\u00e1mci tohoto forku : obrazy p\u0159ich\u00e1zej\u00ed s ka\u017ed\u00fdm releasem (viz upozorn\u011bn\u00ed naho\u0159e) a nemaj\u00ed druhou banku ani automatick\u00fd n\u00e1vrat. Vadn\u00fd firmware, kter\u00fd nabootuje, b\u011b\u017e\u00ed, dokud nepo\u0161lete dal\u0161\u00ed; takov\u00fd, kter\u00fd nenabootuje, chce USB/BLE DFU v ruce. Vyzkou\u0161eno na lavici (XIAO, USB, mesh, vedlej\u0161\u00ed kan\u00e1l) a od 13. 11. 2026 na dvou na\u0161ich sto\u017e\u00e1rech. Proti obrazu, kter\u00fd nabootuje s mrtv\u00fdm r\u00e1diem, jsou watchdogy r\u00e1dia (viz Diagnostika a provoz): pro uzly, kam pos\u00edl\u00e1te OTA, zapn\u011bte set radio.silence . Stoj\u00ed ~10 kB RAM nav\u00edc.","title":"Experiment\u00e1ln\u00ed: aktualizace firmwaru od admina (*-ota)"},{"location":"#sestaveni","text":"Raz\u00edtko verze v ka\u017ed\u00e9m nRF52 envu ( v1.18.0-tth , + = neuklizen\u00fd strom), z\u00e1kladn\u00ed verze z upstreamov\u00e9ho tagu ( tools/build_version.py ). tools/ : n\u00e1stroje na uzly \u2013 konzole (USB, BLE), flashov\u00e1n\u00ed, testy na lavici, diagnostika ( tools/README.md ). Desky podle jm\u00e9na bere z lok\u00e1ln\u00edho configu mimo repo ( tools/config.example.ini ). hardware/cavity-box : parametrick\u00e1 krabi\u010dka pro dutinov\u00fd filtr na sto\u017e\u00e1r.","title":"Sestaven\u00ed"},{"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] \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":"Koexistence BLE/LoRa"},{"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-dbm-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] \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 jako senzor \u00b7 Budka 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 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 TeTeHacko 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 (TeTeHacko fork) 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 on|off 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 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) -- CUSTOM (TeTeHacko) Usage: - get radio.rxps - set radio.rxps off|on|balanced|max - set radio.rxps level <1-10> [preamble <16|32>] - set radio.rxps max preamble <16|32> 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; 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) 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) 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) 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) 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 . 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