1771 lines
47 KiB
HTML
1771 lines
47 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/ble-lora-coexistence/">
|
||
|
||
|
||
<link rel="prev" href="../budka-sensor/">
|
||
|
||
|
||
<link rel="next" href="../meshcore/">
|
||
|
||
|
||
|
||
|
||
|
||
<link rel="icon" href="../assets/images/favicon.png">
|
||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.8.2">
|
||
|
||
|
||
|
||
<title>Koexistence BLE/LoRa - 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="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,700,700i%7CRoboto+Mono:400,400i,700,700i&display=fallback">
|
||
<style>:root{--md-text-font:"Roboto";--md-code-font:"Roboto Mono"}</style>
|
||
|
||
|
||
|
||
<link rel="stylesheet" href="../_stylesheets/extra.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="default" data-md-color-primary="indigo" data-md-color-accent="indigo">
|
||
|
||
|
||
<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="#blelora-coexistence-bench-reproduction-attempt" 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.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">
|
||
|
||
Koexistence BLE/LoRa
|
||
|
||
</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<form class="md-header__option" data-md-component="palette">
|
||
|
||
|
||
|
||
|
||
<input class="md-option" data-md-color-media="(prefers-color-scheme: light)" data-md-color-scheme="default" data-md-color-primary="indigo" data-md-color-accent="indigo" aria-label="Tmavý režim · dark mode" type="radio" name="__palette" id="__palette_0">
|
||
|
||
<label class="md-header__button md-icon" title="Tmavý režim · dark mode" for="__palette_1" 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>
|
||
|
||
|
||
|
||
|
||
|
||
<input class="md-option" data-md-color-media="(prefers-color-scheme: dark)" data-md-color-scheme="slate" data-md-color-primary="indigo" data-md-color-accent="indigo" aria-label="Světlý režim · light mode" type="radio" name="__palette" id="__palette_1">
|
||
|
||
<label class="md-header__button md-icon" title="Světlý režim · light mode" for="__palette_0" 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>
|
||
|
||
|
||
</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.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">
|
||
<a href="../en/" class="md-nav__link">
|
||
|
||
|
||
|
||
<span class="md-ellipsis">
|
||
|
||
|
||
About the fork (English)
|
||
|
||
|
||
|
||
</span>
|
||
|
||
|
||
|
||
</a>
|
||
</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 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">
|
||
|
||
|
||
Koexistence BLE/LoRa
|
||
|
||
|
||
|
||
</span>
|
||
|
||
|
||
|
||
<span class="md-nav__icon md-icon"></span>
|
||
</label>
|
||
|
||
<a href="./" class="md-nav__link md-nav__link--active">
|
||
|
||
|
||
|
||
<span class="md-ellipsis">
|
||
|
||
|
||
Koexistence BLE/LoRa
|
||
|
||
|
||
|
||
</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="#the-claim-under-test" class="md-nav__link">
|
||
<span class="md-ellipsis">
|
||
|
||
The claim under test
|
||
|
||
</span>
|
||
</a>
|
||
|
||
</li>
|
||
|
||
<li class="md-nav__item">
|
||
<a href="#rig" class="md-nav__link">
|
||
<span class="md-ellipsis">
|
||
|
||
Rig
|
||
|
||
</span>
|
||
</a>
|
||
|
||
<nav class="md-nav" aria-label="Rig">
|
||
<ul class="md-nav__list">
|
||
|
||
<li class="md-nav__item">
|
||
<a href="#oracle" class="md-nav__link">
|
||
<span class="md-ellipsis">
|
||
|
||
Oracle
|
||
|
||
</span>
|
||
</a>
|
||
|
||
</li>
|
||
|
||
</ul>
|
||
</nav>
|
||
|
||
</li>
|
||
|
||
<li class="md-nav__item">
|
||
<a href="#what-was-measured" class="md-nav__link">
|
||
<span class="md-ellipsis">
|
||
|
||
What was measured
|
||
|
||
</span>
|
||
</a>
|
||
|
||
<nav class="md-nav" aria-label="What was measured">
|
||
<ul class="md-nav__list">
|
||
|
||
<li class="md-nav__item">
|
||
<a href="#why-idle-weak-link-does-nothing" class="md-nav__link">
|
||
<span class="md-ellipsis">
|
||
|
||
Why idle + weak link does nothing
|
||
|
||
</span>
|
||
</a>
|
||
|
||
</li>
|
||
|
||
</ul>
|
||
</nav>
|
||
|
||
</li>
|
||
|
||
<li class="md-nav__item">
|
||
<a href="#on-mast-hardware-with-the-file-log-on" class="md-nav__link">
|
||
<span class="md-ellipsis">
|
||
|
||
On mast hardware, with the file log on
|
||
|
||
</span>
|
||
</a>
|
||
|
||
</li>
|
||
|
||
<li class="md-nav__item">
|
||
<a href="#still-open" class="md-nav__link">
|
||
<span class="md-ellipsis">
|
||
|
||
Still open
|
||
|
||
</span>
|
||
</a>
|
||
|
||
</li>
|
||
|
||
<li class="md-nav__item">
|
||
<a href="#airtime-is-a-hard-limit-and-the-firmware-will-not-enforce-it" class="md-nav__link">
|
||
<span class="md-ellipsis">
|
||
|
||
Airtime is a hard limit, and the firmware will not enforce it
|
||
|
||
</span>
|
||
</a>
|
||
|
||
</li>
|
||
|
||
<li class="md-nav__item">
|
||
<a href="#traps-worth-remembering" class="md-nav__link">
|
||
<span class="md-ellipsis">
|
||
|
||
Traps worth remembering
|
||
|
||
</span>
|
||
</a>
|
||
|
||
</li>
|
||
|
||
<li class="md-nav__item">
|
||
<a href="#the-two-commands-this-bench-added" class="md-nav__link">
|
||
<span class="md-ellipsis">
|
||
|
||
The two commands this bench added
|
||
|
||
</span>
|
||
</a>
|
||
|
||
<nav class="md-nav" aria-label="The two commands this bench added">
|
||
<ul class="md-nav__list">
|
||
|
||
<li class="md-nav__item">
|
||
<a href="#bleconn-what-the-link-is-actually-doing" class="md-nav__link">
|
||
<span class="md-ellipsis">
|
||
|
||
bleconn — what the link is actually doing
|
||
|
||
</span>
|
||
</a>
|
||
|
||
</li>
|
||
|
||
<li class="md-nav__item">
|
||
<a href="#blepwr-dbm-connection-tx-power-saved" class="md-nav__link">
|
||
<span class="md-ellipsis">
|
||
|
||
blepwr [dBm] — connection TX power, saved
|
||
|
||
</span>
|
||
</a>
|
||
|
||
</li>
|
||
|
||
</ul>
|
||
</nav>
|
||
|
||
</li>
|
||
|
||
</ul>
|
||
|
||
</nav>
|
||
|
||
</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="#the-claim-under-test" class="md-nav__link">
|
||
<span class="md-ellipsis">
|
||
|
||
The claim under test
|
||
|
||
</span>
|
||
</a>
|
||
|
||
</li>
|
||
|
||
<li class="md-nav__item">
|
||
<a href="#rig" class="md-nav__link">
|
||
<span class="md-ellipsis">
|
||
|
||
Rig
|
||
|
||
</span>
|
||
</a>
|
||
|
||
<nav class="md-nav" aria-label="Rig">
|
||
<ul class="md-nav__list">
|
||
|
||
<li class="md-nav__item">
|
||
<a href="#oracle" class="md-nav__link">
|
||
<span class="md-ellipsis">
|
||
|
||
Oracle
|
||
|
||
</span>
|
||
</a>
|
||
|
||
</li>
|
||
|
||
</ul>
|
||
</nav>
|
||
|
||
</li>
|
||
|
||
<li class="md-nav__item">
|
||
<a href="#what-was-measured" class="md-nav__link">
|
||
<span class="md-ellipsis">
|
||
|
||
What was measured
|
||
|
||
</span>
|
||
</a>
|
||
|
||
<nav class="md-nav" aria-label="What was measured">
|
||
<ul class="md-nav__list">
|
||
|
||
<li class="md-nav__item">
|
||
<a href="#why-idle-weak-link-does-nothing" class="md-nav__link">
|
||
<span class="md-ellipsis">
|
||
|
||
Why idle + weak link does nothing
|
||
|
||
</span>
|
||
</a>
|
||
|
||
</li>
|
||
|
||
</ul>
|
||
</nav>
|
||
|
||
</li>
|
||
|
||
<li class="md-nav__item">
|
||
<a href="#on-mast-hardware-with-the-file-log-on" class="md-nav__link">
|
||
<span class="md-ellipsis">
|
||
|
||
On mast hardware, with the file log on
|
||
|
||
</span>
|
||
</a>
|
||
|
||
</li>
|
||
|
||
<li class="md-nav__item">
|
||
<a href="#still-open" class="md-nav__link">
|
||
<span class="md-ellipsis">
|
||
|
||
Still open
|
||
|
||
</span>
|
||
</a>
|
||
|
||
</li>
|
||
|
||
<li class="md-nav__item">
|
||
<a href="#airtime-is-a-hard-limit-and-the-firmware-will-not-enforce-it" class="md-nav__link">
|
||
<span class="md-ellipsis">
|
||
|
||
Airtime is a hard limit, and the firmware will not enforce it
|
||
|
||
</span>
|
||
</a>
|
||
|
||
</li>
|
||
|
||
<li class="md-nav__item">
|
||
<a href="#traps-worth-remembering" class="md-nav__link">
|
||
<span class="md-ellipsis">
|
||
|
||
Traps worth remembering
|
||
|
||
</span>
|
||
</a>
|
||
|
||
</li>
|
||
|
||
<li class="md-nav__item">
|
||
<a href="#the-two-commands-this-bench-added" class="md-nav__link">
|
||
<span class="md-ellipsis">
|
||
|
||
The two commands this bench added
|
||
|
||
</span>
|
||
</a>
|
||
|
||
<nav class="md-nav" aria-label="The two commands this bench added">
|
||
<ul class="md-nav__list">
|
||
|
||
<li class="md-nav__item">
|
||
<a href="#bleconn-what-the-link-is-actually-doing" class="md-nav__link">
|
||
<span class="md-ellipsis">
|
||
|
||
bleconn — what the link is actually doing
|
||
|
||
</span>
|
||
</a>
|
||
|
||
</li>
|
||
|
||
<li class="md-nav__item">
|
||
<a href="#blepwr-dbm-connection-tx-power-saved" class="md-nav__link">
|
||
<span class="md-ellipsis">
|
||
|
||
blepwr [dBm] — connection TX power, saved
|
||
|
||
</span>
|
||
</a>
|
||
|
||
</li>
|
||
|
||
</ul>
|
||
</nav>
|
||
|
||
</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/ble-lora-coexistence.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="blelora-coexistence-bench-reproduction-attempt">BLE/LoRa coexistence — bench reproduction attempt<a class="headerlink" href="#blelora-coexistence-bench-reproduction-attempt" title="Permanent link">¶</a></h1>
|
||
<p>Working notes for the DIRECT-forward loss seen on <code>mast-three</code> (SenseCap Solar,
|
||
<code>SenseCap_Solar_repeater_ble</code>). Written down because the result is mostly
|
||
<strong>negative</strong>, and a negative result is only worth anything if the method and its
|
||
limits are recorded with it.</p>
|
||
<h2 id="the-claim-under-test">The claim under test<a class="headerlink" href="#the-claim-under-test" title="Permanent link">¶</a></h2>
|
||
<p>Commit <code>f6e9aeca</code> widened the BLE connection interval from 15–30 ms to 60–80 ms
|
||
after an A/B on the mast showed ~40 % of DIRECT-route forwards silently lost
|
||
with an <strong>idle</strong> BLE connection at 15–30 ms. The stated mechanism is that the
|
||
SoftDevice's per-connection-event preemption disturbs the SX126x TX path
|
||
(<code>startTransmit</code> fail / send-complete timeout).</p>
|
||
<p>The fix is deployed. What was never established is whether a bench rig can
|
||
<strong>detect</strong> the effect at all — a measurement that reads zero in both the
|
||
treatment and the control has shown nothing.</p>
|
||
<h2 id="rig">Rig<a class="headerlink" href="#rig" title="Permanent link">¶</a></h2>
|
||
<p>Isolated test mesh on <strong>866.5 MHz</strong> (BW 62.5, SF 8, CR 5). Isolation is by
|
||
frequency, not by tx power: a hilltop repeater with <code>RX_BOOSTED_GAIN</code> hears a
|
||
few mW just fine. The override is compile-time (<code>platformio.local.ini</code>) because
|
||
<code>MyMesh.cpp</code> seeds <code>_prefs.freq</code> from <code>LORA_FREQ</code>, so the firmware cannot come
|
||
up on the production frequency even after <code>erase</code>.</p>
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th>node</th>
|
||
<th>board</th>
|
||
<th>role</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td><code>bench-board</code></td>
|
||
<td>XIAO nRF52840 + Wio-SX1262</td>
|
||
<td>forwarder under test</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>bench-board</code></td>
|
||
<td>same</td>
|
||
<td>paired control / radiating witness</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>bench-board</code>, <code>bench-board</code></td>
|
||
<td>same</td>
|
||
<td>probe sources</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>bench-rpt</code></td>
|
||
<td>SenseCap Solar Node</td>
|
||
<td>forwarder, mast-identical hardware</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>tth-s2-rpt</code></td>
|
||
<td>same</td>
|
||
<td>paired control</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
<p>Paired controls differ <strong>only</strong> in <code>ADVERT_NAME</code>, verified by diffing strings in
|
||
the ELF. Any other difference invalidates them.</p>
|
||
<h3 id="oracle">Oracle<a class="headerlink" href="#oracle" title="Permanent link">¶</a></h3>
|
||
<p>The measured quantity is the node's own <code>direct_rx − direct_tx</code> from
|
||
<code>stats-packets</code>: how many DIRECT packets it accepted for forwarding versus how
|
||
many it actually sent. This is self-normalising — it does not depend on channel
|
||
conditions or on a receiver hearing anything. <code>tx_start_fail</code> and <code>tx_timeout</code>
|
||
are the mechanism-level counters. A second repeater with <code>repeat off</code> acts as a
|
||
radiating witness, so "counted a TX" can be distinguished from "actually
|
||
radiated".</p>
|
||
<p>Route forcing: a contact is injected into the sender's companion with an
|
||
explicit <code>out_path</code>, so the DM must traverse the node under test.
|
||
<strong><code>out_path_len</code> is not a hop count</strong> — it is a packed byte, top two bits =
|
||
hash size − 1, low six = hop count (<code>Packet.h:85</code>). One hop with a 2-byte hash
|
||
is <code>0x41</code>, not <code>1</code>. The receiver reads the size out of the packet
|
||
(<code>Mesh.cpp:93</code>), so a forced path works regardless of the node's
|
||
<code>path.hash.mode</code>.</p>
|
||
<h2 id="what-was-measured">What was measured<a class="headerlink" href="#what-was-measured" title="Permanent link">¶</a></h2>
|
||
<p>All cells at a <strong>verified</strong> 22.50 ms connection interval — <code>bleconn</code> reports the
|
||
parameters actually negotiated, because <code>bleOnSecured()</code> only requests them and
|
||
the central may refuse. Without that read-back none of the null results below
|
||
would mean anything.</p>
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th style="text-align: right;"><code>blepwr</code></th>
|
||
<th style="text-align: right;">≈RSSI at central</th>
|
||
<th style="text-align: right;">link up</th>
|
||
<th style="text-align: right;">direct_rx</th>
|
||
<th style="text-align: right;">direct_tx</th>
|
||
<th style="text-align: right;">lost</th>
|
||
<th style="text-align: right;">tx_timeout</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td style="text-align: right;">BLE off</td>
|
||
<td style="text-align: right;">—</td>
|
||
<td style="text-align: right;">—</td>
|
||
<td style="text-align: right;">8</td>
|
||
<td style="text-align: right;">8</td>
|
||
<td style="text-align: right;">0</td>
|
||
<td style="text-align: right;">0</td>
|
||
</tr>
|
||
<tr>
|
||
<td style="text-align: right;">0 dBm</td>
|
||
<td style="text-align: right;">−67</td>
|
||
<td style="text-align: right;">100 %</td>
|
||
<td style="text-align: right;">8</td>
|
||
<td style="text-align: right;">8</td>
|
||
<td style="text-align: right;">0</td>
|
||
<td style="text-align: right;">0</td>
|
||
</tr>
|
||
<tr>
|
||
<td style="text-align: right;">−8</td>
|
||
<td style="text-align: right;">−75</td>
|
||
<td style="text-align: right;">100 %</td>
|
||
<td style="text-align: right;">8</td>
|
||
<td style="text-align: right;">8</td>
|
||
<td style="text-align: right;">0</td>
|
||
<td style="text-align: right;">0</td>
|
||
</tr>
|
||
<tr>
|
||
<td style="text-align: right;">−12</td>
|
||
<td style="text-align: right;">−79</td>
|
||
<td style="text-align: right;">100 %</td>
|
||
<td style="text-align: right;">8</td>
|
||
<td style="text-align: right;">8</td>
|
||
<td style="text-align: right;">0</td>
|
||
<td style="text-align: right;">0</td>
|
||
</tr>
|
||
<tr>
|
||
<td style="text-align: right;">−16</td>
|
||
<td style="text-align: right;">−83</td>
|
||
<td style="text-align: right;">87 %</td>
|
||
<td style="text-align: right;">8</td>
|
||
<td style="text-align: right;">8</td>
|
||
<td style="text-align: right;">0</td>
|
||
<td style="text-align: right;">0</td>
|
||
</tr>
|
||
<tr>
|
||
<td style="text-align: right;">−20</td>
|
||
<td style="text-align: right;">−87</td>
|
||
<td style="text-align: right;">27 %</td>
|
||
<td style="text-align: right;">8</td>
|
||
<td style="text-align: right;">8</td>
|
||
<td style="text-align: right;">0</td>
|
||
<td style="text-align: right;">0</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
<p>The −20 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 — close to the
|
||
reconnect churn the mast reports as HCI 0x3E.</p>
|
||
<p><strong>Ruled out as the missing factor: BLE link margin.</strong> The whole −75..−90 window
|
||
the mast sits in is covered, at the known-bad interval, with zero loss.</p>
|
||
<h3 id="why-idle-weak-link-does-nothing">Why idle + weak link does nothing<a class="headerlink" href="#why-idle-weak-link-does-nothing" title="Permanent link">¶</a></h3>
|
||
<p>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 <code>poll</code> mode in
|
||
the harness.</p>
|
||
<p>Direction matters too, and it is the reason to weaken <strong>our</strong> 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 — an
|
||
extra slave TX. If we miss the central's PDU we never transmit in that event at
|
||
all, and the SoftDevice uses <em>less</em> radio.</p>
|
||
<h2 id="on-mast-hardware-with-the-file-log-on">On mast hardware, with the file log on<a class="headerlink" href="#on-mast-hardware-with-the-file-log-on" title="Permanent link">¶</a></h2>
|
||
<p>Two SenseCap Solar nodes (<code>bench-rpt</code> forwarder, <code>tth-s2-rpt</code> paired control) —
|
||
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
|
||
(<code>bleconn</code>).</p>
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th>file log</th>
|
||
<th>BLE</th>
|
||
<th style="text-align: right;">direct_rx</th>
|
||
<th style="text-align: right;">direct_tx</th>
|
||
<th style="text-align: right;">lost</th>
|
||
<th style="text-align: right;">tx_timeout</th>
|
||
<th style="text-align: right;">witness</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>off</td>
|
||
<td>off</td>
|
||
<td style="text-align: right;">8</td>
|
||
<td style="text-align: right;">8</td>
|
||
<td style="text-align: right;">0</td>
|
||
<td style="text-align: right;">0</td>
|
||
<td style="text-align: right;">+39</td>
|
||
</tr>
|
||
<tr>
|
||
<td>off</td>
|
||
<td>idle, 88 % of window</td>
|
||
<td style="text-align: right;">8</td>
|
||
<td style="text-align: right;">8</td>
|
||
<td style="text-align: right;">0</td>
|
||
<td style="text-align: right;">0</td>
|
||
<td style="text-align: right;">+37</td>
|
||
</tr>
|
||
<tr>
|
||
<td><strong>on</strong></td>
|
||
<td>off</td>
|
||
<td style="text-align: right;">8</td>
|
||
<td style="text-align: right;">8</td>
|
||
<td style="text-align: right;">0</td>
|
||
<td style="text-align: right;">0</td>
|
||
<td style="text-align: right;">+39</td>
|
||
</tr>
|
||
<tr>
|
||
<td><strong>on</strong></td>
|
||
<td>idle, 90 % of window</td>
|
||
<td style="text-align: right;">8</td>
|
||
<td style="text-align: right;">8</td>
|
||
<td style="text-align: right;">0</td>
|
||
<td style="text-align: right;">0</td>
|
||
<td style="text-align: right;">+40</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
<p>The logging condition was real, not nominal: <code>log</code> afterwards held 69 entries
|
||
with RX/TX lines timestamped inside the measurement window, i.e. an InternalFS
|
||
write per packet — the mechanism behind the known deaf windows.</p>
|
||
<p><strong>Ten cells, 80 forced forwards, zero lost, <code>tx_timeout</code> and <code>tx_start_fail</code> at
|
||
zero throughout.</strong> 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⁸ ≈ 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 — alone or together.</p>
|
||
<h2 id="still-open">Still open<a class="headerlink" href="#still-open" title="Permanent link">¶</a></h2>
|
||
<p><strong>Loaded LoRa channel</strong> 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–869.65) is where production lives.</p>
|
||
<p>Practical consequence: <strong>f6e9aeca can be neither confirmed nor refuted on the
|
||
bench.</strong> Deciding whether the 60–80 ms interval is still needed requires
|
||
measuring on <code>mast-three</code> itself — the counters (<code>stats-packets</code>, and now
|
||
<code>bleconn</code> to prove which interval is actually in force) are all reachable over
|
||
its BLE console.</p>
|
||
<h2 id="airtime-is-a-hard-limit-and-the-firmware-will-not-enforce-it">Airtime is a hard limit, and the firmware will not enforce it<a class="headerlink" href="#airtime-is-a-hard-limit-and-the-firmware-will-not-enforce-it" title="Permanent link">¶</a></h2>
|
||
<p>866.5 MHz sits in 865–868 (CZ VO-R/10): 25 mW ERP, <strong>1 % duty cycle = 36 s of
|
||
transmission per hour</strong>. The firmware does not police this — <code>airtime_factor</code>
|
||
defaults to 0 (= 100 %) and is clamped to 9, so the lowest duty MeshCore can
|
||
enforce is 10 %. The first sweep consumed <code>tx_air_secs</code> 27 s in 18 minutes of
|
||
uptime, a rate of ~2.5 %. Budget the probes: <code>stats-radio.tx_air_secs</code> is the
|
||
ground truth, and the harness aborts before crossing a configured cap.</p>
|
||
<p><code>stats-core.queue_len</code> and <code>errors</code> are a required control, not decoration: when
|
||
the airtime budget runs out the Dispatcher <strong>defers</strong> a forward
|
||
(<code>next_tx_time</code>, <code>Dispatcher.cpp:101</code>), which looks identical to loss in the
|
||
counters. Both were zero throughout.</p>
|
||
<h2 id="traps-worth-remembering">Traps worth remembering<a class="headerlink" href="#traps-worth-remembering" title="Permanent link">¶</a></h2>
|
||
<ul>
|
||
<li><strong>USB and BLE consoles share one <code>command[160]</code>.</strong> Two concurrent consoles
|
||
interleave into one line and crash the node. The harness keeps a strict
|
||
sequence: counters over USB → close USB → BLE client → probes → stop BLE →
|
||
counters over USB.</li>
|
||
<li><strong><code>Bluefruit.setTxPower()</code> is advertising-only</strong> (see the commit message for
|
||
<code>blepwr</code>); the connection runs at the SoftDevice default 0 dBm.</li>
|
||
<li><strong>Weakening the link can lock you out of BLE.</strong> Below about −16 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 <code>blepwr</code> over the mesh admin
|
||
CLI.</li>
|
||
<li><strong>~~Runtime <code>set tx</code> does not change radiated LoRa power~~ — retracted.</strong> The
|
||
original reading (+2 dBm → RSSI −44.1, −9 dBm → −44.0) was made with an
|
||
instrument that could not report failure: <code>RadioLibWrapper::setTxPower()</code>
|
||
discarded RadioLib's status, so a refused request looked exactly like an
|
||
accepted one. Re-measured 2026-08-04 on the repeater build with <code>txpwr</code>
|
||
confirming each step, x1 transmitting and x4 as witness:</li>
|
||
</ul>
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th style="text-align: right;"><code>txpwr</code></th>
|
||
<th style="text-align: right;">witness <code>last_rssi</code></th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td style="text-align: right;">+22</td>
|
||
<td style="text-align: right;">0 dBm <em>(saturated)</em></td>
|
||
</tr>
|
||
<tr>
|
||
<td style="text-align: right;">+14</td>
|
||
<td style="text-align: right;">−1 dBm <em>(saturated)</em></td>
|
||
</tr>
|
||
<tr>
|
||
<td style="text-align: right;">+6</td>
|
||
<td style="text-align: right;">−7 dBm</td>
|
||
</tr>
|
||
<tr>
|
||
<td style="text-align: right;">0</td>
|
||
<td style="text-align: right;">−18 dBm</td>
|
||
</tr>
|
||
<tr>
|
||
<td style="text-align: right;">−9</td>
|
||
<td style="text-align: right;">−28 dBm</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
<p>31 dB of command produced 28 dB of RSSI, and the witness <code>recv</code> counter rose
|
||
by one at every step, so no point was missed. Radiated power does follow the
|
||
setting. The top two points are saturated — the boards were ~10 cm apart — so
|
||
the usable range of that particular rig starts around +6 dBm; characterising
|
||
the top end needs attenuation or distance, not a bigger number.</p>
|
||
<p>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.</p>
|
||
<h2 id="the-two-commands-this-bench-added">The two commands this bench added<a class="headerlink" href="#the-two-commands-this-bench-added" title="Permanent link">¶</a></h2>
|
||
<p>Both live in <code>examples/simple_repeater/main.cpp</code> and are repeater-only.</p>
|
||
<h3 id="bleconn-what-the-link-is-actually-doing"><code>bleconn</code> — what the link is actually doing<a class="headerlink" href="#bleconn-what-the-link-is-actually-doing" title="Permanent link">¶</a></h3>
|
||
<div class="highlight"><pre><span></span><code>bleconn
|
||
-> BLE conn: interval 75.00 ms (req 60-80), latency 0, sup timeout 4000 ms [live]
|
||
</code></pre></div>
|
||
<p>Reports the <strong>negotiated</strong> 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 <code>f6e9aeca</code> (widening the requested interval to
|
||
60–80 ms) is in force on a node you cannot see. The trailing <code>[live]</code> /
|
||
<code>[last]</code> 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
|
||
<code>nothing seen yet</code>.</p>
|
||
<h3 id="blepwr-dbm-connection-tx-power-saved"><code>blepwr [dBm]</code> — connection TX power, saved<a class="headerlink" href="#blepwr-dbm-connection-tx-power-saved" title="Permanent link">¶</a></h3>
|
||
<div class="highlight"><pre><span></span><code>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
|
||
</code></pre></div>
|
||
<p>The reply carries how many live connections accepted the value
|
||
(<code>OK - BLE conn tx 8 dBm (1/1 conn), saved</code>) because the nRF52840 only takes
|
||
−40, −20, −16, −12, −8, −4, 0 and 2..8 dBm; anything else is rejected and is
|
||
<em>not</em> latched or saved, so a typo cannot arm itself for the next reconnect.
|
||
The value lives in <code>/ble_pwr</code> 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 <code>RPT_BLE_CONN_TX_POWER</code>, which
|
||
mast-three's env sets to 8).</p>
|
||
<p>Sets <code>BLE_GAP_TX_POWER_ROLE_CONN</code>, which is <strong>independent of</strong>
|
||
<code>Bluefruit.setTxPower()</code> — 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 <code>RPT_BLE_CONN_TX_POWER</code>.</p>
|
||
<p>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 — at −40 dBm
|
||
during this bench it locked the BLE console out. Fix it over the mesh admin
|
||
CLI (<code>blepwr 0</code>), 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.</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> |