forked from adafruit/Adafruit_Python_BluefruitLE
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed incompatibility with BlueZ version >= 5.38
Fixes: adafruit#23
- Loading branch information
Showing
1 changed file
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
af46b05
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great fix. Solved the issue on Ubuntu 18.04.
af46b05
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
It works great on raspberry pi 4 Linux raspberrypi 4.19.75-v7l+
af46b05
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still having an issue after the modification :
sudo python uart_service.py
Using adapter: jjr-acer
Disconnecting any connected UART devices...
Searching for UART device...
Connecting to device...
Discovering services...
Traceback (most recent call last):
File "uart_service.py", line 85, in
ble.run_mainloop_with(main)
File "build/bdist.linux-x86_64/egg/Adafruit_BluefruitLE/bluez_dbus/provider.py", line 105, in run_mainloop_with
File "build/bdist.linux-x86_64/egg/Adafruit_BluefruitLE/bluez_dbus/provider.py", line 120, in _user_thread_main
File "uart_service.py", line 59, in main
uart = UART(device)
File "build/bdist.linux-x86_64/egg/Adafruit_BluefruitLE/services/uart.py", line 50, in init
File "build/bdist.linux-x86_64/egg/Adafruit_BluefruitLE/interfaces/gatt.py", line 48, in find_characteristic
File "build/bdist.linux-x86_64/egg/Adafruit_BluefruitLE/bluez_dbus/gatt.py", line 56, in list_characteristics
File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 147, in call
**keywords)
File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 653, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.InvalidArgs: No such property 'Characteristics'
af46b05
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was the fix for me on a "Bus 003 Device 021: ID 0a5c:21e8 Broadcom Corp. BCM20702A0 Bluetooth 4.0" (https://www.amazon.com/gp/product/B07J5WFPXX/ref=ppx_yo_dt_b_asin_title_o00_s00) adapter to reach the UART service on the example BLE neopixel service for the nrf52 neopixel example on Ubuntu 20.04
af46b05
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JeanJacquesRousseau, it didn't work for me until I re-installed the library again per the docs with
sudo python3 setup.py install
in the root ofAdafruit_Python_BluefruitLE
after applying the commit at the top^ the commit in this thread af46b05
^ ... was applied against this commit 34fc6f5
My quick test working now -
af46b05
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. You are my hero.
Works!!
Great job.