Repository navigation
feat(autoresearch): dual-device WiFi bench green + C6 USB-CDC truncation fix + parlioMetrics RPC (#3576 Phase 7) - #3587
Merged
Conversation
…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]>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughAdds 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. ChangesAutoResearch Example Updates
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related issues
Possibly related PRs
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 7 milestone: first cross-device network validation on the attached bench.
Dual-device sequence (verified live)
startNetServer→ SoftAPFastLED-AutoResearch@ 192.168.4.1 + HTTP server.wifiConnect(the newfl::net::wifi::connectStafrom feat(net): fl::net::wifi connection API + netActivity RPC (#3576 Phase 6) #3584) → joined, DHCP 192.168.4.2.netActivityflipswifiActive:trueduring association.runNetClientTest {host_ip:192.168.4.1, port:80}→ HTTP GET across the air.wifiStop/stopNet).Fixes / additions
setTxTimeoutMs(0)(drop-fast so headless boots never stall, fl::print: minimal-surface contract — non-blocking on missing CDC host, USJ LL fallback on ESP32 USJ chips #2668) — but with a host attached that truncated every RPC response longer than the 64-byte HWCDC FIFO, systematically breaking host-side parsing. Now, oncefl::serial_ready()sees a host, the TX timeout is raised to 100 ms. Headless behavior unchanged.parlioMetricsRPC: PARLIO engine debug counters (isrCount, txDoneCount, chunks, bytes, underruns, errorCode) — used to prove DMA-complete in the ESP32-C6: RMT and PARLIO clockless TX not captured on loopback bench — UART/SPI pass on the same jumper (#3576 Phase 7) #3586 investigation; permanently useful for lane-sweep monitoring.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