IanHarvey / bluepy

Python interface to Bluetooth LE on Linux
Other
1.6k stars 490 forks source link

Scanning and connecting with hci1 results in proterror #333

Open fhorinek opened 5 years ago

fhorinek commented 5 years ago

Hi, I have two identical usb bluetooth adapters, but when I try to use hci1 (regardless of which adapter is hci1) the bluepy-helper respond with $protoerr

sudo /usr/local/lib/python2.7/dist-packages/bluepy/bluepy-helper 0
le on
rsp=$mgmt code=$success
scan
rsp=$mgmt code=$success
rsp=$stat state=$scan dst='(null) mtu=h0 sec='low
...
**<< working**
...
scanend
rsp=$mgmt code=$success
rsp=$stat state=$disc mtu=h0 sec='low

sudo /usr/local/lib/python2.7/dist-packages/bluepy/bluepy-helper 1
le on
rsp=$mgmt code=$success
scan
rsp=$mgmt code=$protoerr **<< error**

I have also similar results when I try to connect tho the device using hci1. Since I was unable to find a bug in bluepy python code, I was testing bluepy-helper binary directly with the same results.

Thank you