gatt icon indicating copy to clipboard operation
gatt copied to clipboard

Failed to open device, err: no supported devices available

Open minhajakhterkhan199 opened this issue 7 years ago • 5 comments

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

minhajakhterkhan199 avatar Jun 03 '17 14:06 minhajakhterkhan199

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

darthrookie avatar Apr 26 '18 00:04 darthrookie

For your kind info, already fixed that issue.

josephcenk avatar Apr 26 '18 05:04 josephcenk

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

roylee17 avatar Apr 26 '18 05:04 roylee17

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

andrei-pavel avatar Apr 26 '18 06:04 andrei-pavel

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

darthrookie avatar Apr 26 '18 07:04 darthrookie