MilkJug1 / OculusLinkLinux

OLL(WIP) is a open-source project that aims to allow the Oculus Quest(both 1 & 2) work on Linux wired.
GNU General Public License v2.0
125 stars 2 forks source link

FInd the quest via USB, and execute function when quest is found. #17

Open MilkJug1 opened 2 years ago

MilkJug1 commented 2 years ago

Find the Quest via USB, without using a VID or PID for finding it Exactly what it says, try to find a way to prompt the user to select a usb device from a list, a list that should show the quest. I could make a system to look for the quest, but that may be after creating this system. The Quest uses the MTP protocal in order for the user to access its filesystem when plugged in, this may not be good for the scope of this project thought.

Describe alternatives you've considered Use a library like LibUSB, following a tutorial on how to recognize a usb device from a VID and PID here. This way may not be good due to the fact that all Quests' VID and PID could be different, in that case develop a system where a user has to type in the VID and PID, another issue with this is that it can be quite hard for people who are not knowledgeable about how to find that. I could make a CLI menu where they just have to type in a number to select from the menu, but that kinda will be different from a VID and PID.

Unfortunately, I'm not really good with reading the documentation of LibUSB, I wonder if there is any other usb library that has documentation that isn't written so weirdly. I got the quest recognized via this system, but its way to convoluted and complex, so I am needing to rework it for right now.