Updating Circuitpython on the Raspberry Pi did the trick. The example ble_eval_client.py program on the Pi now recognizes the UARTService in the advertisement and connects with the nrf52840 Feather Express.
However, a different upgrade command is needed. This is the one that worked:
sudo pip3 install --upgrade adafruit-circuitpython-ble
Thanks!
Mark
Problems getting central UART to recognize peripheral UART
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- hufemj
- Posts: 16
- Joined: Fri Oct 12, 2018 1:43 pm
- mikeysklar
- Posts: 13827
- Joined: Mon Aug 01, 2016 8:10 pm
Re: Problems getting central UART to recognize peripheral UA
Thank you for the corrected library upgrade syntax and confirmation that it worked.
- hufemj
- Posts: 16
- Joined: Fri Oct 12, 2018 1:43 pm
Re: Problems getting central UART to recognize peripheral UA
I had to go back an redo the setup with a different Raspberry Pi and found a much simpler solution to the problem. As a reminder, the problem was that the ble_eval_client.py running on the Raspberry Pi would not connect to the Adafruit Feather Sense because the UARTService was not found in the advertised services. This was completely a Raspberry Pi issue because the connection worked fine via the Adafruit Bluetooth Connect app as well as LightBlue.
The solution is to upgrade bluez from source to 5.60. Simply doing 'sudo apt-get upgrade bluez' is not good enough because as of this date, that only gives you version 5.50.
I used this page for the process: https://scribles.net/updating-bluez-on- ... 3-to-5-50/, but changed the wget command to get the latest release from here: http://www.bluez.org/download/
After doing that, the example code from https://learn.adafruit.com/circuitpytho ... rt-example worked just fine.
The solution is to upgrade bluez from source to 5.60. Simply doing 'sudo apt-get upgrade bluez' is not good enough because as of this date, that only gives you version 5.50.
I used this page for the process: https://scribles.net/updating-bluez-on- ... 3-to-5-50/, but changed the wget command to get the latest release from here: http://www.bluez.org/download/
After doing that, the example code from https://learn.adafruit.com/circuitpytho ... rt-example worked just fine.
- mikeysklar
- Posts: 13827
- Joined: Mon Aug 01, 2016 8:10 pm
Re: Problems getting central UART to recognize peripheral UA
Great tip. I just confirmed on an up to date Pi OS installation that bluez is still at 5.50 and apparently bluez-5.6 was the difference in making this demo work for you.
Please be positive and constructive with your questions and comments.