0

BLE Services - Perypethial device documentation
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

BLE Services - Perypethial device documentation

by frangerhawer on Thu Jun 30, 2022 7:17 am

Hello, I cannot find a documentation on how to import BLE Services like i.e. CPS (https://www.bluetooth.com/specifications/specs/) in Circuitpython.
I know which Service and Characteristics I need, but I don't know how to find them in adafruit_ble library.
I found a tutorial hot to do it in C on Arduino: https://teaandtechtime.com/arduino-ble-cycling-power-service/
I want to replicate it using Circuitpython.
Currently, I've only menaged to implement BLE UART service and comunicate my Adafruit Feather nRF52840 Sense with my PC.

frangerhawer
 
Posts: 4
Joined: Thu Jun 30, 2022 6:24 am

Re: BLE Services - Perypethial device documentation

by mikeysklar on Thu Jun 30, 2022 2:55 pm

I scanned the GitHub repo source code and issues and do not see anything documented on CPS (Cycle Power Service). Would you mind opening an issue requesting CPS implementation?

https://github.com/adafruit/Adafruit_Ci ... BLE/issues

mikeysklar
 
Posts: 8059
Joined: Mon Aug 01, 2016 8:10 pm

Re: BLE Services - Perypethial device documentation

by frangerhawer on Fri Jul 01, 2022 5:57 am

Are any other GATT Services from the link I provided (https://www.bluetooth.com/specifications/specs/) available in the adafruit_ble library, the same way the UART service is?:
Code: Select all | TOGGLE FULL SIZE
from adafruit_ble.services.nordic import UARTService  <-- change this to i.e. CyclePowerService

I don't know if I should open an issue concerning CPS implementation, or rather about including other GATT Services in the adafruit_ble library.

frangerhawer
 
Posts: 4
Joined: Thu Jun 30, 2022 6:24 am

Re: BLE Services - Perypethial device documentation

by mikeysklar on Fri Jul 01, 2022 6:38 pm

Here are the docs for the adafruit_ble CircuitPython lib. There are some overlapping services (HID, battery, MIDI, etc.) with the Bluetooth link you provided, but the Adafruit library is more general with 'Generic*' service queries.

https://docs.circuitpython.org/projects ... vices.html

While this does not cover CPS there is another Adafruit CircuitPython BLE library.

adafruit_ble_adafruit

Access to sensors and hardware on or connected to BLE-capable boards.



https://docs.circuitpython.org/projects ... it-service

mikeysklar
 
Posts: 8059
Joined: Mon Aug 01, 2016 8:10 pm

Please be positive and constructive with your questions and comments.