Commit Graph
102 Commits
Author SHA1 Message Date
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 c1b91c8de1 texts: text plus padding only 2026-11-12 14:27:50 +01:00
liquidraver 18f8037d81 test and ci de-bloat 2026-11-12 13:09:30 +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 6e458e2426 lr20xx audit fixes, per-radio bw floor 2026-11-11 20:29:11 +01:00
lygris b1caf8c195 fix(radio): retain Heltec RX workaround across warm sleep 2026-11-11 08:29:28 -06:00
liquidraver 9b820396e9 timpulse: program sgm41562 charger 2026-11-11 15:22:42 +01:00
liquidraver 5e73610fc1 radio audit findings 2026-11-11 15:11:36 +01:00
liquidraver f2c579efa3 sx126x: encode cad symbol count, default 4 2026-11-11 08:46:30 +01:00
liquidraver aa29e0ea0a lbt: forwards draw contention-sized slot window 2026-11-11 08:46:30 +01:00
liquidraver f18392a56c lbt: retry from rx end stamp, retire per-copy backoff 2026-11-10 06:38:54 +01:00
liquidraver dae8416754 lbt: retry from rx end, fixed window 2026-11-09 22:11:45 +01:00
liquidraver e8e9ed8fc0 lbt backoff, noise floor, cad scoring 2026-11-09 21:26:21 +01:00
liquidraver de9471bea5 upstream dev port 2026-11-08 17:26:07 +01:00
liquidraver b409998ef6 server: replay slack 10 s 2026-11-08 13:48:27 +01:00
liquidraver 353a91fd05 server: replay marks start at boot clock 2026-11-08 13:13:24 +01:00
liquidraver dcafa3394b utils: bound encrypt length 2026-11-08 13:11:43 +01:00
liquidraver 24762a203a login: no empty admin password 2026-11-08 13:11:02 +01:00
liquidraver 51d2e454d9 login: enforce failed-login limit 2026-11-08 13:10:32 +01:00
liquidraver 751fd7a14e upstream ports 2026-11-01 12:15:31 +01:00
liquidraver 62d506f701 enforce CRC 2026-11-01 07:59:08 +01:00
liquidraver af21c78028 add ble ota for ESP (that has enough RAM) 2026-10-26 15:33:50 +01:00
liquidraver d2f65687ef wifi stall fix 2026-10-22 15:49:51 +02:00
liquidraver 54d708401e fix led bug 2026-10-22 15:06:58 +02:00
liquidraver 6f7f807e82 upstream dev bump 2026-10-22 15:01:02 +02:00
liquidraver 319369f173 ui fixes for wifi 2026-10-15 22:24:49 +02:00
liquidraver afa7ada095 sleep fixes 2026-10-15 21:53:08 +02:00
liquidraver ff0e6553a0 kiss updates 2026-10-15 21:34:26 +02:00
liquidraver 2544c24560 Merge pull request #109 from recrof/kiss-radio-support
add KISS modem role (port of upstream examples/kiss_modem)
2026-10-15 21:04:47 +02:00
liquidraver 38c59ee10f upstream dev sync + bump to 1.18 2026-10-15 20:14:53 +02:00
Rastislav VysokyandClaude Opus 5.5 93c1a589d5 add KISS modem role (port of upstream examples/kiss_modem)
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>
2026-10-14 18:44:36 +02:00
liquidraver ec55eb0f4c gps time sync improvement 2026-10-12 19:51:56 +02:00
liquidraver 448ff91590 offgrid overhaul 2026-10-12 10:20:40 +02:00
liquidraver 90370e461e button fixes 2026-10-11 10:45:37 +02:00
liquidraver e00b128221 observer TLS fix 2026-10-10 10:35:11 +02:00
liquidraver 12eba394a4 add erase and reboot to observers 2026-10-10 08:27:56 +02:00
liquidraver 5ac3156943 observer lightsleep + companion opt-in 2026-10-09 21:01:26 +02:00
liquidraver 1b3d378c67 enable MCU temp for ESP 2026-10-09 12:27:14 +02:00
liquidraver c69b3c61aa md updates 2026-10-09 08:54:59 +02:00
liquidraver c60b5e1bae pwm cleanup 2026-10-09 08:38:37 +02:00
liquidraver 119d1249b1 Merge pull request #79 from bisbille/pr-led-brightness-pwm
leds: PWM brightness control, persisted, with TX/RX pin-share arbitration
2026-10-08 19:20:18 +02:00
liquidraver 6acefe609d md updates 2026-10-08 19:19:58 +02:00
ZephCore T096andClaude Sonnet 5 6b9d205b00 leds: do not reclaim a PWM-shared pin as plain GPIO in main()
server_main_common.cpp and main_observer.cpp both configured led0 as
a plain GPIO output at boot, unconditionally. On ESP32 that calls
esp_rom_gpio_matrix_out() under the hood, which routes the pin's
output to the GPIO signal and takes it away from whatever peripheral
had it before, including the LEDC channel a heartbeat-pwm-led or
lora-tx-pwm-led alias had already claimed during the PWM driver's own
init. The PWM write then succeeds (no error, no warning) but never
reaches the pin: confirmed on V4.3 hardware, where the same pin lights
up fine over plain GPIO, and over PWM in a different (non-Zephyr)
firmware, but stays dark over Zephyr's PWM once this GPIO configure
has run.

Companion builds never hit this (they don't use server_main_common.cpp)
and nRF52 isn't affected (no shared GPIO matrix), which is why T096
tested fine while V4.3 didn't.

Fix is alias-based, not a board list, so any future board with either
PWM alias is covered without extra wiring.

Also: CLI_HAS_RADIO_LED only checked the plain lora-tx-led alias, so
"set leds.radio" replied "(no radio LED on this board)" on boards
whose radio LED exists only via lora-tx-pwm-led (V4.3). Check both.

Documents the two PWM aliases in the board porting guide, and
leds.brightness plus the corrected LED topology counts in
docs/CLI_commands.md.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-08 18:27:42 +02:00
Pieter ViljoenandClaude Opus 5.5 db69172c66 rtc: clear the RV3028 12-hour bit at boot
ZephCore assumed 24-hour mode. If other firmware had left an RV3028 in
12-hour mode, the boot read masked the hours with 0x3F and could restore
a time up to twelve hours off, and each save's 24-hour hours byte meant
a different hour to the chip.

A new optional twelve-hour-bit = [register mask] names the bit, set on
the two RV3028 nodes to Control 2 12_24. Once the chip is cleanly
identified at boot, rtc_probe() clears a set bit and re-reads the time
block; the chip converts its own hours, as MeshCore relies on. If the
register cannot be read, reads FFh, or the clear or re-read fails, no
time is taken from the chip. DS3231/DS1307 are unchanged: a save's hours
byte already selects 24-hour mode there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 07:19:25 -07:00
Pieter ViljoenandClaude Opus 5.5 9b68b7e1ae rtc: write the RTC time only for years 2000-2099
ZephCore writes the year as two BCD digits with no century, as y % 100.
A time before 2000, accepted by a node whose clock had no time yet, was
stored as a year near the end of the century and restored at the next
boot above the 2025 floor: `time 900000000` (1998) came back as 2098.

rtc_time_block() now fails outside 2000-2099, and zephcore_rtc_save()
then logs and writes no time, for every chip; the chip keeps the time it
has. An RV3028 write retry stops if its run-on time leaves the range.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 07:09:40 -07:00
liquidraver 81d98abf2e HLD update 2026-10-06 21:54:36 +02:00