diff --git a/docs/measurements/2026-12-04-stock-vs-tth/compute.py b/docs/measurements/2026-12-04-stock-vs-tth/compute.py index fa1f661e6..986015345 100644 --- a/docs/measurements/2026-12-04-stock-vs-tth/compute.py +++ b/docs/measurements/2026-12-04-stock-vs-tth/compute.py @@ -29,6 +29,10 @@ CELLS = { # power-on (first window with current) of each cell "S2": 1796390528, # stock v1.19.0, powersaving on "S1": 1796391376, # stock v1.19.0, powersaving off (upstream default) "A2": 1796392588, # tth again + "C": 1796397122, # MeshCore Czech v1.19.0.01, powersaving on, rxps off (same settings as A) + # MeshCore Czech with its fresh-install default rxps balanced, powersaving on: running since + # 16:29:41, the capture was restarted at 16:42:55 -> measured window starts there + "C2": 1796398975 - 120, } METERS = ("cb-fbfe18", "cb-4faa24") @@ -104,10 +108,12 @@ for c in CELLS: comb[c] = (statistics.mean(x["I"] for x in xs), max(x["U"] for x in xs), xs) A = (comb["A1"][0] + comb["A2"][0]) / 2 for c, label in (("A1", "tth release, powersaving on"), ("A2", "tth release, again"), - ("S2", "stock v1.19.0 + powersaving on"), ("S1", "stock v1.19.0 as shipped (powersaving off)")): + ("S2", "stock v1.19.0 + powersaving on"), ("S1", "stock v1.19.0 as shipped (powersaving off)"), + ("C", "MeshCore Czech v1.19.0.01, powersaving on, rxps off"), + ("C2", "MeshCore Czech, its default rxps balanced, powersaving on")): i, U, xs = comb[c] d = i - A # a difference: offsets cancel, the gain errors act on |d| only; deviations from repeatability stay u_d = math.sqrt(sum(x["u_rel_dev"] ** 2 for x in xs) / len(xs) * 2 + (abs(d) * math.hypot(SHUNT_TOL, GAIN_ERR) / math.sqrt(3)) ** 2) - rel = f"{100 * d / i:+.1f} % of this" if c.startswith("S") else "" + rel = f"{100 * d / i:+.1f} % of this" if c[0] in "SC" else "" print(f"| {label} | {i:.3f} mA | ±{U:.3f} | {d:+.3f} ± {2 * u_d:.3f} mA | {rel} |") diff --git a/docs/measurements/2026-12-04-stock-vs-tth/ina_fast.tsv.gz b/docs/measurements/2026-12-04-stock-vs-tth/ina_fast.tsv.gz index 2bbcde783..1c254dcfb 100644 Binary files a/docs/measurements/2026-12-04-stock-vs-tth/ina_fast.tsv.gz and b/docs/measurements/2026-12-04-stock-vs-tth/ina_fast.tsv.gz differ diff --git a/docs/measurements/2026-12-04-stock-vs-tth/protocol.md b/docs/measurements/2026-12-04-stock-vs-tth/protocol.md index 86a3d1384..cef4b453f 100644 --- a/docs/measurements/2026-12-04-stock-vs-tth/protocol.md +++ b/docs/measurements/2026-12-04-stock-vs-tth/protocol.md @@ -35,6 +35,7 @@ budka 3V3 ─► INA226 #1 (cb-fbfe18) ─► INA226 #2 (cb-4faa24) ─► 3V3 p | | build | `firmware.bin` sha256 (prefix) | |---|---|---| | **tth** | this fork, `rfa/main` 387184de (= release v1.19.0+tth.20261204.2 content), env `Xiao_nrf52_repeater`, `.github/fw-flags.sh` PUB_FLAGS + `-D LORA_FREQ=866.5 -D LORA_TX_POWER=-9` | `3e7b3fa80eacaa75` | +| **MeshCore Czech** | release `v1.19.0.01` of mesh-cz/MeshCore-Czech (binary only), `Xiao_nrf52_repeater-meshcz-v1.19.0.01-85ed.zip` | `3c1fb0bc08b8cb1b` | | **stock** | upstream tag `repeater-v1.19.0` (a2921870), env `Xiao_nrf52_repeater`, only `-D LORA_FREQ=866.5 -D LORA_BW=62.5 -D LORA_SF=7 -D LORA_CR=5 -D LORA_TX_POWER=-9` | `85cf850ccfd369dc` | The frequency flags only change the defaults of a node without prefs; x4 kept @@ -55,6 +56,8 @@ boot. A cell = 120 s dropped after power-on + 600 s measured. Order: | S2 | stock | on | | S1 | stock | **off** (upstream's default) | | A2 | tth | on | +| C | MeshCore Czech | on (rxps off, the same settings as A) | +| C2 | MeshCore Czech | on, rxps `balanced` (its fresh-install default, per its CLI manual) | | Z2 | -- (DUT disconnected) | | A1 and A2 bracket the stock cells, so a drift of the rig shows as A1 ≠ A2. @@ -90,6 +93,8 @@ Measured values (offset-corrected, `compute.py` → `result.md`): | S2 stock + powersaving | 7.273 mA | 7.259 mA | 0.11 | | S1 stock as shipped | 10.121 mA | 10.131 mA | 0.06 | | A2 tth | 6.867 mA | 6.878 mA | 0.09 | +| C MeshCore Czech | 7.353 mA | 7.349 mA | 0.04 | +| C2 MeshCore Czech, rxps balanced | 5.452 mA | 5.451 mA | 0.01 | - zero: −0.119 / −0.116 mA (#1), +0.114 / +0.117 mA (#2) at the start / end; drift 3–4 µA over 80 min; @@ -106,6 +111,8 @@ Measured values (offset-corrected, `compute.py` → `result.md`): | **tth release** (`powersaving on`, as provisioned) | **(6.87 ± 0.08) mA** | -- | | stock v1.19.0, `powersaving on` set by hand | (7.27 ± 0.09) mA | **+(0.40 ± 0.01) mA** | | **stock v1.19.0 as shipped** (`powersaving off`) | **(10.13 ± 0.12) mA** | **+(3.26 ± 0.04) mA** | +| MeshCore Czech v1.19.0.01, `powersaving on`, rxps off | (7.35 ± 0.09) mA | +(0.48 ± 0.01) mA | +| MeshCore Czech with its default rxps `balanced` | (5.45 ± 0.17) mA | −(1.42 ± 0.23) mA | ## 6a. Independent check of the meters' gain @@ -142,5 +149,12 @@ stock image: stock with `powersaving on` sits at 7.27 mA, not ~10.5. That insomnia was measured on our own builds with BLE; it is not an upstream regression that the fork fixes for this board. +MeshCore Czech with the same settings draws about what stock does (+0.08 mA); its +lower figure with its own defaults is the RX duty cycle, which on a weak link +loses 13-28 % of the packets (bench, same day, #46). C and C2 came an hour after +A2 and are not bracketed by an A cell; at a repeatability of 3 µA that does not +matter against the 0.5-1.4 mA differences. C2's capture was restarted mid-cell +(16:42:55), its window starts there, the image had run since 16:29:41. + Not covered: other boards (absolute numbers are this XIAO's), BLE builds (`*-observer`), GPS, the radio's TX share (no traffic in the cells). diff --git a/docs/measurements/2026-12-04-stock-vs-tth/result.md b/docs/measurements/2026-12-04-stock-vs-tth/result.md index b9eeec16d..7fef05cf1 100644 --- a/docs/measurements/2026-12-04-stock-vs-tth/result.md +++ b/docs/measurements/2026-12-04-stock-vs-tth/result.md @@ -17,6 +17,10 @@ | S1 | cb-4faa24 | 3.244 | 452826 | 10 | 10.131 mA | 0.0004 | 0.059 | ±0.118 mA | | A2 | cb-fbfe18 | 3.259 | 467584 | 11 | 6.867 mA | 0.0002 | 0.040 | ±0.080 mA | | A2 | cb-4faa24 | 3.254 | 446689 | 11 | 6.878 mA | 0.0006 | 0.040 | ±0.080 mA | +| C | cb-fbfe18 | 3.258 | 475598 | 10 | 7.353 mA | 0.0007 | 0.043 | ±0.085 mA | +| C | cb-4faa24 | 3.252 | 453178 | 10 | 7.349 mA | 0.0008 | 0.043 | ±0.085 mA | +| C2 | cb-fbfe18 | 3.264 | 475480 | 10 | 5.452 mA | 0.0807 | 0.087 | ±0.173 mA | +| C2 | cb-4faa24 | 3.261 | 447372 | 10 | 5.451 mA | 0.0806 | 0.087 | ±0.173 mA | ## Repeatability A1 vs A2 @@ -31,6 +35,8 @@ | S2 | 7.273 | 7.259 | 0.014 mA | 0.11 | | S1 | 10.121 | 10.131 | 0.009 mA | 0.06 | | A2 | 6.867 | 6.878 | 0.010 mA | 0.09 | +| C | 7.353 | 7.349 | 0.005 mA | 0.04 | +| C2 | 5.452 | 5.451 | 0.002 mA | 0.01 | ## Result (mean of both meters; differences against A = mean of A1 and A2) @@ -40,3 +46,5 @@ | tth release, again | 6.872 mA | ±0.080 | +0.001 ± 0.006 mA | | | stock v1.19.0 + powersaving on | 7.266 mA | ±0.085 | +0.395 ± 0.010 mA | +5.4 % of this | | stock v1.19.0 as shipped (powersaving off) | 10.126 mA | ±0.118 | +3.255 ± 0.038 mA | +32.1 % of this | +| MeshCore Czech v1.19.0.01, powersaving on, rxps off | 7.351 mA | ±0.085 | +0.480 ± 0.008 mA | +6.5 % of this | +| MeshCore Czech, its default rxps balanced, powersaving on | 5.452 mA | ±0.173 | -1.419 ± 0.229 mA | -26.0 % of this |