bleah icon indicating copy to clipboard operation
bleah copied to clipboard

Failed to connect to peripheral xx:xx:xx:xx:xx:xx, addr type: random/public

Open WitcherDev opened this issue 6 years ago • 2 comments

Hi, I wanted to understand why this exception appears? However when i try to force to connect to peripheral and enumerate it several time it sometimes works and show desired output, but most of the time i got the error - Failed to connect to peripheral xx:xx:xx:xx:xx:xx, addr type: random or Failed to connect to peripheral xx:xx:xx:xx:xx:xx, addr type: public

Edit: I use Bluetooth adapter.

WitcherDev avatar Mar 19 '18 09:03 WitcherDev

Same issue here. I use my internal WLAN/Bluetooth adapter.

0x5ECF4ULT avatar Dec 16 '18 10:12 0x5ECF4ULT

Update: I bought a Bluetooth adapter. Program works without problems. The issue you have is most likely because some process is using your adapter. Is it the only hci on your computer?

You could try:

sudo service bluetoothd stop
sudo hciconfig hci0 down
sudo hciconfig hci1 down (if you have a second adapter)
sudo hciconfig hci0 up
sudo hciconfig hci1 up
sudo service bluetoothd start

Please give me feedback to this solution! Note: There is no right solution in the Bluetooth world. What a shitty protocol...

0x5ECF4ULT avatar Dec 31 '18 12:12 0x5ECF4ULT