switch-pico/tools/switch2_usb_probe
Joey Yakimowich-Payne 19358a0fff feat(wake): add USB-triggered Switch 2 wake with Windows interface support
Queue correlated, volatile wake requests for the BTstack owner and expose
read-only completion state. Keep the controller chord, captured identity,
pairings, profiles, HD settings and existing wake burst unchanged.

Add Python API and wake CLI with bounded waits, explicit failure outcomes
and no automatic broadcast retries. Avoid importing SDL just to obtain
fixed sensor IDs so USB automation has clean output and no SDL dependency.

Windows libusb cannot control hub roots. Expose only INFO/WAKE on each
native child's existing vendor Interface 1 with isolated control state;
retain hub/HID drivers, descriptors and identities. Add safe sibling-aware
Windows discovery and a packaged Windows libusb runtime. Document manual
WinUSB binding to Interface 1 only and migrate examples to find_wake_pico.

Validate with 713 tests, 10 firmware/probe builds, Windows x64 wheel
resolution on Python 3.9/3.11, and a real child-interface wake burst on
Linux (2.03 s, no controller, no failures). Device/configuration descriptors,
serials and persistent state matched before/after. Physical Windows
hardware/driver operation remains unverified on this Linux workstation.
2026-09-19 20:19:46 -06:00
..
bootsel.cpp feat(wake): add USB-triggered Switch 2 wake with Windows interface support 2026-09-19 20:19:46 -06:00
bootsel.h feat(wake): add USB-triggered Switch 2 wake with Windows interface support 2026-09-19 20:19:46 -06:00
button_test.c Add verified Joy-Con 2 USB bridge with native mouse support 2026-09-10 17:46:03 -06:00
button_test.h Add verified Joy-Con 2 USB bridge with native mouse support 2026-09-10 17:46:03 -06:00
CMakeLists.txt fix(native-usb): isolate two-pair transport and hand off read status in IRQ 2026-09-17 20:24:32 -06:00
controller_input.cpp feat(native-usb): add 32-frame HD gameplay rumble and USB flight diagnostics 2026-09-19 17:03:46 -06:00
controller_input.h feat(native-usb): add 32-frame HD gameplay rumble and USB flight diagnostics 2026-09-19 17:03:46 -06:00
descriptors.h fix(native-usb): isolate two-pair transport and hand off read status in IRQ 2026-09-17 20:24:32 -06:00
main.c feat(native-usb): add 32-frame HD gameplay rumble and USB flight diagnostics 2026-09-19 17:03:46 -06:00
mbedtls_config.h Add verified Joy-Con 2 USB bridge with native mouse support 2026-09-10 17:46:03 -06:00
memory.c Add stock-USB native Joy-Con R/L hub bridge 2026-09-12 15:28:58 -06:00
memory.h Add stock-USB native Joy-Con R/L hub bridge 2026-09-12 15:28:58 -06:00
model.h fix(native-usb): isolate two-pair transport and hand off read status in IRQ 2026-09-17 20:24:32 -06:00
native_gamepad_input.cpp fix(native-usb): isolate two-pair transport and hand off read status in IRQ 2026-09-17 20:24:32 -06:00
native_gamepad_input.h fix(native-usb): isolate two-pair transport and hand off read status in IRQ 2026-09-17 20:24:32 -06:00
native_imu.cpp Start Wii motion immediately and track residual bias in background 2026-09-13 00:00:53 -06:00
native_imu.h Start Wii motion immediately and track residual bias in background 2026-09-13 00:00:53 -06:00
probe_build.cmake feat(wake): add USB-triggered Switch 2 wake with Windows interface support 2026-09-19 20:19:46 -06:00
protocol.c feat(native-usb): add 32-frame HD gameplay rumble and USB flight diagnostics 2026-09-19 17:03:46 -06:00
protocol.h feat(native-usb): add 32-frame HD gameplay rumble and USB flight diagnostics 2026-09-19 17:03:46 -06:00
storage.cpp fix(native-usb): isolate two-pair transport and hand off read status in IRQ 2026-09-17 20:24:32 -06:00
storage.h fix(native-usb): isolate two-pair transport and hand off read status in IRQ 2026-09-17 20:24:32 -06:00
transport.h fix(native-usb): isolate two-pair transport and hand off read status in IRQ 2026-09-17 20:24:32 -06:00
tusb_config.h fix(native-usb): isolate two-pair transport and hand off read status in IRQ 2026-09-17 20:24:32 -06:00