Brikwerk / nxbt

Control your Nintendo Switch through a website, terminal, or macro.
MIT License
817 stars 100 forks source link

vagrant_setup.py wont see my USB adapter #134

Open Slend-K opened 1 year ago

Slend-K commented 1 year ago

I'm running vagrant_setup.py but for some reason it doesn't identify my USB Bluetooth adapter. I've tried putting it in different USB ports. I've also tried disabling it and re-enabling it in device manager alongside running the setup while the USB Bluetooth adapter is disabled via device manager.

I'm not sure what to do now.

Asier97 commented 1 year ago

Same here. vagrant_setup.py wont detect my USB adapter

image

Event thought I followed Troubleshooting instructions and added the controller manually

image

It even shows with vagrant ssh and lsusb, I'm lost here

image

Asier97 commented 1 year ago

Fount out why vagrant_setup.py is not listing my adapter. I ran vboxmanage list usbhost as the get_usb_devices() does and my adapter doesn't show the product name nor the manufacturer. get_usb_devices() is programmed to filter devices without this data. I checked my adapter drivers and everything is right

vboxmanage list usbhost ran without my adapter:

image

vboxmanage list usbhost ran WITH my adapter connected:

image

Slend-K commented 1 year ago

Ah yeah, I checked vboxmanage list usbhost too and my USB adapter also shows with no product name. I checked the code I think the problem is that vagrant_setup.py wants a product name too. I experimented a bit but couldn't get it to let me have the option to choose my adapter despite it not having a product name. That might not be the only problem but it's the only one I found.

Does anyone know how to go about solving this?

Brikwerk commented 1 year ago

Sorry for the trouble regarding the automated vagrant setup. Unfortunately, it seems that some Bluetooth adapters report far less than I was originally expecting. I'll take this into account for future improvements in the automated setup.

@Slend-K , can you can add the USB device manually through Virtualbox, as detailed in the docs, and let me know if NXBT works: https://github.com/Brikwerk/nxbt/blob/master/docs/Windows-and-macOS-Installation.md#my-usb-bluetooth-adapter-wont-show-up-inside-the-vm

@Asier97 Does NXBT not work in the VM? If you've added the USB device to Virtualbox manually, there's no need for the vagrant_setup.py file to see it.

Slend-K commented 1 year ago

Ah thanks, I shall do that.