Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wired WiVRn #30

Open
CJendantix opened this issue Jan 16, 2024 · 6 comments
Open

Wired WiVRn #30

CJendantix opened this issue Jan 16, 2024 · 6 comments

Comments

@CJendantix
Copy link

I don't know much about this project (I've only barely gotten it to work) but could you either 1. add a wired config option, or 2. tell me how to route it with adb?

@xytovl
Copy link
Collaborator

xytovl commented Jan 17, 2024

There is no wired support at the moment.

If you want to use adb, the headset will need to connect to port 9757 on both TCP and UDP.
It should also be able to see mDNS messages, or be launched manually with the wivrn://host-address intent. This should be a command like adb shell am start -a android.intent.action.VIEW -d "wivrn://${ADDRESS}" org.meumeu.wivrn

@mkloczko
Copy link

Just curious, but would it be possible to use libusb to handle such connection? There seems to be an USB accessory mode for Android, then to connect that to the USB server on PC side...

@xytovl
Copy link
Collaborator

xytovl commented Apr 17, 2024

I have been told that Quest does not expose accessory mode. I don't know for other headsets.

@damaestro
Copy link
Contributor

There does not seem to be a way to pass UDP traffic via adb USB tunneling without extra software. The solutions I've seen would negate the value of using UDP; if it needs to be tunneled and then subject to the same scheduling challenges it's not worth it.

There might be another mechanism to transfer data via the USB tether.

@xytovl
Copy link
Collaborator

xytovl commented May 19, 2024

Since v.015 it is possible to use adb port forwarding and TCP-only mode:

In configuration file:

{
  "tcp_only": true
}

On server side setup port forwarding:

adb reverse tcp:9757 tcp:9757

On headset make sure the application is closed, then launch it through command line:

adb shell am start -a android.intent.action.VIEW -d "wivrn://localhost" org.meumeu.wivrn

@PassiveLemon
Copy link

PassiveLemon commented May 20, 2024

Just gave that a try and it works perfectly. One thing, with ALVR, you only need to set up the adb port forwarding for the wired setup to work. Could we try to get it to that level of simplicity in here too? Maybe a toggle which sets WiVRn to stream over localhost like how you can in ALVR? https://github.com/alvr-org/ALVR/wiki/ALVR-wired-setup-(ALVR-over-USB)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants