IanHarvey / bluepy

Python interface to Bluetooth LE on Linux
Other
1.59k stars 491 forks source link

Compatible devices? #382

Open brianjmurrell opened 4 years ago

brianjmurrell commented 4 years ago

How do I know if a controller is compatible with BT LE?

I suspect this means it's not:

$ sudo blescan 
[sudo] password for brian: 
Scanning for devices...
Traceback (most recent call last):
  File "/usr/bin/blescan", line 11, in <module>
    load_entry_point('bluepy==1.3.0', 'console_scripts', 'blescan')()
  File "/usr/lib/python3.7/site-packages/bluepy/blescan.py", line 121, in main
    devices = scanner.scan(arg.timeout)
  File "/usr/lib/python3.7/site-packages/bluepy/btle.py", line 851, in scan
    self.start(passive=passive)
  File "/usr/lib/python3.7/site-packages/bluepy/btle.py", line 789, in start
    self._mgmtCmd("le on")
  File "/usr/lib/python3.7/site-packages/bluepy/btle.py", line 311, in _mgmtCmd
    raise BTLEManagementError("Failed to execute management command '%s'" % (cmd), rsp)
bluepy.btle.BTLEManagementError: Failed to execute management command 'le on' (code: 12, error: Not Supported)

But other than running around installing bluepy on everything and running the above, how can I determine compatibility? FWIW, the above is from a:

Bus 001 Device 004: ID 0a5c:217f Broadcom Corp. BCM2045B (BDC-2.1)