-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Bluetooth HCI USB sample is not working #26807
Comments
This should not be a problem, and in fact I have used a very similar setup in the past with no issues.
At least with VMWare, you don't need Windows to recognize your device in order for the VM to be able to use it, since it redirects the whole USB device. That said, the fact that the Mynewt example you linked works with the same setup makes me think that something in our USB configuration can be improved. Could you please dump the contents of EDIT: I just tested this with Windows 10 and VMWare Workstation with a Ubuntu guest and it worked fine:
I didn't even try to connect the device to Windows, since upon plugging it in VMWare asks whether you want to connect the device to the VM or Windows. |
I agree, sounds strange! Below are dumps from Also, I just saw the EDIT too. I'll go back and check if there's anything strange about my Zephyr VM. I'll try switching the USB to USB 3 and see if that changes anything. I'll reply back to let you know. UPDATE: Setting my VM to USB 3.1 didn't change anything that I can tell, unfortunately. Output from Zephyr
And the result for Here's the output from
Output from Mynewt
|
@brooksprumo can you edit your message and use the |
Hmm I think that Mynewt sets the following fields in the Device Descriptor:
whereas Zephyr leaves them at 0s:
And they seem to have 2 interfaces instead of one like Zephyr, wonder why. |
Done! Let me know if there's more info that would be helpful. |
Does the mynewt controller actually work with Windows? if you try say searching for devices |
I do not know how to check 🤕 But, it does look like Windows has the same issue with the Mynewt firmware as it does with Zephyr. So, I opened a different VM, still with my board running the Zephyr firmware, and the Bluetooth device was present!
I was also able to successfully scan via |
Ok, glad to hear it! I will close this then, feel free to reopen if applicable. |
"If this field is reset to zero, each interface
"If the bDeviceClass field is reset to zero,
"If this field is reset to zero, the device
Zephyr: |
I'm having the same issue when passing through the ZEPHYR dongle (nrf52840 USB dongle) into my qemu/KVM VM. |
Describe the bug
I'm trying to get the Bluetooth HCI USB sample working. I have Zephyr/NCS version v2.3.0-rc1-ncs1. I am running Ubuntu Linux in a VM on Windows 10. I am using an NRF 52840 DK board.
After building the sample and flashing the board, my Windows machine sees there's a new Bluetooth device, but something is wrong and Windows does not load the driver for it.
Since Windows does not load the driver, my Linux VM does not see the Bluetooth device either. I wonder if there's something I didn't configure properly thought?
I am able to use the Bluetooth HCI UART sample and have the nrf52840 successfully show up as a Bluetooth device in my Linux VM. This won't work long-term for me because I'm only using the nrf52840 DK for prototyping, and my final product does not have a UART connection back to the Host, just a USB connection.
To Reproduce
zephyr/samples/bluetooth/hci_usb
west build -b nrf52840dk_nrf52840
west flash
Expected behavior
I expect that my Windows machine enumerates a new Bluetooth device, and then my Linux VM also enumerates a new Bluetooth device. After that, I would expect to use
hciconfig
to see the Bluetooth device and usebluetoothctl
to interact with it.Impact
This may be a showstopper for us, as that's why we're using an nrf52840 and Zephyr, just for Bluetooth HCI over USB.
Logs and console output
I'm not sure what else is useful to add. Should additional information be needed, please let me know and I'll happily add it!
Environment (please complete the following information):
bbd71e23a2d56f05cefc9dca7bef609c22c1966c
Additional context
I was able to use Apache Mynewt to do Bluetooth HCI USB with the same machine and board using this example:
https://github.com/hathach/mynewt-tinyusb-example
The text was updated successfully, but these errors were encountered: