sensors: power down INA power monitors between reads
Conflict in the 1.18.3 release notes (rewritten on dev): the INA219
entry moves into Fixes, next to the other low-power fixes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Behavioural change.
Cause: ZephCore reads power monitors in triggered mode, but an INA219
does not power down after a triggered conversion; it idles at its
active supply current (datasheet 0.7 mA typ, 1 mA max; measured
579 uA) between telemetry reads.
Fix: power monitors are suspended after probe and resumed only around
each read. Of the INA drivers only the INA219 has PM, and its suspend
wrote "ADC off" (0b100), which measured the same 579 uA;
patches/zephyr/0020 makes it write power-down (0b000), as TURN_OFF
already does. Resume re-runs ina219_init(), restoring configuration
and calibration. A monitor that fails to wake is not read and its
error is returned, so telemetry drops the channel instead of
reporting 0 A; a failed suspend is logged.
Measured on a XIAO nRF52840 repeater, INA219 supply current: 579 uA
before, 579 uA with suspend as "ADC off" (without 0020), 4 uA with
0020; telemetry readings stay valid.
Tests: UNIT-SENSOR-001..005 build ZephyrEnvSensors.cpp on the host
against new device/sensor/PM stubs. Docs: ARCHITECTURE.md telemetry,
1.18.3 release notes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Raw LoRa packets to and from a host over the USB/console serial port, plus
upstream's SetHardware extensions (identity, crypto, radio config, stats).
- app/KissModem.cpp/h: upstream text, ZephCore changes fenced: an LBT
refusal returns to CSMA until the wait-clear bound; a TX times out only
once the radio has concluded (as Dispatcher::loop); SetRadio outside the
ZC_RADIO_* ranges is refused; msUntilNextTx() for the event loop.
- src/main_kiss_modem.cpp: event-driven composition root; runs the radio
maintenance the Dispatcher would. Identity in /lfs/repeater/_main.id.
- adapters/transport/ZephyrUartStream: Arduino Stream over IRQ RX/TX rings.
- boards/common/kiss_modem.conf: role, BT off, console driver off.
- LoRaRadio::getCurrentRSSI(), Print::availableForWrite().
- UI mesh-action stubs for every non-companion role.
Tested on 2x XIAO ESP32-C3 + Wio-SX1262 at 869.423 MHz SF7/62.5/CR5.
Built for xiao_esp32c3, rak4631, lora_e5_mini; host tests pass.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>