From deb1ac1b36264025ca4f179a92b240ea15043bd8 Mon Sep 17 00:00:00 2001 From: galister <3123227-galister@users.noreply.gitlab.com> Date: Fri, 13 Sep 2024 16:16:26 +0000 Subject: [PATCH] wivrn: add wired mode guide --- content/docs/fossvr/wivrn/_index.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/content/docs/fossvr/wivrn/_index.md b/content/docs/fossvr/wivrn/_index.md index 34e4333..41e1827 100644 --- a/content/docs/fossvr/wivrn/_index.md +++ b/content/docs/fossvr/wivrn/_index.md @@ -17,6 +17,20 @@ Current limitations are a fixed bitrate and network protocol streaming only, ple Should you utilize [Envision](/docs/fossvr/envision/) for WiVRn setup, please ensure your APK and WiVRn server match as closely as possible. Check the WiVRn github [actions](https://github.com/WiVRn/WiVRn/actions) for an APK matching your server build to install to your headset. +## Wired WiVRn + +Use WiVRn with a cable instead of Wifi. Use a 5Gbps cable & port at the very least. + +Steps: +- Enable TCP Only mode, either via Envision or the [JSON configuration](https://github.com/WiVRn/WiVRn?tab=readme-ov-file#configuration)! +- If WiVRn is running on the headset, close it now. +- Connect the headset via USB +- Run the following `adb` commands: + ```bash + adb reverse tcp:9757 tcp:9757 + adb shell am start -a android.intent.action.VIEW -d "wivrn://127.0.0.1" org.meumeu.wivrn + ``` + ## WiVRn + Lighthouse driver This section covers using WiVRn with any lighthouse-tracked device: Index/Vive controllers, Vive/Tundra trackers, etc. Important steps are marked with 🔴. @@ -30,11 +44,11 @@ This section covers using WiVRn with any lighthouse-tracked device: Index/Vive c - `WIVRN_USE_STEAMVR_LH=1` - `LH_DISCOVER_WAIT_MS=6000` -🔴 Perform a **Clean Build** after changing these! +🔴 Perform a **Clean Build** after changing the CMake flags! If not using Envision, simply pass `-DWIVRN_FEATURE_STEAMVR_LIGHTHOUSE=ON` to cmake and export the env variables before starting `wivrn-server`. -🔴 Grab [Motoc](/docs/fossvr/motoc/), this can calibrate the two tracking technologies to work together. +[Motoc](/docs/fossvr/motoc/) will be used to calibrate the two tracking technologies to work together. Discovery happens only on first connection, so be sure to **have all lighthouse devices powered on and in line of sight of base stations before connecting the headset!**