-
Notifications
You must be signed in to change notification settings - Fork 6
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
Raspberry Pi 4 "Service Discovery Error" #3
Comments
I'm affected by this bug as well. Reproduced in the same way. |
I am working on this as part of upgrades to the adafruit-blinka-bleio library to support MacOS and to keep up with changes to |
Let me know if you need any more information. |
I reproduced this problem on RPi 3B+ and RPi 4B. The problem does not occur on RPi Zero W and RPi 3B (no +). This appears to be a I will try to figure out how to submit a bug report to RPi about this, but if you are familiar, have at it! |
Someone else with an equivalent problem opened this issue on the appropriate RPi GitHub: RPi-Distro/bluez-firmware#6. I'll track that. |
Please use https://github.com/dhalbert/Adafruit_Blinka_bleio/tree/macos-fixes with bleak 0.8.0 and see if that works for you. I'll be submitting that to the library soon. |
When I run this sample code on my Raspberry Pi 4, I get the error message(s) below. AFAIK, I have followed all the pre-req steps. Any help/pointers to what I am doing wrong is much appreciated!
-RS
Scanning...
Traceback (most recent call last):
File "/home/pi/software/Adafruit_CircuitPython_BLE_BerryMed_Pulse_Oximeter/examples/ble_berrymed_pulse_oximeter_simpletest.py", line 32, in
pulse_ox_connection = ble.connect(adv)
File "/home/pi/.local/lib/python3.7/site-packages/adafruit_ble/init.py", line 279, in connect
connection = self._adapter.connect(advertisement.address, timeout=timeout)
File "/home/pi/.local/lib/python3.7/site-packages/bleio/adapter.py", line 335, in connect
return self.await_bleak(self._connect_async(address, timeout=timeout))
File "/home/pi/.local/lib/python3.7/site-packages/bleio/adapter.py", line 114, in await_bleak
return future.result(timeout)
File "/usr/lib/python3.7/concurrent/futures/_base.py", line 432, in result
return self.__get_result()
File "/usr/lib/python3.7/concurrent/futures/_base.py", line 384, in __get_result
raise self._exception
File "/home/pi/.local/lib/python3.7/site-packages/bleio/adapter.py", line 344, in _connect_async
await client.connect(timeout=timeout)
File "/home/pi/.local/lib/python3.7/site-packages/bleak/backends/bluezdbus/client.py", line 175, in connect
await self.get_services()
File "/home/pi/.local/lib/python3.7/site-packages/bleak/backends/bluezdbus/client.py", line 317, in get_services
raise BleakError("Services discovery error")
bleak.exc.BleakError: Services discovery error
The text was updated successfully, but these errors were encountered: