You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(autoresearch): replace RpcClient boot_wait sleep with signature polling #2271
# Instead of sleeping, read serial output and watch for known boot stringsdeadline=time.time() +boot_waitwhiletime.time() <deadline:
lines=awaitread_lines(timeout=0.1)
ifany(siginlineforlineinlinesforsiginBOOT_SIGNATURES):
break
gpio.py — use reset_device(wait_for_output=True)
# fbuild handles the low-level "wait for any output" (fbuild#68)awaitserial_interface.reset_device(board=None, wait_for_output=True)
# Then poll for RPC-ready signature
Boot signatures (FastLED-specific)
Signal
Meaning
Phase
"entry 0x"
ROM bootloader started
Post-reset
"Before Setup Start"
Arduino setup() starting
Post-boot
"RESULT:"
JSON-RPC server ready
Pre-RPC
"AutoResearch"
AutoResearch sketch running
Firmware alive
Expected improvement
ESP32-S3 with USB-CDC boots in <500ms. Current flow wastes 3s on fixed sleep. With polling:
Activity
perf(autoresearch): replace sleep(3.0) with reset_device(wait_for_out…