feat(repeater/analyzer): big console pages + physics-sized tables (rxlog 512, heard 128)
The BLE bridge drain was throttled by three multiplied costs: 150 B pages (~3 rxlog records), 20 B NUS notification chunks, and the bridge waiting for line silence per page. This fixes the firmware half: - handleCommand() takes an explicit reply_max (default 150). The local console (USB/BLE) passes ~1000 B -> ~20 rxlog records / ~7 nodes lines per round trip; the mesh admin CLI keeps 150 so its reply still fits one LoRa packet. Explicit parameter on purpose: a forged sender_timestamp==0 from the mesh path must never be able to grow the reply past its 166 B buffer. - bleWriteAll() chunks by negotiated MTU (247 -> 244 B) instead of fixed 20 B. - Tables sized from channel physics instead of last week's traffic: RXLOG_SIZE 512 = ~2 min of a saturated SF8/62.5k channel (~2-4 frames/s), MAX_HEARD_NODES 128 > distinct nodes heard per neighbour advert period (48 filled in <2 h and churned out real 0-hop neighbours). - Page-sort scratch arrays moved off the loop-task stack into BSS. RAM 17.7% -> 25.3% (59.6 KB / 235 KB). Flashed via BLE DFU 2026-07-15. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ce907bbe4a
commit
91f827cede
4 files changed
+37
-20
No files matched your search
@@ -84,10 +84,16 @@ build_flags =
|
||||
; frame firehose over the text console for a BLE bridge/map. RAM-only, ~15 KB.
|
||||
; nodes [offset] -> heard repeater/room registry (identity, geo, SNR, path)
|
||||
; rxlog [cursor] -> circular log of every frame heard (type, path, SNR/RSSI)
|
||||
; RXLOG_SIZE 96 -> 256 (~32 B/rec): daytime advert bursts overflowed the ring
|
||||
; between BLE drains (~250 drops/h, meshcore_rxlog_dropped_total)
|
||||
-D MAX_HEARD_NODES=48
|
||||
-D RXLOG_SIZE=256
|
||||
; Sized from channel physics, not last week's traffic (so we stop re-raising):
|
||||
; RXLOG_SIZE 512 (~32 B/rec, 16 KB): ~2 min of a fully saturated SF8/62.5k
|
||||
; channel (~2-4 frames/s) or ~35 min of typical traffic -- covers BLE
|
||||
; outages; the fast big-page drain (~40+ rec/s) outruns the radio itself.
|
||||
; MAX_HEARD_NODES 128 (~68 B/entry, 8.7 KB): the 48-slot registry filled in
|
||||
; <2 h and churn evicted real neighbours (Kladno, ABC_10W_MKT) into the
|
||||
; poorer `neighbors`-table fallback; 128 > distinct nodes heard per
|
||||
; neighbour advert period even on inversion evenings.
|
||||
-D MAX_HEARD_NODES=128
|
||||
-D RXLOG_SIZE=512
|
||||
; -D MESH_PACKET_LOGGING=1
|
||||
build_src_filter = ${SenseCap_Solar.build_src_filter}
|
||||
+<../examples/simple_repeater/*.cpp>
|
||||
|
||||
Reference in new issue
Block a user