879 Commits
Author SHA1 Message Date
liquidraver c6e4958c49 zephyr nightmare bump 1.18.3-zephcore 2026-12-01 10:34:02 +01:00
liquidraver 1e6f228e4e Merge pull request #120 from recrof/esp32-reboot-usb
esp32: keep the USB-Serial-JTAG pad on through reboot()
2026-11-30 12:00:38 +01:00
liquidraver 12e8ee9515 Merge pull request #119 from recrof/forwarder
Forwarder role: two radios, one node, forward only (ADR 0012)
2026-11-30 11:49:49 +01:00
Rastislav VysokyandClaude Opus 5.5 b710f1b317 docs: forwarder role (ADR 0015, FORWARDER.md, CLI, release notes)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 11:16:17 +01:00
Rastislav VysokyandClaude Opus 5.5 f0bce0b335 forwarder: two-radio role that forwards between networks, never repeats
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>
2026-11-30 11:16:17 +01:00
Rastislav VysokyandClaude Opus 5.5 3acad8cafe core: hooks for a node on two radios
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>
2026-11-30 11:16:17 +01:00
Rastislav VysokyandClaude Opus 5.5 16ab32883e lora: one DIO1 work-queue stack per radio instance
Every SX126x, LR11xx and LR20xx instance started its own k_work_q on one
file-scope stack. With two radios the second queue's thread was created
on the stack the first was running on, and the first radio's DIO1 work
never ran (side a: recv:0 for 25 minutes while side b heard the same
node). Each instance macro now defines its own stacks and passes them in
the const config; a single-radio build has the same stacks as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 11:16:17 +01:00
liquidraver ad0c9abd78 mesh: budget failed peer datagrams per source hash 2026-11-30 10:35:13 +01:00
liquidraver b1f30d40bf sx126x: no SPI wait in the RX-busy check during duty-cycle sleep 2026-11-30 09:18:24 +01:00
Rastislav VysokyandClaude Opus 5.5 bcf50c5153 esp32: keep the USB-Serial-JTAG pad on through reboot()
ZephyrBoard::reboot() turned the USB-Serial-JTAG pad off for 100 ms before
sys_reboot() (GH #43). On ESP32-C6 that left the USB console dead after
every CLI `reboot` until the board was unplugged: no CLI, no ROM banner,
esptool could not connect, while the node kept running over the radio.
A software reset keeps the USB-Serial-JTAG link without it, as ESP-IDF's
esp_restart() and Arduino MeshCore do. rebootToBootloader() (ESP32-S3
`start dfu`) keeps its drop and re-enable.

Ran on XIAO ESP32-S3, XIAO ESP32-C3, XIAO ESP32-C6, LilyGo T-Lora C6.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 19:11:35 +01:00
liquidraver 1b08be2c58 releasenotes update 2026-11-29 17:12:45 +01:00
liquidraverandClaude Opus 5.5 3a8b0dcdbb tests: INA3221 power monitor PM
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 16:46:09 +01:00
liquidraverandClaude Opus 5.5 442385bd32 Merge pull request #115 from ha5la/ina219-power-down-dev
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>
2026-11-29 16:29:04 +01:00
liquidraverandClaude Opus 5.5 3ef3670996 observer noise floor, mqtt packet counters
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 19:07:02 +01:00
liquidraver db82b2cb20 lr20xx: SDK v2.1.0, PRAM 0x16, new PA tables 2026-11-26 12:54:58 +01:00
liquidraver 5c4c22036f repeater: skip damaged flood twins 2026-11-25 22:25:38 +01:00
liquidraver 6ddfb65b61 clock: slew backward time sets 2026-11-24 13:55:24 +01:00
liquidraver 50a28614f7 zephyr bump and upstream ports 2026-11-23 10:37:07 +01:00
liquidraver 52a4f1f4b7 lbt log: send queue fields 2026-11-20 22:49:22 +01:00
Laszlo AshinandClaude Opus 5.5 3658e15499 sensors: power down INA power monitors between reads
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>
2026-11-20 15:29:38 +01:00
Laszlo AshinandClaude Opus 5.5 a9fa6fce85 sensors: extract read_entry() from env_sensor_read()
Structural change, no behaviour change: the per-sensor read moves into
a helper so env_sensor_read() can wrap it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 14:49:54 +01:00
liquidraver 285ca91b44 dispatcher: fix sendPacket thread comment 2026-11-19 23:17:30 +01:00
liquidraver baa91c4422 lbt: cad.ceiling escape hatch 2026-11-19 23:17:29 +01:00
liquidraver c0f4b2069c queue: refused packet keeps its place 2026-11-19 23:17:20 +01:00
liquidraver 3159a625a8 lr11xx/lr20xx: radiolib fixes, xosc flag 2026-11-17 09:29:48 +01:00
liquidraver 76e969cc1a lr20xx: clear tx fifo 2026-11-17 06:21:18 +01:00
liquidraver c047624efa update formatters 2026-11-15 16:30:10 +01:00
liquidraver 66e23e505e formatter update 2026-11-15 15:46:38 +01:00
liquidraver b0d1db108c upstream: gps firstfix, ble.name 2026-11-15 14:48:03 +01:00
liquidraver e8894ce5ff zephyr bump 7cd4b562b30 2026-11-15 14:08:16 +01:00
liquidraver 2fcf78e045 observer: log prefix and RAW line 2026-11-15 12:56:46 +01:00
liquidraver 42aeae4c3e ecdh: refuse small-order peer keys 2026-11-15 09:00:11 +01:00
liquidraver 6a5470ab1e identity: refuse small-order keys 2026-11-15 08:25:00 +01:00
liquidraver 4f6d0ad453 repeater: blank login moves request mark only 2026-11-13 18:38:38 +01:00
liquidraver 00b470c201 texts: request mark, login and path checks 2026-11-13 10:03:21 +01:00
liquidraver 85a2e45830 texts: allow attempt and hint tail 2026-11-12 19:21:45 +01:00
liquidraver 4b2f403c7a releasenotes shortening 2026-11-12 14:34:34 +01:00
liquidraver c1b91c8de1 texts: text plus padding only 2026-11-12 14:27:50 +01:00
liquidraver eb84ba258b timpulse gps enable active-low 2026-11-12 13:13:27 +01:00
liquidraver 18f8037d81 test and ci de-bloat 2026-11-12 13:09:30 +01:00
liquidraver 797f361067 zephyr bump 54b1e23b9ce 2026-11-12 13:03:58 +01:00
liquidraver 74a7e87e24 core mesh audit fixes 2026-11-12 12:26:53 +01:00
liquidraver 6e05f99d7f gps cli, gps guard, advert.loc 2026-11-12 08:32:07 +01:00
liquidraver eee3a429fb epd deep sleep when off 2026-11-12 08:32:07 +01:00
liquidraver 1758f4ad7a rak3401 onboard sx1262 sleep 2026-11-12 08:32:07 +01:00
liquidraver 4dbd6fca8a rak 3v3_s off at poweroff 2026-11-12 08:32:07 +01:00
liquidraver a268afdd32 zephyr bump 3a7ed4fcd55 2026-11-11 21:10:38 +01:00
liquidraver 222a1189a0 update agents.md 2026-11-11 20:32:46 +01:00
liquidraver af0d0b58ee heltec patch cleanup 2026-11-11 20:30:34 +01:00
liquidraver 6e458e2426 lr20xx audit fixes, per-radio bw floor 2026-11-11 20:29:11 +01:00