Skip to content
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

Failed to open device, err: no supported devices available #90

Open
minhajakhterkhan199 opened this issue Jun 3, 2017 · 5 comments
Open

Comments

@minhajakhterkhan199
Copy link

When I am running discoverer.go from example I am getting error no supported devices available.
In addition, my Ubuntu 16.04 is successfully able to discover and connect to devices.
Please advise hwo to solve the issue.
bluetooth

go run examples/discoverer.go
2017/06/03 18:54:06 dev: hci0 up
2017/06/03 18:54:06 Failed to open device, err: no supported devices available
exit status 1

@darthrookie
Copy link

Perhaps a little late. I was having the same issue then executed the example with administrator rights.

@josephcenk
Copy link

For your kind info, already fixed that issue.

@roylee17
Copy link
Contributor

It takes root privilege and exclusive access to the HCI device.

  1. Try execute the program with sudo. (but you mentioned that you already did.
  2. See if there are other program grabbing the device, such as blued or other daemon.

BTW, more recent efforts for BLE with GO can be found at:

https://github.com/currantlabs/ble
or
https://github.com/go-ble/ble

Cheers

@andrei-pavel
Copy link

andrei-pavel commented Apr 26, 2018

I have recently found https://github.com/bettercap/gatt to be more active. currantlabs hasn't updated in years.

@darthrookie
Copy link

I am using this fork https://github.com/cksmith/gatt haven't looked into bettercap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants