Commit Graph
238 Commits
Author SHA1 Message Date
tthandClaude Opus 5.5 993a14504e nrf52: hardfault recorder v aplikaci a v .noinit (#5)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 22:59:02 +02:00
tthandClaude Opus 5.5 21425b5d65 nrf52: hodiny přežijí warm reset v .noinit (#5)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 22:17:40 +02:00
tthandClaude Opus 5.5 d934161a77 blepwr: explicitní hodnota se ukládá vždy, blepwr default ji zapomene
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 23:54:44 +02:00
tthandClaude Opus 5.5 81ccbc2051 blepwr/fairness: opravy z review-three
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 23:46:40 +02:00
tthandClaude Opus 5.5 b3db81151f repeater/ble: blepwr se ukládá a přežije reboot
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 23:39:44 +02:00
tthandClaude Opus 5.5 ab27c590fc Merge remote-tracking branch 'origin/dev' into main
77 upstream commitů (8.–23. 9. 2026): MyMesh::Listener místo UITask,
Board::handleCommand + board.loop() hook, agc.reset.interval, validace
`set af`, CMD_SEND_CHANNEL_DATA gate, DC-DC na LR1110/LR1121, nové desky.

Konflikty:
- simple_repeater/main.cpp: náš BLE vstup konzole + upstream oprava
  plného bufferu (\r na size-2, NUL na konci)
- platformio.ini: zůstává ${nrf52_fw.pkg} (pin je shodný s upstreamem)
- TxtDataHelpers.cpp: upstream verze (ltoa + include api/itoa.h) místo
  našeho sprintf — řeší totéž STM32 selhání
- EnvironmentSensorManager.h: obě metody

Postaveno: SenseCap_Solar_repeater_ble, SenseCap_hreb_rpt,
SenseCap_ples_rpt, Xiao_x1_rpt, Xiao_x2_cmp, T1000E_cmp_cz. Neflashováno.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-23 18:35:35 +02:00
Wolfram Keil ba345d486c Add board loop hook for periodic work 2026-09-22 08:01:48 +02: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
tthandClaude Opus 5 10a0c7cefc Merge upstream v1.17.0 (origin/main) into the analyzer/BLE fork
Upstream shipped companion/repeater/room-server v1.17.0 today; its tree is
identical to origin/main, so that is what this merges. Our base was 7 Jul
(7b566670), i.e. 350 files / +11k lines of upstream behind.

Conflicts and how they were settled:

* Mesh.cpp -- upstream split the dedup into wasSeen() + explicit markSeen().
  Kept BOTH: their new call pair AND our payload-length bound on the TRACE
  path-hash read, which is what stops a crafted short TRACE from steering
  isHashMatch() past the buffer.
* companion_radio/main.cpp -- upstream grew its own MultiSerialInterface
  (BLE + USB + WiFi + Ethernet registered side by side), which is a superset
  of the SerialDualInterface we backported from PR #1779. Took theirs whole;
  our copy is now dead code. NOTE: envs that relied on the backport for a USB
  console alongside BLE now need an explicit -D ENABLE_USB_INTERFACE.
* ui-new/UITask.cpp -- isSerialEnabled() was renamed isBluetoothEnabled()
  upstream and DisplayDriver::RED became UIColor::warning_txt. Same intent
  either way: no BT pin on screen while Bluetooth is off.
* EnvironmentSensorManager.cpp -- upstream fixed the millis() wrap on the GPS
  update timer in the exact line our gpsDutyLoop() call sits on. Kept both,
  with their wrap-safe compare.
* NRF52Board.cpp -- upstream independently arrived at the same sd_temp_get()
  fix for SoftDevice-protected TEMP. Took their form, kept our comment, which
  is the only place recording WHY (APP_MEMACC fault -> reboot on telemetry).
* RadioLibWrappers.{h,cpp}, simple_repeater/main.cpp -- add/add. Their
  configSideDetectors()/performChannelScan()/external watchdog next to our
  irqDoneMask()/probeDio1()/BLE pump/WDT feed. The repeater console keeps the
  1032-byte reply buffer for paged analyzer output and now clears it, since a
  static buffer would otherwise reprint the previous reply.
* .vscode/extensions.json -- deleted upstream, and it is in .gitignore; our
  only change was a comment. Gone.

Built clean: Xiao_x1_rpt, Xiao_x2_cmp, Xiao_x3_obs, SenseCap_s1_rpt,
T1000E_cmp_cz. Not flashed to anything yet.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-09 22:44:07 +02:00
tthandClaude Opus 5 bbd4fbc358 feat(clock): a node with no GPS starts at its build epoch, not in 2024
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-09 22:24:59 +02:00
Scott Powell 49319023e5 Merge branch 'dev'
# Conflicts:
#	docs/payloads.md
2026-08-09 14:36:53 -04:00
tthandClaude Opus 5 1362b8a1f4 feat(power): stop paying for a blinking LED and 6.5 Hz advertising
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-06 10:05:56 +02:00
tthandClaude Opus 5 4d96ff9e2f docs: correct the USB-vanish diagnosis, and write down what was measured
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-04 22:59:03 +02:00
tthandClaude Opus 5 b022b022f9 fix(repeater/dfu): drop D+ before the reset, and print RESETREAS at boot
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-04 22:38:47 +02:00
tthandClaude Opus 5 82cbe85864 feat(radio): DIO1-less operation + pin diagnostics, to salvage bench-board
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-04 21:32:58 +02:00
tthandClaude Opus 5 da36e0503e fix(repeater): advertise the node's real name over BLE; harden the UF2 flasher
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-04 13:48:07 +02:00
tthandClaude Opus 5 8dc4448e89 feat(repeater): dfu [uf2|serial|ota] — deterministic reboot into the bootloader
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-04 12:53:20 +02:00
tthandClaude Opus 5 50b94bdb21 feat(repeater): blink on|off, txpwr with RadioLib's verdict; UF2 flash helper
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-04 12:45:28 +02:00
tthandClaude Opus 5 614f9f4941 feat(repeater): blink [n] — ask a board to identify itself
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-04 12:20:28 +02:00
tthandClaude Opus 5 5c6dc91714 feat(repeater/ble): runtime conn TX power (blepwr) + negotiated params (bleconn)
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-03 19:12:04 +02:00
tthandClaude Fable 5 718b770f21 perf(repeater/ble): non-blocking console TX pump — main loop never stalls on BLE
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-21 21:24:20 +02:00
tthandClaude Fable 5 5afeca1b76 fix(repeater/ble): widen conn interval 15-30 -> 60-80 ms; pktfeed ring 32 -> 64
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-21 13:43:34 +02:00
fdlamotte 1b929311c4 Merge branch 'dev' into repeater_btn 2026-07-17 06:55:19 -04:00
tthandClaude Fable 5 4d9648ba90 feat(repeater/analyzer): big console pages + physics-sized tables (rxlog 512, heard 128)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-15 11:53:48 +02:00
ripplebiz f1b84898a6 Merge pull request #1983 from rgregg/rak-ethernet
Support for RAK ethernet module
2026-07-15 18:53:38 +10:00
Quency-D 72afb0256f Remove the watchdog feeding operation from each iteration of the loop to reduce power consumption. 2026-07-14 17:23:13 +08: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
tthandClaude Opus 4.8 8f602facb2 fix(repeater/ble): slave latency 4 -> 0 to hold sync on the marginal link
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-12 02:29:18 +02:00
tthandClaude Opus 4.8 26cbe0d8b7 fix(repeater/ble): raise BLE supervision timeout 6s -> 16s
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-12 02:00:33 +02:00
tthandClaude Opus 4.8 95b60cd3da fix(repeater/ble): widen connection supervision timeout to stop link churn
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-12 01:15:29 +02:00
tthandClaude Opus 4.8 434e306430 feat: expose repeater text console over BLE + nRF52 SoftDevice fixes
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-11 19:21:11 +02:00
Florent aea3ba3fdb repeater: poweroff on long press 2026-07-06 08:40:56 -04: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
Kevin Le e9d4cd8f53 Reduced time drift from 60s/day to 7s/day for ESP32-based repeaters with power saving. 2026-05-28 15:13:14 +07:00
Kevin Le 6ff6da2865 Let ESP32-based repeaters to sleep immediately receiving and process a LoRa packet 2026-05-28 15:10:36 +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
Quency-D 69c98fabda Fix external watchdog timing around sleep 2026-04-27 15:32:02 +08:00
Quency-D ef83591306 Merge pull request #10 from meshcore-dev/dev
merge Dev
2026-04-27 14:48:26 +08:00
Ryan GreggandClaude Opus 4.6 26c576b014 Merge upstream/dev into rak-ethernet
Resolve conflicts: keep both Ethernet CLI and SenseCAP power-off
button code in repeater, keep both Ethernet docs and power management
CLI docs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 11:07:09 -07: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
Specter242 ed3e413a54 sensecap solar: stabilize wake pin and add button hold poweroff 2026-02-27 22:51:19 -05:00