-
Notifications
You must be signed in to change notification settings - Fork 74
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
Android Studio Emulator Bluetooth not working #331
Comments
Oh also, I'm using windows 10 if that matters |
I managed to get the mac address to work by following these instructions instead https://google.github.io/bumble/platforms/android.html#connecting-to-netsim but it still cant find any available devices |
Hi. Which version of the emulator are you using? (you can see it from the 'SDK Tools' tab in the 'SDK Manager' window from Android Studio). One thing you may want to try also is to start the Bumble HCI bridge first, then boot/reboot the emulator. This will ensure that you start with a fresh Android Bluetooth stack, in case toggling BT on/off doesn't completely clean the state. |
Ohhh, that makes sense. I use emulator version 34.1.10 and I have tried starting the HCI bridge before starting the emulator but that resulted in the same weird null mac. |
I have tried to replicate this issue, but wasn't able to so far. I'm running version 34.1.11 of the emulator, but that shouldn't make a big difference. Running on a mac, the emulator does connect to my USB dongle via a Bumble HCI bridge, and I can scan/connect to local devices. Just to be sure we're looking at the same thing, could you try updating to version 34.1.11 of the emulator and trying again? |
Hey, joining to the question here. I can see the details of the dongle when running lsusb But I'm still getting the same issue that the guy who posted this question got. Then run the emulator on another shell like that: It seems like when the phone boot, the hci-bridge console starts printing lots of messages (like in the video of the question) my emulator version is 33.1.23.0 and I can't see a way to update it (when I click "check for updates" Android Studio tells me there is no update pending) Would you be able to regrade this? EDIT: I've tried to manually download android emulator (with your version, 34.4.11, same issue) |
The issue here may be that the USB dongle you’re using may need a special driver to load a binary firmware image/patch to it. Bumble does include such a driver for Realtek devices, but that works when you use the Bumble stack with the USB dongle. In your case, the Bumble host stack isn’t used, but the Android host stack is used instead, only using the HCI transport part of the Bumble library. The Android host stack doesn’t know how to initialize the dongle by loading FW into it. |
Thank you so much, it worked :) |
I'm in the same situation. Bridge console shows found Bleutooth devices, but Android emulator doesn't see anything:
Then I do
Then I see discovered by Bluetooth devices in my computer terminal:
but it seems emulator doesn't see anything. however I can discover it from my iPhone. |
Hi, I tried to get bluetooth to work through bumble in my android emulator so I followed the instructions at https://google.github.io/bumble/platforms/android.html#connecting-a-custom-virtual-controller but I am having a problem where the bluetooth mac address just switches back and forth from 00:00:00:00:00:00 to unavailable and the bluetooth is just constantly turning on and off. I'm not sure whether I messed up or if it's an issue with my bluetooth dongle or if it's a bug. Any help would be appreciated
Code_Ugy533qzKT.mp4
The text was updated successfully, but these errors were encountered: