-
Notifications
You must be signed in to change notification settings - Fork 207
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
btle.BTLEException: Failed to execute mgmt cmd 'le on' #68
Comments
Hi, You're headphone might be working thanks to MacOS (it recognizes them as headphones, create an audio output, and then the output of the VM is directed to them). If you want to check that the VM has "raw" access to the BLE (and you would need to configure the VM to create some kind of pass through), try to execute as root If it works, then indeed the problem is on the python script side. Just to check: did you ran |
Hi, Firstly thank you for your reply, I've spent all weekend trying to get my openBCI board up and running with this repo but had no luck. I ran hcitool lescan from root and got I found this link saying that Vmware doesn't support BLE in Linux guests on a mac host: I'm confused to what to try next. I can't use MacOS because the BLE library is linux specific. But VMware (apparently) doesn't support BLE in Ubuntu. Any advice would be much appreciated. I'm going to keep hacking at this. Cheers, L |
Are you using the BLE from a laptop, or a dongle? I never tried to do that myself, but I'd think it is possible to let a VM access a USB device, no matter what it is. Or maybe you can try something else than VMware, e.g. Virtualbox? |
Hi Jfrey, Thanks for your advice. I can confirm that with this set up I managed to get it to work: Host: Mac High Sierra V10.13.4 From this I found my board's MAC address and had to type it in the CLI as a command when running user.py - as the scan kept failing returning
|
Thank you both, I was going down a bit of a rabbit hole that led to similar environment issues with the following config:
Other issues that had to be resolved in case this is helpful for future linux guest users who also use venv when running python projects:
Thanks again 3man and Jfrey! I was having a bit of a gnarly time getting my ganglion to talk to any of the OpenBCI stacks prior to reading this thread. |
Hey Guys,
I have macOS High Sierra as my host machine, and I'm running Ubuntu 16.04 in VMware. I've downloaded all requirements and got my vm to access my headphones, so bluetooth is working.
When I run: $sudo python user.py --board ganglion --add print
I get:
"Failed to execute mgmt cmd '%s'" % (cmd))
btle.BTLEException: Failed to execute mgmt cmd 'le on'
Any help on this would be great. I've used the GUI on the mac and streamed data, but I'm keen to get access via this python library.
Thank you in advance.
L
Edit: I should say I'm running this from root
Edit: When I run the GUI on my macOS host - it finds the ganglion board. But when I run it on my linux vm, it does not.
The text was updated successfully, but these errors were encountered: