Skip to content

feat(autoresearch): dual-device WiFi bench green + C6 USB-CDC truncation fix + parlioMetrics RPC (#3576 Phase 7) - #3587

Merged
zackees merged 1 commit into
masterfrom
feat/dual-device-bench-c6-serial-3576
Jul 2, 2026
Merged

zackees merged 1 commit into
masterfrom
feat/dual-device-bench-c6-serial-3576

Conversation

@zackees

@zackees zackees commented Jul 2, 2026 •

Copy link
Copy Markdown
Member

Phase 7 milestone: first cross-device network validation on the attached bench.

Dual-device sequence (verified live)

  1. WROOM (COM11): startNetServer → SoftAP FastLED-AutoResearch @ 192.168.4.1 + HTTP server.
  2. C6 (COM9): wifiConnect (the new fl::net::wifi::connectSta from feat(net): fl::net::wifi connection API + netActivity RPC (#3576 Phase 6) #3584) → joined, DHCP 192.168.4.2.
  3. C6 netActivity flips wifiActive:true during association.
  4. C6 runNetClientTest {host_ip:192.168.4.1, port:80} → HTTP GET across the air.
  5. Clean teardown both sides (wifiStop / stopNet).

Fixes / additions

C6 driver matrix (recorded in #3586)

UART/SPI: 4/4 byte-exact on the GPIO1→GPIO0 loopback. RMT + PARLIO: transmit runs (DMA/ISR healthy, pin routed, clock divider correct, wire toggles per GPIO_IN probe) but the capture sees nothing — deep-dive issue filed with all register evidence.

Host: 346/346; lint clean.

Refs #3576, #3586.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • Added a new system metrics endpoint for supported ESP32 setups, returning real-time PARLIO transmission statistics and status information.
  • Bug Fixes
    • Improved USB serial behavior in the AutoResearch example by enabling a short transmit timeout when the host is connected, helping prevent stalls during output.

…arlioMetrics RPC (#3576 Phase 7)

First cross-device network validation on the bench: WROOM (COM11) runs
startNetServer (SoftAP 192.168.4.1 + HTTP), C6 (COM9) joins via the
new fl::net::wifi connectSta RPC (DHCP 192.168.4.2), netActivity
flips wifiActive during the association, and runNetClientTest fetches
HTTP across the air. Clean teardown both sides.

Changes:
- AutoResearch.ino: once a host is attached (fl::serial_ready()),
  raise the USB-Serial-JTAG TX timeout to 100 ms. The boot-time
  setTxTimeoutMs(0) (drop-fast for headless boots, #2668) truncated
  every RPC response longer than the 64-byte HWCDC FIFO on the C6
  bench — systematic mid-line cuts that broke host-side JSON parsing.
  Headless boots keep the drop-fast behavior.
- parlioMetrics RPC: exposes the PARLIO engine's debug counters
  (isrCount, txDoneCount, chunks, bytes, underruns, errorCode) — used
  to prove DMA-complete during the #3586 investigation; permanently
  useful for lane-sweep robustness monitoring.

C6 driver-matrix findings recorded in #3586 (RMT + PARLIO clockless
TX not captured on the C6 loopback while UART/SPI pass 4/4 byte-exact
on the same jumper; PARLIO DMA + pin routing + clock divider all
verified healthy; wire toggles per GPIO_IN probe — capture-side or
waveform-rate issue still open).

Host: 346/346, lint clean, esp32dev compile clean.

Co-Authored-By: Claude Fable 5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Jul 2, 2026 •

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 6c977d0a-3b03-4db7-8ef6-912058b797ce

📥 Commits

Reviewing files that changed from the base of the PR and between c804555 and ba01d3c.

📒 Files selected for processing (2)
  • examples/AutoResearch/AutoResearch.ino
  • examples/AutoResearch/AutoResearchRemoteSystemMethods.cpp

📝 Walkthrough

Walkthrough

Adds a conditional USB CDC TX timeout setting in AutoResearch.ino's setup() when serial is ready, and introduces a new parlioMetrics RPC in AutoResearchRemoteSystemMethods.cpp that returns PARLIO engine debug metrics, gated by ESP32/Parlio support flags.

Changes

AutoResearch Example Updates

Layer / File(s) Summary
USB CDC TX timeout on serial ready
examples/AutoResearch/AutoResearch.ino
After the serial-attach wait loop, a new #if ARDUINO_USB_CDC_ON_BOOT block checks fl::serial_ready() and sets Serial.setTxTimeoutMs(100) to switch from drop-fast to blocking writes.
parlioMetrics RPC and Parlio headers
examples/AutoResearch/AutoResearchRemoteSystemMethods.cpp
Adds ESP32/Parlio-guarded headers and a new parlioMetrics RPC bound in bindSystemMethods that returns JSON with ISR/DMA counters and status flags from ParlioEngine::getInstance().getDebugMetrics().

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related issues

Possibly related PRs

  • FastLED/FastLED#3191: Both touch the bindSystemMethods RPC registration path in AutoResearchRemoteSystemMethods.cpp.
  • FastLED/FastLED#3552: Both modify AutoResearch.ino's setup() flow around fl::serial_ready().
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/dual-device-bench-c6-serial-3576

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Jul 2, 2026
@zackees
zackees deleted the feat/dual-device-bench-c6-serial-3576 branch August 21, 2026 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant