CONFIG_ZEPHCORE_ROLE_FORWARDER, gated on the lora1 alias. One node
identity on two radios: a packet heard on one side may go out on the
other, never back on its own, if the fwd rules allow it.
- RepeaterMesh takes its node state from RepeaterShared: ACL, regions,
transport keys, flood filter, twin guard, failed-login limiter, time
sync, neighbours. Side b uses side a's failed-datagram budget.
- Crossing: the repeater's allowPacketForward() checks, then, through
roleAllowsForward() and before anything is recorded, the direct
hash-collision guard and the fwd rules (ForwarderRules, default deny).
- Per side: name, radio, TX power, timing, LBT and cad.ceiling, RX gain
and duty cycle, adverts, send queue, contention. Side b's prefs in
prefs_b.json; side a's are authoritative for shared fields at boot.
- CLI: per-radio .a/.b/.peer suffixes, `fwd` for the rules.
- RAK4631 + RAK13300 conf and overlay; compile-only CI build.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
No behaviour change for the existing roles.
- StaticPoolPacketManager: one send queue per manager over one pool.
- Dispatcher::queueRetransmit() and Mesh::routeDirectRecvAcks() are
overridable, so a retransmit can go out on another radio.
- Dispatcher::holdTxForOtherRadio(): defers a transmit without counting
toward RX-stuck recovery; false unless a role overrides it.
- Mesh::macFails(): the failed-datagram budget, overridable so two Meshes
of one node spend one budget.
- LoRaRadio: a TX-wait stack per radio (array sized by the lora0/lora1
aliases) and isReceivingPacket() for the other radio's hold.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
led_brightness sat at companion offset 174, in front of the WiFi
fields, so a 272-byte file written by upstream dev decoded with the
wrong led_brightness and a shifted SSID. Append it after wifi_pwd
(offset 272) and restore the original test offsets and the 208/272
historical lengths.
WT2 and V4.3 only got CONFIG_PWM through esp32s3_pwm_led.conf, which
the release build never passes, so release links would fail. Set
CONFIG_PWM=y in each board.conf instead. board.conf is app-only and
mcuboot does not inherit it, so the mcuboot link failure that rules out
the defconfig does not apply.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
companionPrefsEncode()/serverPrefsEncode() never wrote the led_brightness
byte that companionPrefsDecode()/serverPrefsDecode() already read,
desyncing every field that follows it by one byte on the companion side
(wifi_enabled/wifi_ssid/wifi_pwd) and silently truncating the server
format by one byte. Caught by CI's ASan/UBSan run on the host regression
suite: an out-of-bounds read/write in the pinned layout tests.
Since led_brightness never existed upstream, nothing already accounted
for it: fixing only the encoder still leaves the pinned byte tables and
the documented 272/311-byte totals (COMPANION_PREFS_SIZE/
SERVER_PREFS_SIZE, used by the real prefs stores too, not just tests)
one byte short of what the encoder now actually produces.
- PrefsCodec.h: bump both size constants (272->273, 311->312).
- PrefsCodec.cpp: add the missing w.put() in both encoders, mirroring
the position already used by both decoders.
- prefs_codec_tests.cpp: add led_brightness to both layout tables at its
real file offset (shifts wifi_enabled/wifi_ssid/wifi_pwd by one byte
on the companion side; server's is appended last, nothing else
shifts), extend both historical-boundary length lists with the new
full-format length, and give it a non-default value in sample() so
the layout/roundtrip tests actually exercise it.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
- tests/ (114 host cases over production sources), the CI workflow
(ASan/UBSan on PRs and master pushes) and REGRESSION_TEST_PLAN.md
are tracked
- .gitignore grouped and deduplicated (173 -> 96 lines, same ignored set)