1636 lines
51 KiB
HTML
1636 lines
51 KiB
HTML
|
|
<!doctype html>
|
|
<html lang="en" class="no-js">
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
|
|
<meta name="description" content="MeshCore fork meshcore-tth -- repeater antispam, diagnostics, OTA, Czech mesh defaults">
|
|
|
|
|
|
|
|
<link rel="canonical" href="https://tth-pub.pages.rfa.cz/meshcore-tth/en/">
|
|
|
|
|
|
<link rel="prev" href="..">
|
|
|
|
|
|
<link rel="next" href="../tth-commands/">
|
|
|
|
|
|
|
|
|
|
|
|
<link rel="icon" href="../_assets/meshcore-tth.svg">
|
|
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.8.2">
|
|
|
|
|
|
|
|
<title>About the fork (English) - MeshCore TTH</title>
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="../assets/stylesheets/main.57a0d79d.min.css">
|
|
|
|
|
|
<link rel="stylesheet" href="../assets/stylesheets/palette.fb2fffe2.min.css">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="../_stylesheets/extra.css">
|
|
|
|
<link rel="stylesheet" href="../_stylesheets/tth.css">
|
|
|
|
<script>__md_scope=new URL("..",location),__md_hash=e=>[...e].reduce(((e,_)=>(e<<5)-e+_.charCodeAt(0)),0),__md_get=(e,_=localStorage,t=__md_scope)=>JSON.parse(_.getItem(t.pathname+"."+e)),__md_set=(e,_,t=localStorage,a=__md_scope)=>{try{t.setItem(a.pathname+"."+e,JSON.stringify(_))}catch(e){}}</script>
|
|
|
|
|
|
|
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<body dir="ltr" data-md-color-scheme="slate" data-md-color-primary="custom" data-md-color-accent="custom">
|
|
|
|
|
|
<input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
|
|
<input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
|
|
<label class="md-overlay" for="__drawer"></label>
|
|
<div data-md-component="skip">
|
|
|
|
|
|
<a href="#about-this-fork-meshcore-tth" class="md-skip">
|
|
Skip to content
|
|
</a>
|
|
|
|
</div>
|
|
<div data-md-component="announce">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<header class="md-header md-header--shadow" data-md-component="header">
|
|
<nav class="md-header__inner md-grid" aria-label="Header">
|
|
<a href=".." title="MeshCore TTH" class="md-header__button md-logo" aria-label="MeshCore TTH" data-md-component="logo">
|
|
|
|
<img src="../_assets/meshcore-tth.svg" alt="logo">
|
|
|
|
</a>
|
|
<label class="md-header__button md-icon" for="__drawer">
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3zm0 5h18v2H3zm0 5h18v2H3z"/></svg>
|
|
</label>
|
|
<div class="md-header__title" data-md-component="header-title">
|
|
<div class="md-header__ellipsis">
|
|
<div class="md-header__topic">
|
|
<span class="md-ellipsis">
|
|
MeshCore TTH
|
|
</span>
|
|
</div>
|
|
<div class="md-header__topic" data-md-component="header-topic">
|
|
<span class="md-ellipsis">
|
|
|
|
About the fork (English)
|
|
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<form class="md-header__option" data-md-component="palette">
|
|
|
|
|
|
|
|
|
|
<input class="md-option" data-md-color-media="" data-md-color-scheme="slate" data-md-color-primary="custom" data-md-color-accent="custom" aria-label="Světlý režim · light mode" type="radio" name="__palette" id="__palette_0">
|
|
|
|
<label class="md-header__button md-icon" title="Světlý režim · light mode" for="__palette_1" hidden>
|
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 7a5 5 0 0 1 5 5 5 5 0 0 1-5 5 5 5 0 0 1-5-5 5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3m0-7 2.39 3.42C13.65 5.15 12.84 5 12 5s-1.65.15-2.39.42zM3.34 7l4.16-.35A7.2 7.2 0 0 0 5.94 8.5c-.44.74-.69 1.5-.83 2.29zm.02 10 1.76-3.77a7.131 7.131 0 0 0 2.38 4.14zM20.65 7l-1.77 3.79a7.02 7.02 0 0 0-2.38-4.15zm-.01 10-4.14.36c.59-.51 1.12-1.14 1.54-1.86.42-.73.69-1.5.83-2.29zM12 22l-2.41-3.44c.74.27 1.55.44 2.41.44.82 0 1.63-.17 2.37-.44z"/></svg>
|
|
</label>
|
|
|
|
|
|
|
|
|
|
|
|
<input class="md-option" data-md-color-media="" data-md-color-scheme="default" data-md-color-primary="custom" data-md-color-accent="custom" aria-label="Tmavý režim · dark mode" type="radio" name="__palette" id="__palette_1">
|
|
|
|
<label class="md-header__button md-icon" title="Tmavý režim · dark mode" for="__palette_0" hidden>
|
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m17.75 4.09-2.53 1.94.91 3.06-2.63-1.81-2.63 1.81.91-3.06-2.53-1.94L12.44 4l1.06-3 1.06 3zm3.5 6.91-1.64 1.25.59 1.98-1.7-1.17-1.7 1.17.59-1.98L15.75 11l2.06-.05L18.5 9l.69 1.95zm-2.28 4.95c.83-.08 1.72 1.1 1.19 1.85-.32.45-.66.87-1.08 1.27C15.17 23 8.84 23 4.94 19.07c-3.91-3.9-3.91-10.24 0-14.14.4-.4.82-.76 1.27-1.08.75-.53 1.93.36 1.85 1.19-.27 2.86.69 5.83 2.89 8.02a9.96 9.96 0 0 0 8.02 2.89m-1.64 2.02a12.08 12.08 0 0 1-7.8-3.47c-2.17-2.19-3.33-5-3.49-7.82-2.81 3.14-2.7 7.96.31 10.98 3.02 3.01 7.84 3.12 10.98.31"/></svg>
|
|
</label>
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<script>var palette=__md_get("__palette");if(palette&&palette.color){if("(prefers-color-scheme)"===palette.color.media){var media=matchMedia("(prefers-color-scheme: light)"),input=document.querySelector(media.matches?"[data-md-color-media='(prefers-color-scheme: light)']":"[data-md-color-media='(prefers-color-scheme: dark)']");palette.color.media=input.getAttribute("data-md-color-media"),palette.color.scheme=input.getAttribute("data-md-color-scheme"),palette.color.primary=input.getAttribute("data-md-color-primary"),palette.color.accent=input.getAttribute("data-md-color-accent")}for(var[key,value]of Object.entries(palette.color))document.body.setAttribute("data-md-color-"+key,value)}</script>
|
|
|
|
|
|
|
|
|
|
|
|
<label class="md-header__button md-icon" for="__search">
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.52 6.52 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5"/></svg>
|
|
</label>
|
|
<div class="md-search" data-md-component="search" role="dialog">
|
|
<label class="md-search__overlay" for="__search"></label>
|
|
<div class="md-search__inner" role="search">
|
|
<form class="md-search__form" name="search">
|
|
<input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" required>
|
|
<label class="md-search__icon md-icon" for="__search">
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.52 6.52 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5"/></svg>
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11z"/></svg>
|
|
</label>
|
|
<nav class="md-search__options" aria-label="Search">
|
|
|
|
<button type="reset" class="md-search__icon md-icon" title="Clear" aria-label="Clear" tabindex="-1">
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>
|
|
</button>
|
|
</nav>
|
|
|
|
<div class="md-search__suggest" data-md-component="search-suggest"></div>
|
|
|
|
</form>
|
|
<div class="md-search__output">
|
|
<div class="md-search__scrollwrap" tabindex="0" data-md-scrollfix>
|
|
<div class="md-search-result" data-md-component="search-result">
|
|
<div class="md-search-result__meta">
|
|
Initializing search
|
|
</div>
|
|
<ol class="md-search-result__list" role="presentation"></ol>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="md-header__source">
|
|
<a href="https://git.rfa.cz/tth-pub/meshcore-tth" title="Go to repository" class="md-source" data-md-component="source">
|
|
<div class="md-source__icon md-icon">
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2025 Fonticons, Inc.--><path d="M439.6 236.1 244 40.5c-5.4-5.5-12.8-8.5-20.4-8.5s-15 3-20.4 8.4L162.5 81l51.5 51.5c27.1-9.1 52.7 16.8 43.4 43.7l49.7 49.7c34.2-11.8 61.2 31 35.5 56.7-26.5 26.5-70.2-2.9-56-37.3L240.3 199v121.9c25.3 12.5 22.3 41.8 9.1 55-6.4 6.4-15.2 10.1-24.3 10.1s-17.8-3.6-24.3-10.1c-17.6-17.6-11.1-46.9 11.2-56v-123c-20.8-8.5-24.6-30.7-18.6-45L142.6 101 8.5 235.1C3 240.6 0 247.9 0 255.5s3 15 8.5 20.4l195.6 195.7c5.4 5.4 12.7 8.4 20.4 8.4s15-3 20.4-8.4l194.7-194.7c5.4-5.4 8.4-12.8 8.4-20.4s-3-15-8.4-20.4"/></svg>
|
|
</div>
|
|
<div class="md-source__repository">
|
|
tth-pub/meshcore-tth
|
|
</div>
|
|
</a>
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
</header>
|
|
|
|
<div class="md-container" data-md-component="container">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<main class="md-main" data-md-component="main">
|
|
<div class="md-main__inner md-grid">
|
|
|
|
|
|
|
|
<div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
|
|
<div class="md-sidebar__scrollwrap">
|
|
<div class="md-sidebar__inner">
|
|
|
|
|
|
|
|
|
|
<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
|
|
<label class="md-nav__title" for="__drawer">
|
|
<a href=".." title="MeshCore TTH" class="md-nav__button md-logo" aria-label="MeshCore TTH" data-md-component="logo">
|
|
|
|
<img src="../_assets/meshcore-tth.svg" alt="logo">
|
|
|
|
</a>
|
|
MeshCore TTH
|
|
</label>
|
|
|
|
<div class="md-nav__source">
|
|
<a href="https://git.rfa.cz/tth-pub/meshcore-tth" title="Go to repository" class="md-source" data-md-component="source">
|
|
<div class="md-source__icon md-icon">
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2025 Fonticons, Inc.--><path d="M439.6 236.1 244 40.5c-5.4-5.5-12.8-8.5-20.4-8.5s-15 3-20.4 8.4L162.5 81l51.5 51.5c27.1-9.1 52.7 16.8 43.4 43.7l49.7 49.7c34.2-11.8 61.2 31 35.5 56.7-26.5 26.5-70.2-2.9-56-37.3L240.3 199v121.9c25.3 12.5 22.3 41.8 9.1 55-6.4 6.4-15.2 10.1-24.3 10.1s-17.8-3.6-24.3-10.1c-17.6-17.6-11.1-46.9 11.2-56v-123c-20.8-8.5-24.6-30.7-18.6-45L142.6 101 8.5 235.1C3 240.6 0 247.9 0 255.5s3 15 8.5 20.4l195.6 195.7c5.4 5.4 12.7 8.4 20.4 8.4s15-3 20.4-8.4l194.7-194.7c5.4-5.4 8.4-12.8 8.4-20.4s-3-15-8.4-20.4"/></svg>
|
|
</div>
|
|
<div class="md-source__repository">
|
|
tth-pub/meshcore-tth
|
|
</div>
|
|
</a>
|
|
</div>
|
|
|
|
<ul class="md-nav__list" data-md-scrollfix>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item md-nav__item--active md-nav__item--section md-nav__item--nested">
|
|
|
|
|
|
|
|
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_1" checked>
|
|
|
|
|
|
<label class="md-nav__link" for="__nav_1" id="__nav_1_label" tabindex="">
|
|
|
|
|
|
|
|
<span class="md-ellipsis">
|
|
|
|
|
|
Fork meshcore-tth
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<span class="md-nav__icon md-icon"></span>
|
|
</label>
|
|
|
|
<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_1_label" aria-expanded="true">
|
|
<label class="md-nav__title" for="__nav_1">
|
|
<span class="md-nav__icon md-icon"></span>
|
|
|
|
|
|
Fork meshcore-tth
|
|
|
|
|
|
</label>
|
|
<ul class="md-nav__list" data-md-scrollfix>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item">
|
|
<a href=".." class="md-nav__link">
|
|
|
|
|
|
|
|
<span class="md-ellipsis">
|
|
|
|
|
|
O forku (česky)
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item md-nav__item--active">
|
|
|
|
<input class="md-nav__toggle md-toggle" type="checkbox" id="__toc">
|
|
|
|
|
|
|
|
|
|
|
|
<label class="md-nav__link md-nav__link--active" for="__toc">
|
|
|
|
|
|
|
|
<span class="md-ellipsis">
|
|
|
|
|
|
About the fork (English)
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<span class="md-nav__icon md-icon"></span>
|
|
</label>
|
|
|
|
<a href="./" class="md-nav__link md-nav__link--active">
|
|
|
|
|
|
|
|
<span class="md-ellipsis">
|
|
|
|
|
|
About the fork (English)
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<label class="md-nav__title" for="__toc">
|
|
<span class="md-nav__icon md-icon"></span>
|
|
Table of contents
|
|
</label>
|
|
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
|
|
|
|
<li class="md-nav__item">
|
|
<a href="#repeater-antispam-all-of-it-off-switchable-none-of-it-upstream" class="md-nav__link">
|
|
<span class="md-ellipsis">
|
|
|
|
Repeater: antispam (all of it off-switchable, none of it upstream)
|
|
|
|
</span>
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="md-nav__item">
|
|
<a href="#diagnostics-and-operations" class="md-nav__link">
|
|
<span class="md-ellipsis">
|
|
|
|
Diagnostics and operations
|
|
|
|
</span>
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="md-nav__item">
|
|
<a href="#core-fixes" class="md-nav__link">
|
|
<span class="md-ellipsis">
|
|
|
|
Core fixes
|
|
|
|
</span>
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="md-nav__item">
|
|
<a href="#power-clock-gps" class="md-nav__link">
|
|
<span class="md-ellipsis">
|
|
|
|
Power, clock, GPS
|
|
|
|
</span>
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="md-nav__item">
|
|
<a href="#sensors-and-companions" class="md-nav__link">
|
|
<span class="md-ellipsis">
|
|
|
|
Sensors and companions
|
|
|
|
</span>
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="md-nav__item">
|
|
<a href="#public-builds-czech-mesh-defaults" class="md-nav__link">
|
|
<span class="md-ellipsis">
|
|
|
|
Public builds: Czech mesh defaults
|
|
|
|
</span>
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="md-nav__item">
|
|
<a href="#flashing-a-release" class="md-nav__link">
|
|
<span class="md-ellipsis">
|
|
|
|
Flashing a release
|
|
|
|
</span>
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="md-nav__item">
|
|
<a href="#experimental-firmware-update-pushed-by-the-admin-ota" class="md-nav__link">
|
|
<span class="md-ellipsis">
|
|
|
|
Experimental: firmware update pushed by the admin (*-ota)
|
|
|
|
</span>
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="md-nav__item">
|
|
<a href="#build" class="md-nav__link">
|
|
<span class="md-ellipsis">
|
|
|
|
Build
|
|
|
|
</span>
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item">
|
|
<a href="../tth-commands/" class="md-nav__link">
|
|
|
|
|
|
|
|
<span class="md-ellipsis">
|
|
|
|
|
|
Příkazy konzole · console commands
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item">
|
|
<a href="../ota/" class="md-nav__link">
|
|
|
|
|
|
|
|
<span class="md-ellipsis">
|
|
|
|
|
|
Aktualizace od admina · OTA
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item">
|
|
<a href="../power/" class="md-nav__link">
|
|
|
|
|
|
|
|
<span class="md-ellipsis">
|
|
|
|
|
|
Napájení · power
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item">
|
|
<a href="../budka-sensor/" class="md-nav__link">
|
|
|
|
|
|
|
|
<span class="md-ellipsis">
|
|
|
|
|
|
Budka jako senzor · Budka sensor
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item">
|
|
<a href="../ble-lora-coexistence/" class="md-nav__link">
|
|
|
|
|
|
|
|
<span class="md-ellipsis">
|
|
|
|
|
|
Koexistence BLE/LoRa
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
</ul>
|
|
</nav>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item md-nav__item--section md-nav__item--nested">
|
|
|
|
|
|
|
|
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_2" >
|
|
|
|
|
|
<label class="md-nav__link" for="__nav_2" id="__nav_2_label" tabindex="">
|
|
|
|
|
|
|
|
<span class="md-ellipsis">
|
|
|
|
|
|
MeshCore (upstream)
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<span class="md-nav__icon md-icon"></span>
|
|
</label>
|
|
|
|
<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_2_label" aria-expanded="false">
|
|
<label class="md-nav__title" for="__nav_2">
|
|
<span class="md-nav__icon md-icon"></span>
|
|
|
|
|
|
MeshCore (upstream)
|
|
|
|
|
|
</label>
|
|
<ul class="md-nav__list" data-md-scrollfix>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item">
|
|
<a href="../meshcore/" class="md-nav__link">
|
|
|
|
|
|
|
|
<span class="md-ellipsis">
|
|
|
|
|
|
Introduction
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item">
|
|
<a href="../faq/" class="md-nav__link">
|
|
|
|
|
|
|
|
<span class="md-ellipsis">
|
|
|
|
|
|
FAQ
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item">
|
|
<a href="../cli_commands/" class="md-nav__link">
|
|
|
|
|
|
|
|
<span class="md-ellipsis">
|
|
|
|
|
|
CLI commands
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item">
|
|
<a href="../companion_cli/" class="md-nav__link">
|
|
|
|
|
|
|
|
<span class="md-ellipsis">
|
|
|
|
|
|
Companion CLI
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item">
|
|
<a href="../companion_protocol/" class="md-nav__link">
|
|
|
|
|
|
|
|
<span class="md-ellipsis">
|
|
|
|
|
|
Companion protocol
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item">
|
|
<a href="../terminal_chat_cli/" class="md-nav__link">
|
|
|
|
|
|
|
|
<span class="md-ellipsis">
|
|
|
|
|
|
Terminal chat CLI
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item">
|
|
<a href="../kiss_modem_protocol/" class="md-nav__link">
|
|
|
|
|
|
|
|
<span class="md-ellipsis">
|
|
|
|
|
|
KISS modem protocol
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item">
|
|
<a href="../packet_format/" class="md-nav__link">
|
|
|
|
|
|
|
|
<span class="md-ellipsis">
|
|
|
|
|
|
Packet format
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item">
|
|
<a href="../payloads/" class="md-nav__link">
|
|
|
|
|
|
|
|
<span class="md-ellipsis">
|
|
|
|
|
|
Payloads
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item">
|
|
<a href="../stats_binary_frames/" class="md-nav__link">
|
|
|
|
|
|
|
|
<span class="md-ellipsis">
|
|
|
|
|
|
Stats binary frames
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item">
|
|
<a href="../number_allocations/" class="md-nav__link">
|
|
|
|
|
|
|
|
<span class="md-ellipsis">
|
|
|
|
|
|
Number allocations
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item">
|
|
<a href="../qr_codes/" class="md-nav__link">
|
|
|
|
|
|
|
|
<span class="md-ellipsis">
|
|
|
|
|
|
QR codes
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item">
|
|
<a href="../radio_presets/" class="md-nav__link">
|
|
|
|
|
|
|
|
<span class="md-ellipsis">
|
|
|
|
|
|
Radio presets
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item">
|
|
<a href="../nrf52_power_management/" class="md-nav__link">
|
|
|
|
|
|
|
|
<span class="md-ellipsis">
|
|
|
|
|
|
nRF52 power management
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
</ul>
|
|
</nav>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
</ul>
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
|
|
<div class="md-sidebar__scrollwrap">
|
|
<div class="md-sidebar__inner">
|
|
|
|
|
|
<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<label class="md-nav__title" for="__toc">
|
|
<span class="md-nav__icon md-icon"></span>
|
|
Table of contents
|
|
</label>
|
|
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
|
|
|
|
<li class="md-nav__item">
|
|
<a href="#repeater-antispam-all-of-it-off-switchable-none-of-it-upstream" class="md-nav__link">
|
|
<span class="md-ellipsis">
|
|
|
|
Repeater: antispam (all of it off-switchable, none of it upstream)
|
|
|
|
</span>
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="md-nav__item">
|
|
<a href="#diagnostics-and-operations" class="md-nav__link">
|
|
<span class="md-ellipsis">
|
|
|
|
Diagnostics and operations
|
|
|
|
</span>
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="md-nav__item">
|
|
<a href="#core-fixes" class="md-nav__link">
|
|
<span class="md-ellipsis">
|
|
|
|
Core fixes
|
|
|
|
</span>
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="md-nav__item">
|
|
<a href="#power-clock-gps" class="md-nav__link">
|
|
<span class="md-ellipsis">
|
|
|
|
Power, clock, GPS
|
|
|
|
</span>
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="md-nav__item">
|
|
<a href="#sensors-and-companions" class="md-nav__link">
|
|
<span class="md-ellipsis">
|
|
|
|
Sensors and companions
|
|
|
|
</span>
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="md-nav__item">
|
|
<a href="#public-builds-czech-mesh-defaults" class="md-nav__link">
|
|
<span class="md-ellipsis">
|
|
|
|
Public builds: Czech mesh defaults
|
|
|
|
</span>
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="md-nav__item">
|
|
<a href="#flashing-a-release" class="md-nav__link">
|
|
<span class="md-ellipsis">
|
|
|
|
Flashing a release
|
|
|
|
</span>
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="md-nav__item">
|
|
<a href="#experimental-firmware-update-pushed-by-the-admin-ota" class="md-nav__link">
|
|
<span class="md-ellipsis">
|
|
|
|
Experimental: firmware update pushed by the admin (*-ota)
|
|
|
|
</span>
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="md-nav__item">
|
|
<a href="#build" class="md-nav__link">
|
|
<span class="md-ellipsis">
|
|
|
|
Build
|
|
|
|
</span>
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="md-content" data-md-component="content">
|
|
|
|
<article class="md-content__inner md-typeset">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a href="https://git.rfa.cz/tth-pub/meshcore-tth/src/branch/main/docs/en.md" title="View source of this page" class="md-content__button md-icon">
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17 18c.56 0 1 .44 1 1s-.44 1-1 1-1-.44-1-1 .44-1 1-1m0-3c-2.73 0-5.06 1.66-6 4 .94 2.34 3.27 4 6 4s5.06-1.66 6-4c-.94-2.34-3.27-4-6-4m0 6.5a2.5 2.5 0 0 1-2.5-2.5 2.5 2.5 0 0 1 2.5-2.5 2.5 2.5 0 0 1 2.5 2.5 2.5 2.5 0 0 1-2.5 2.5M9.27 20H6V4h7v5h5v4.07c.7.08 1.36.25 2 .49V8l-6-6H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h4.5a8.2 8.2 0 0 1-1.23-2"/></svg>
|
|
</a>
|
|
|
|
|
|
|
|
<h1 id="about-this-fork-meshcore-tth">About this fork (meshcore-tth)<a class="headerlink" href="#about-this-fork-meshcore-tth" title="Permanent link">¶</a></h1>
|
|
<p><em>Česká verze <a href="../">výše</a>.</em></p>
|
|
<div class="admonition warning">
|
|
<p class="admonition-title">Warning</p>
|
|
<p><strong>Experimental firmware -- not meant for regular users.</strong> This fork and all
|
|
its releases are a personal development branch for the nodes of one small
|
|
network: a rolling release on upstream <code>dev</code>, 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 (<a href="https://flasher.meshcore.io">flasher.meshcore.io</a>).</p>
|
|
</div>
|
|
<p>A fork of <a href="https://github.com/meshcore-dev/MeshCore">meshcore-dev/MeshCore</a>
|
|
that runs the repeaters, sensors and bench boards of a small Czech network on
|
|
the CZ mesh (869.432 MHz). Upstream <code>main</code> and <code>dev</code> are merged automatically
|
|
twice a day; everything below is on top of that. Our code is marked
|
|
<code>CUSTOM (TeTeHacko)</code> in the source. Nothing here changes the wire protocol.</p>
|
|
<h2 id="repeater-antispam-all-of-it-off-switchable-none-of-it-upstream">Repeater: antispam (all of it off-switchable, none of it upstream)<a class="headerlink" href="#repeater-antispam-all-of-it-off-switchable-none-of-it-upstream" title="Permanent link">¶</a></h2>
|
|
<p><strong>After flashing only the FairnessLimiter is on</strong>, 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; <code>fairness off</code>
|
|
switches it off for good. The advert window, the filters and dry-run stay
|
|
off until you turn them on.</p>
|
|
<ul>
|
|
<li><strong>FairnessLimiter</strong> -- 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 <a href="https://github.com/meshcore-dev/MeshCore/pull/1502">#1502</a>,
|
|
limits re-sized from 30 days of real CZ traffic.
|
|
<code>fairness [on|off|grid|cap|refill]</code>; direct-routed traffic is never limited.</li>
|
|
<li><strong>Per-origin advert window</strong> -- each node's flood advert forwarded at most
|
|
once per N hours (<code>fairness advert <h>|clear</code>), ported from
|
|
<a href="https://github.com/Dutch-MeshCore/MeshCore">DutchMeshCore</a>'s AdvertLimiter.
|
|
Aimed at nodes that re-advertise every minute.</li>
|
|
<li><strong>Dry-run</strong> -- <code>fairness dryrun on</code> counts every verdict but forwards anyway;
|
|
<code>fairness air</code> reports the airtime shed (or that would be) per reason.</li>
|
|
<li><strong>Channel filter</strong> -- on channels whose key the repeater knows (Public and
|
|
<code>#hashtag</code> channels), stop forwarding messages of listed sender names
|
|
(<code>filter add|del|list</code>). Names are spoofable: it contains a runaway bot,
|
|
it is not security.</li>
|
|
<li><strong>Channel-hash deny-forward</strong> -- <code>filter hash add <hex> [secs]</code>: keyless,
|
|
works on private channels too; reception is unaffected, only forwarding.
|
|
With <code>secs</code> the channel is throttled (one packet per <code>secs</code>) instead of cut.</li>
|
|
<li><strong>Message age limit</strong> -- <code>filter age <min>|off</code> (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.</li>
|
|
<li><code>filter dryrun on</code> counts every <code>filter</code> verdict but forwards anyway.</li>
|
|
</ul>
|
|
<h2 id="diagnostics-and-operations">Diagnostics and operations<a class="headerlink" href="#diagnostics-and-operations" title="Permanent link">¶</a></h2>
|
|
<p>Every command of the fork, which builds have it and the defaults:
|
|
<a href="https://git.rfa.cz/tth-pub/meshcore-tth/src/branch/main/tth-commands.md">docs/tth-commands.md</a>.</p>
|
|
<p>Repeater, room server and sensor (everything with a text console) have:</p>
|
|
<ul>
|
|
<li><strong>Radio watchdogs.</strong> The hardware watchdog only catches a frozen loop; two
|
|
of our nodes were found deaf with the loop running, and only a reboot
|
|
helped.</li>
|
|
<li><code>set radio.silence <min></code> -- <strong>deaf receiver</strong>: when the received-frame
|
|
counter does not move for <code><min></code> 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; <strong>off by default</strong> (<code>0</code>) -- pick a threshold
|
|
well above the longest normal quiet spell of the site.</li>
|
|
<li><strong>Stalled TX</strong> (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. <strong>On, 15 min</strong> (<code>RADIO_TXSTALL_MIN</code>); <code>set radio.txstall
|
|
<min>|off</code> holds until the next reboot.</li>
|
|
<li><code>get radio.reboots</code> -- reboots done by the watchdogs (survives power
|
|
loss); <code>get boot</code> -- why the board last reset, and the hardfault record
|
|
(also printed at boot).</li>
|
|
<li><code>dfu [uf2|serial|ota]</code> -- a deterministic reboot into the bootloader (local
|
|
console only); <code>i2c</code> -- bus scan.</li>
|
|
</ul>
|
|
<p>The repeater also has:</p>
|
|
<ul>
|
|
<li><code>blink</code> (flashes the LED, also over the mesh -- finds a node on a mast),
|
|
<code>txpwr</code> (TX power until reboot, with RadioLib's verdict), TX-failure
|
|
counters in the status reply.</li>
|
|
<li>Observer variants only (<code>*-observer</code>): text console over BLE next to USB,
|
|
<code>ble on|off</code> saved across reboots (<code>RPT_BLE_DEFAULT_OFF</code>: starts off), own
|
|
BLE PIN (<code>ble pin</code>), persisted connection TX power (<code>blepwr</code>), <code>bleconn</code>, a
|
|
non-blocking BLE TX pump and connection parameters that hold on a weak
|
|
link.</li>
|
|
<li>Also observer variants only: a passive analyzer in the console --
|
|
<code>nodes</code> (heard repeaters/rooms, multi-path join key), <code>rxlog</code> (every frame
|
|
heard, type/path/SNR/RSSI), <code>pktlog</code> (raw frames for an observer feed), big
|
|
paged replies.</li>
|
|
<li>Own builds only, not in the releases:</li>
|
|
<li>channel bot (<code>BOT_CHANNEL_PSK</code>: <code>!link</code>, <code>!path</code>, <code>!snr</code>, <code>!heard</code>,
|
|
<code>!noise</code>, <code>!ping</code>, <code>!help</code>, narrowed by <code>BOT_COMMANDS</code>, per-sender
|
|
cooldown, ignore list) -- answers without repeating;</li>
|
|
<li><code>RADIO_DIAG</code>: <code>radiostat</code> (SX1262 receiver state, hands off) and
|
|
<code>radiokick rx|clrirq|standby|agc</code> (one recovery step at a time, gentlest
|
|
first -- the first that helps names the broken layer);</li>
|
|
<li><code>PIN_DIAG</code>: <code>dio1</code> (the chip's IRQ status against the level on the pin --
|
|
which end of a dead DIO1 line is broken);</li>
|
|
<li><code>LORA_POLL_IRQ</code>: DIO1-less operation for a board with a dead IRQ line.</li>
|
|
</ul>
|
|
<h2 id="core-fixes">Core fixes<a class="headerlink" href="#core-fixes" title="Permanent link">¶</a></h2>
|
|
<ul>
|
|
<li><strong>Replay protection of admin commands survives a reboot.</strong> Upstream keeps a
|
|
client's last timestamp in RAM only, so after every restart any captured
|
|
command is accepted again -- a captured <code>reboot</code> reboots the node forever.
|
|
Repeater, room server and sensor now write it to flash before acting on the
|
|
command (<code>/s_acl_ts0|1</code>, 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
|
|
(<code>ACL_TS_MAX_AHEAD</code>) 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.</li>
|
|
<li><strong>Passwords can no longer be guessed over the air at full speed.</strong> Upstream
|
|
checks every login without a limit and does not even answer a wrong one.
|
|
After 4 wrong passwords within 3 minutes (<code>LOGIN_FAIL_MAX</code>,
|
|
<code>LOGIN_FAIL_SECS</code>) 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.</li>
|
|
<li><strong>A replayed blank-password login no longer floods a reply.</strong> 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.</li>
|
|
<li>TRACE no longer appends its path past the end of the payload; TRACE/PATH
|
|
parsing and <code>Packet::readFrom</code> are bounds-checked.</li>
|
|
<li><code>markSeen</code> is idempotent again (the send path was eating the dedup window).</li>
|
|
<li><code>calcMaxPacketMillis</code> fallback no longer underflows (a node went deaf on it).</li>
|
|
<li>Path-hash width comes from the node's prefs on every TX path, including
|
|
<code>sendZeroHop</code>; 2-byte path hashes are the default (<code>PATH_HASH_MODE_DEFAULT</code>).</li>
|
|
<li>Failed transmits are re-queued with backoff instead of dropped.</li>
|
|
<li>Per-packet RSSI captured at RX; <code>ContactInfo</code> zeroed before a partial fill.</li>
|
|
</ul>
|
|
<h2 id="power-clock-gps">Power, clock, GPS<a class="headerlink" href="#power-clock-gps" title="Permanent link">¶</a></h2>
|
|
<ul>
|
|
<li>GPS duty cycle (<code>gps duty</code>), 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.</li>
|
|
<li>A node without GPS starts at its build epoch, not in 2024; the clock and a
|
|
hardfault record survive a warm reset (<code>.noinit</code>); <code>clkreboot</code>.</li>
|
|
<li>No blinking LED and slower BLE advertising on solar nodes.</li>
|
|
<li>Battery level as an icon at the end of the advertised name: <code>set batt.icon
|
|
on</code>, thresholds <code>set batt.icon.lo|hi <mV></code> (off by default; a long name has
|
|
no room for it and the command says so).</li>
|
|
<li>Optional RX duty cycle (<code>set radio.rxps off|on|balanced|max</code>, finer
|
|
<code>level <1-10></code>; ported from EasySkyMesh PowerSaving): the SX1262 sleeps
|
|
between short listening windows. Built into the public releases and
|
|
<strong>off</strong>; <code>max</code> saved ~2.3 mA on the bench with no packet loss
|
|
(<a href="https://git.rfa.cz/tth-pub/meshcore-tth/src/branch/main/power.md">docs/power.md</a>), 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).</li>
|
|
<li>The nRF52 boot undervoltage lock (<code>PWRMGT_VOLTAGE_BOOTLOCK</code>) is <strong>off</strong>,
|
|
as in upstream since v1.18.0
|
|
(<a href="https://github.com/meshcore-dev/MeshCore/pull/2377">#2377</a>): 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 (<a href="https://github.com/meshcore-dev/MeshCore/pull/2088">#2088</a>). The exception
|
|
is <code>SenseCap_Solar_repeater</code> (Li-ion, our masts): the lock is on and both
|
|
thresholds are settable at runtime, also as an admin over the mesh --
|
|
<code>set pwr.bootlock <mV>|off</code> (default 3300; below it the node does not start
|
|
and sleeps until the cell recovers) and <code>set pwr.cutoff <mV>|off</code> (default
|
|
off; below it a running node switches off); <code>get pwr</code>
|
|
(<a href="https://git.rfa.cz/tth-pub/meshcore-tth/src/branch/main/power.md">docs/power.md</a>).</li>
|
|
</ul>
|
|
<h2 id="sensors-and-companions">Sensors and companions<a class="headerlink" href="#sensors-and-companions" title="Permanent link">¶</a></h2>
|
|
<ul>
|
|
<li><code>simple_sensor</code>: telemetry from an external station over UART
|
|
(<code>BudkaLinkSensorManager</code>, one LPP channel per meter), <code>sensor read</code>.</li>
|
|
<li>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: <code>sensor set ina.shunt <mOhm></code>.</li>
|
|
<li>Companion: <code>gps duty</code> persists, bounded build-date copy. Private key
|
|
export, reading the BLE PIN and changing it (CLI <code>set pin</code> 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.</li>
|
|
</ul>
|
|
<h2 id="public-builds-czech-mesh-defaults">Public builds: Czech mesh defaults<a class="headerlink" href="#public-builds-czech-mesh-defaults" title="Permanent link">¶</a></h2>
|
|
<p>Releases built from this repository (<code>pub-release</code>) come preset for the
|
|
Czech mesh, following the <a href="https://meshcore.cz/">meshcore.cz</a> wiki, so a
|
|
freshly flashed node does not need the usual round of settings:</p>
|
|
<ul>
|
|
<li>radio 869.432 MHz / 62.5 kHz / SF7 / CR5 (all builds);</li>
|
|
<li>repeater and room server: zero-hop advert off, flood advert every 25 h,
|
|
10 % duty cycle (<code>get dutycycle</code> → <code>10.0%</code>; the deprecated <code>af</code> reads 9);</li>
|
|
<li>repeater: regions <code>cz</code> and <code>cs</code> next to <code>*</code> -- add your own <code>cz-<kraj></code>
|
|
with <code>region put cz-xxx cz</code> + <code>region save</code>;</li>
|
|
<li>2-byte path hashes (this fork's default);</li>
|
|
<li>repeater: the channel filter (<code>filter add <name></code>) is built in for Public,
|
|
<code>#meshcore</code> and <code>#test</code>, with an empty list -- it does nothing until you
|
|
add a name.</li>
|
|
</ul>
|
|
<p>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.</p>
|
|
<p><strong>The companion's BLE PIN is the public <code>123456</code></strong> (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.</p>
|
|
<p>Observer variants (<code>*_repeater-observer-*</code>) of the nRF52 repeaters (XIAO,
|
|
SenseCAP Solar, RAK4631, T1000-E, Heltec T114) add the <code>nodes</code> / <code>rxlog</code> /
|
|
<code>pktlog</code> rings and a text console over BLE, for reading the repeater over
|
|
USB or BLE (<a href="https://git.rfa.cz/tth-pub/meshcore-repeater-observer">meshcore-repeater-observer</a>).
|
|
The BLE console is <strong>off</strong> after flashing (<code>RPT_BLE_DEFAULT_OFF</code>). It has no
|
|
login of its own, only the BLE PIN, and the build's PIN is the public
|
|
placeholder <code>123456</code>. So first set your own -- in the USB console, or as
|
|
admin over the mesh (remote CLI in the app): <code>ble pin <6 digits></code> (saved, survives a reboot and a reflash; it also drops
|
|
every existing bond, so paired devices pair again). Only then <code>ble on</code> --
|
|
these builds refuse it while the PIN is still the placeholder. <code>ble</code> shows
|
|
whether the PIN is <code>own</code> or <code>build default</code>, never the PIN itself. Releases
|
|
up to <code>tth-654d53f3</code> do not have <code>ble pin</code>: keep BLE off there and use USB.</p>
|
|
<h2 id="flashing-a-release">Flashing a release<a class="headerlink" href="#flashing-a-release" title="Permanent link">¶</a></h2>
|
|
<p>Every release is an automatic build on upstream <code>dev</code> (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.</p>
|
|
<p>Files are in <a href="https://git.rfa.cz/tth-pub/meshcore-tth/releases">Releases</a>.
|
|
A release is named after the upstream version and the date, e.g.
|
|
<code>v1.18.0+tth.20261112</code> (a second one that day <code>.2</code>), and its notes list the
|
|
changes since the previous release. One set per board and role
|
|
(<code><board>_<role>-<release></code>, e.g. <code>Xiao_nrf52_repeater-v1.18.0+tth.20261112.zip</code>):
|
|
<code>.zip</code> and <code>.uf2</code> for nRF52 boards, <code>.bin</code> for ESP32 (<code>-merged.bin</code> is the
|
|
full image for a blank board, the plain <code>.bin</code> an update). <code>SHA256SUMS</code> lists
|
|
the checksums. Releases up to 12. 11. 2026 were named <code>tth-<sha></code>.</p>
|
|
<p><strong>nRF52 (XIAO, RAK4631, SenseCAP Solar, T1000-E, T114) with the
|
|
<a href="https://flasher.meshcore.io">MeshCore web flasher</a></strong> -- Chrome, Edge or
|
|
Chromium on a computer (Web Serial; not Firefox or Safari):</p>
|
|
<ol>
|
|
<li>Connect the board over USB.</li>
|
|
<li>Click <strong>Custom Firmware</strong> and choose the <code>.zip</code> for your board.</li>
|
|
<li>Click <strong>Enter DFU mode</strong> and pick the board's serial port. The board
|
|
restarts into its bootloader and shows up as a new port.</li>
|
|
<li>Click <strong>Flash!</strong> and pick that new port. About 30 s, then the board
|
|
restarts into the new firmware.</li>
|
|
<li><strong>Console</strong> in the flasher (or any serial terminal, 115200) checks the
|
|
result: <code>ver</code> shows <code>v1.xx.x-tth<sha></code>, the same as the "Verze v uzlu"
|
|
(node version) line in the release notes.</li>
|
|
</ol>
|
|
<p><strong>Do not click Erase Flash</strong> 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.</p>
|
|
<p>Tried on a XIAO (repeater-observer, 3. 11. 2026). ESP32 <code>.bin</code> through the
|
|
same Custom Firmware button is untested here.</p>
|
|
<p>Without the web flasher: on most boards a double-tap of reset opens the
|
|
bootloader as a USB drive; copy the <code>.uf2</code> onto it. Or
|
|
<code>adafruit-nrfutil dfu serial -pkg <file>.zip -p <port> -b 115200</code> with the
|
|
board in the bootloader.</p>
|
|
<p>After flashing a new node, set it up in the console: <code>set name <name></code>,
|
|
<code>password <admin password></code> (at most 15 characters), your own region with
|
|
<code>region put cz-<kraj> cz</code> + <code>region save</code>. A repeater forwards from its
|
|
first boot (upstream default) and these builds are on the live CZ frequency:
|
|
on a desk without its antenna, <code>set repeat off</code> until it is in place.</p>
|
|
<h2 id="experimental-firmware-update-pushed-by-the-admin-ota">Experimental: firmware update pushed by the admin (<code>*-ota</code>)<a class="headerlink" href="#experimental-firmware-update-pushed-by-the-admin-ota" title="Permanent link">¶</a></h2>
|
|
<p>Every nRF52 build with a text console (repeater, observer, room server,
|
|
sensor) is in the release once more as an <strong>experimental</strong> <code>*-ota</code> /
|
|
<code>*-observer-ota</code> image. It takes a new firmware from its admin with the
|
|
<code>fw …</code> commands: on the USB or BLE console, or <strong>over the mesh as remote admin
|
|
CLI</strong>. 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 <code>fw apply</code>, from a routine running in RAM. A power
|
|
cut during the rewrite leaves it in the bootloader, back via USB/BLE DFU.</p>
|
|
<ul>
|
|
<li>Each <code>*-ota</code> image comes with a full package
|
|
<code><board>_<role>-ota-<release>.mcfw</code> (USB/BLE only) and a delta
|
|
<code>….from-<earlier release>.mcfw</code> from every kept earlier release, typically
|
|
a few kB.</li>
|
|
<li><strong>Over the mesh a node takes only a delta, and never an older version than
|
|
it runs</strong> -- enforced by the node, not by the tool. A full image or a step
|
|
back only locally (<code>fw apply downgrade</code>). <code>fw apply</code> wants the battery at
|
|
3.8 V or more unless the node runs on USB.</li>
|
|
<li>Packages and <code>SHA256SUMS</code> are signed by <code>meshcore-ota@tth-pub</code>, and an
|
|
<code>*-ota</code> image accepts no other signature. Checking the downloads:
|
|
<code>ssh-keygen -Y verify -f tools/ota_allowed_signers -I meshcore-ota@tth-pub
|
|
-n meshcore-ota -s SHA256SUMS.sig < SHA256SUMS</code>. Your own build with your own
|
|
key: <code>[ota] pubkey</code> in <code>platformio.local.ini</code>.</li>
|
|
<li>The first <code>*-ota</code> image is flashed the usual way (above), later ones go as
|
|
deltas. Tools: <code>tools/ota_push.py</code> (USB), <code>tools/ota_mesh_push.py</code> (over the
|
|
mesh through a companion; needs the <code>meshcore</code> Python library, takes the
|
|
admin password from <code>[secrets] admin_pw</code> in <code>platformio.local.ini</code>; <code>--side</code>
|
|
carries the transfer on a side channel, off the shared mesh),
|
|
<code>tools/ota_pack.py info</code>. The transfer itself is the OTA engine of the
|
|
<a href="https://git.rfa.cz/tth-pub/meshcore-ansible">tth.meshcore</a> Ansible
|
|
collection (module <code>meshcore_fw_ota</code>), one code for the tools and Ansible.
|
|
From a phone: the <a href="https://git.rfa.cz/tth-pub/meshcore-open">meshcore-open</a>
|
|
fork, repeater management → Firmware update (OTA), which finds the delta in
|
|
the release by itself. How it works and bench numbers:
|
|
<a href="https://git.rfa.cz/tth-pub/meshcore-tth/src/branch/main/ota.md">docs/ota.md</a>.</li>
|
|
<li><strong>Experimental even within this fork</strong>: 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 <code>set radio.silence</code> on for nodes you push
|
|
to. Costs ~10 kB of RAM.</li>
|
|
</ul>
|
|
<h2 id="build">Build<a class="headerlink" href="#build" title="Permanent link">¶</a></h2>
|
|
<ul>
|
|
<li>Version stamping in every nRF52 env (<code>v1.18.0-tth<sha></code>, <code>+</code> = dirty tree),
|
|
base version from the upstream tag (<code>tools/build_version.py</code>).</li>
|
|
<li><code>tools/</code>: host tools for the nodes -- consoles (USB, BLE), flashing, bench
|
|
tests, diagnostics (<a href="https://git.rfa.cz/tth-pub/meshcore-tth/src/branch/main/tools/README.md">tools/README.md</a>). Board names come
|
|
from a local config outside the repo (<code>tools/config.example.ini</code>).</li>
|
|
<li><code>hardware/cavity-box</code>: parametric enclosure for a cavity filter on a mast.</li>
|
|
</ul>
|
|
<hr />
|
|
<p><em>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.</em></p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</article>
|
|
</div>
|
|
|
|
|
|
<script>var target=document.getElementById(location.hash.slice(1));target&&target.name&&(target.checked=target.name.startsWith("__tabbed_"))</script>
|
|
</div>
|
|
|
|
<button type="button" class="md-top md-icon" data-md-component="top" hidden>
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 20h-2V8l-5.5 5.5-1.42-1.42L12 4.16l7.92 7.92-1.42 1.42L13 8z"/></svg>
|
|
Back to top
|
|
</button>
|
|
|
|
</main>
|
|
|
|
<footer class="md-footer">
|
|
|
|
<div class="md-footer-meta md-typeset">
|
|
<div class="md-footer-meta__inner md-grid">
|
|
<div class="md-copyright">
|
|
|
|
|
|
Made with
|
|
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
|
|
Material for MkDocs
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
|
|
</div>
|
|
<div class="md-dialog" data-md-component="dialog">
|
|
<div class="md-dialog__inner md-typeset"></div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<script id="__config" type="application/json">{"annotate": null, "base": "..", "features": ["content.action.view", "content.code.copy", "navigation.sections", "navigation.top", "search.highlight", "search.suggest", "toc.follow"], "search": "../assets/javascripts/workers/search.a7633da7.min.js", "tags": null, "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}, "version": null}</script>
|
|
|
|
|
|
<script src="../assets/javascripts/bundle.a5f9d56c.min.js"></script>
|
|
|
|
|
|
</body>
|
|
</html> |