Files
meshcore-tth/examples
tthandClaude Opus 5 1561d29218 feat(power): stop paying for a blinking LED and 6.5 Hz advertising
Two upstream defaults that cost a headless solar node around the clock:

* Bluefruit blinks LED_BLUE while advertising and holds it on while connected.
  On SenseCap Solar that pin is 12 -- the SAME pin as P_LORA_TX_LED -- so a
  sealed mast node spends charge blinking an LED nobody can see, and the LoRa TX
  indicator lies as a bonus. autoConnLed(false) by default (RPT_BLE_CONN_LED).
* The slow advertising interval sat at 244 units = 152.5 ms, i.e. three channels
  ~6.5 times a second for years. Now 1 s (RPT_BLE_ADV_SLOW); the first 30 s
  after boot or a disconnect stay fast, so discovery is unaffected in practice.

Bench boards keep both upstream behaviours via platformio.local.ini: on a desk
the blinking LED is the "this board is alive" indicator.

Also: powersaving must not sleep while the BLE console still has queued output.
WFE only wakes on an interrupt, so a half-drained rxlog/pktlog page would sit in
the ring until the next connection event -- and on the observer node the bridge
drains those on a 2-minute duty cycle, where a slower drain directly costs
collected frames.

Measured: BLE (at the new interval, LED off) is ~1.3 mA of a ~24 mA node, so
`ble off` on a mast is not worth losing remote access over.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-06 10:05:56 +02:00
..
2026-06-06 21:09:38 +10:00
2026-06-06 21:09:38 +10:00