Commit Graph
170 Commits
Author SHA1 Message Date
tthandClaude Opus 5.5 9652199464 Merge upstream/dev (16 commits): UITask moved to src/helpers/ui
pub-release / release (push) Successful in 37m52s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 12:39:13 +01:00
Scott Powell 0b38bfd81a * refactored UITask from repeater/room/sensor to /helpers/ui/server
* added BaseUITask for common behaviours
* ui_task now instantiated in one of the variant's target-*.cpp modules
2026-11-18 18:18:06 +11:00
tth 637b0d78b7 FwUpdate: binary firmware chunks over the mesh (REQ_TYPE_FW_OTA 0xF0) 2026-11-13 00:55:06 +01:00
tthandClaude Opus 5.5 8d0b0dd164 Merge upstream/dev (80 commits) [upstream-sync]
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 09:22:19 +01:00
Will MacGregorandClaude Opus 5 287c5e21cf Enable simple_room_server on the STM32 platform
The room server gated its filesystem paths on NRF52_PLATFORM only, so an
STM32 build fell through to the ESP32 branch and failed to compile:

  MyMesh.cpp:147: no matching function for call to
    'Adafruit_LittleFS::open(const char*&, const char [2], bool)'
  main.cpp:69:   'store' was not declared in this scope

STM32 uses the same InternalFS / Adafruit_LittleFS API as nRF52, including
append semantics (FILE_O_WRITE opens LFS_O_RDWR|LFS_O_CREAT and then seeks
to the end), so the nRF52 branch is already correct for it. Add
STM32_PLATFORM alongside NRF52_PLATFORM in the four remaining gates;
saveIdentity() already did this.

This unblocks the room_server example on the existing STM32WL boards
(wio-e5-mini, wio-e5-dev, rak3x72, tiny_relay) as well as new ones.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-11-04 09:46:27 -05:00
tthandClaude Opus 5.5 a8f0c3dca6 simple_room_server: dfu, radio silence watchdog and get boot via NodeMaintenance
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 01:25:27 +01:00
Scott Powell 0812e09b40 missing board.loop() in companion, room server, kiss modem. 2026-09-22 18:01:15 +10:00
João Brázio dbb2aeee00 Ensure command buffers stay NUL-terminated to prevent overflow
The serial command buffers must stay NUL-terminated within their
bounds: if they ever aren't, strlen() can return >= sizeof(command)
and the read loop would index past the buffer. Additionally, a full
buffer now becomes a completed line (end-of-line marker placed
inside the buffer, NUL terminator kept) instead of overwriting the
terminator and silently corrupting the buffer for the next pass.

Applies to the serial CLI readers of the repeater, room server,
sensor and secure chat examples, and to the CLI rescue reader of
the companion example.
2026-09-04 20:01:39 +01:00
Ryan Gregg 3ba5de20f6 Merge remote-tracking branch 'upstream/dev' into rak-ethernet
# Conflicts:
#	examples/companion_radio/main.cpp
2026-07-13 23:06:00 -07:00
Quency-D 1a1239844c Merge branch 'dev' into solar-watchdog 2026-07-04 16:47:37 +08:00
Ryan Gregg 7f1ecc2045 Merge remote-tracking branch 'upstream/dev' into rak-ethernet
# Conflicts:
#	docs/faq.md
#	examples/companion_radio/main.cpp
2026-06-20 14:39:03 -07:00
AtlavoxDev 6a3db76e27 Rename bootComplete() to onBootComplete() for naming consistency
Matches the existing event-style lifecycle hooks on MainBoard
(onBeforeTransmit, onAfterTransmit) per @liamcottle's review feedback.
2026-05-25 09:50:28 -04:00
AtlavoxDev bb8e40ff22 Add MainBoard::bootComplete() hook for boot-indicator LED feedback
Framework for upcoming variant-specific PRs that add LED feedback during boot. The hook gives users visual cues that the device is busy and
shouldn't be interacted with until startup completes.
2026-05-25 09:04:47 -04:00
Ryan Gregg 4761d49449 Merge remote-tracking branch 'upstream/dev' into rak-ethernet
# Conflicts:
#	examples/companion_radio/main.cpp
2026-05-18 20:57:28 +00:00
Quency-D 1b2faf07fc Merge branch 'dev' into solar-watchdog 2026-05-09 18:08:32 +08:00
Scott Powell 8903b907d1 * Refactor: removed duplicated radio_rng_seed(), radio_set_params(), radio_set_tx_power() 2026-05-01 14:47:07 +10:00
Ryan GreggandClaude Opus 4.6 2afeb07beb Fix Ethernet init checking hardwareStatus before begin() and deduplicate CLI code
The Ethernet retry loop in repeater and room server checked
hardwareStatus() and linkStatus() before calling Ethernet.begin(),
which always returned EthernetNoHardware since hardware detection
only happens during begin(). Extract shared Ethernet CLI code into
EthernetCLI.h to prevent future divergence. Also fix time_t type
mismatch in companion radio Ethernet init.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 10:48:42 -07:00
Ryan GreggandClaude Sonnet 4.6 062be045f3 Address PR review feedback from liamcottle (second round)
- Rename eth command to eth.status for consistency with other commands
- Rename generateDeviceMac to generateEthernetMac for clarity
- Refactor ethernet_handle_command to return false by default
- Allow new TCP clients to replace existing connections (repeater, room server, SerialEthernetInterface)
- Boot companion radio without Ethernet on init failure (LoRa-only recovery mode)
- Remove > prompt from ethernet CLI for consistency with serial interface
- Fix variable redeclaration compile error in SerialEthernetInterface when ETHERNET_STATIC_IP is defined
- Fix TCP socket leak when duplicate client detection fires
- Remove dead recv_queue and adv_restart_time members from SerialEthernetInterface
- Fix port numbers in docs (port 23 for repeater/room server CLI, port 5000 for companion radio)
- Clarify eth.status command is only available in repeater and room server firmware

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-11 12:43:08 -07:00
Ryan Gregg 359832ab5b Updates based on PR review feedback from liamcottle 2026-03-10 22:35:31 -07:00
Ryan GreggandClaude Opus 4.6 d0d415d5f6 Add native Ethernet support for RAK4631 repeater, room server, and companion
Add W5100S Ethernet adapter support for RAK4631-based firmware, enabling
TCP CLI access on port 23 as an alternative to BLE/Serial connections.

- New SerialEthernetInterface for nRF52 with DHCP, reconnection handling,
  and shared WB_IO2 power pin management with GPS module
- Ethernet build targets for repeater, room server, and companion firmware
- Prevent GPS from toggling WB_IO2 when Ethernet module is active
- CI build check for all three ETH firmware targets

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 20:43:59 -07:00
Wessel Nieboer d7b406eb9a Address review comments 2026-03-04 03:13:53 +01:00
Quency-D 03fa3b767e Merge branch 'dev' into solar-watchdog 2026-02-09 10:15:50 +08:00
liamcottle c8992ae5b6 added build flag to enable/disable boot advert 2026-01-26 22:39:39 +13:00
liamcottle 6cb97cca77 boot adverts are now zero hop instead of flood 2026-01-26 22:20:36 +13:00
Quency-D e902293246 Add an external watchdog module 2026-01-22 15:03:40 +08:00
Scott Powell 7ff483ab74 * Fix for VolatileRTCClock wrapping around to initial synced time every 49 days 2025-10-30 16:45:50 +11:00
Scott Powell aa1b0594b8 * room refactor: extracted MyMesh class 2025-09-09 20:52:19 +10:00
Quency-D 295f23ab21 add heltec meshpocket board. 2025-09-02 13:56:24 +08:00
Scott Powell 2aafb1ab4f * ver bump 2025-09-01 19:32:15 +10:00
Scott Powell c1233511b3 * added CommonCLI::saveIdentity() 2025-09-01 15:22:11 +10:00
Scott Powell f163e14ffd * ver bump 2025-08-31 23:42:15 +10:00
recrof b0dd97630a set default flood advert interval to 12 hours 2025-08-20 13:44:41 +02:00
Scott Powell 8bef2e75a6 * new CommonCLI commands: "get prv.key", "set prv.key {hex}" 2025-08-01 19:28:44 +10:00
Scott Powell 36cfc506ca * REQ_TYPE_GET_TELEMETRY_DATA, first reserved byte (of 4) is now inverse mask to apply to permissions 2025-07-31 13:45:53 +10:00
Scott Powell 02e89aafa4 * ver bump to 1.7.4 2025-07-24 20:30:35 +10:00
Scott Powell 22efc0e72f * CommonCLI: "set radio " now with optional 5th param timeout_mins, for applying temporary radio params for that many mins
* "advert" command now with longer delay, so that CLI reply is sent first
2025-07-23 21:40:37 +10:00
Scott Powell 51eae0bf6f * CommonCLI: new "multi.acks" config setting 2025-07-16 18:51:18 +10:00
Scott Powell 429721a47e Merge branch 'dev' into double-acks 2025-07-15 17:02:20 +10:00
Scott Powell a6067daba7 * ver bump 2025-07-15 15:59:10 +10:00
Scott Powell b574709030 Merge branch 'dev' into double-acks 2025-07-09 14:59:25 +10:00
Scott Powell 8c56e9901f * refactor: CommonCLI, processing of optional command prefix moved to handleCommand() call sites
* Sensor, anon_req now just for admin login (guest password now unused)
* special CLI command, "setperm {pubkey-hex} {permissions-int16}" for admin(s) to manage user access (permissions 0 = remove)
2025-07-08 23:19:35 +10:00
Scott Powell 1c9194181a * Mesh::onAnonDataRecv() slight optimisation, so that shared-secret calc doesn't need to be repeated
* SensporMesh: req_type now optionally encoded in anon_req payload (so can send various requests without a prior login)
2025-07-08 23:19:35 +10:00
Scott Powell 169d33290e Merge branch 'dev' into double-acks 2025-07-08 22:14:48 +10:00
Scott Powell 0f9535d15b * ver bump to v1.7.2 2025-07-02 21:11:07 +10:00
Scott Powell 88074dbd1e Merge branch 'dev' into double-acks 2025-06-29 21:10:43 +10:00
Scott Powell 827d2771d1 * ver bump to v1.7.1 2025-06-29 20:06:24 +10:00
Scott Powell ef2efd94aa Merge branch 'dev' into double-acks 2025-06-24 13:07:36 +10:00
Scott Powell e7df8c283f * room server: new posts now delayed by 6 seconds before syncing to clients 2025-06-23 15:56:19 +10:00
Scott Powell 117d2d2f22 * new PAYLOAD_TYPE_MULTIPART
* experimental double ACK's (at each hop), sent 300ms apart (direct mode only)
2025-06-23 01:14:08 +10:00
Scott Powell 01b246b3ff * room server: suggested keep_alive interval now disabled 2025-06-16 17:02:44 +10:00