cancel
Showing results for 
Search instead for 
Did you mean: 

STM32WB55 BLE - Secondary services discovery

DS.4
Senior II

I am trying to set some services as secondary.

When the client sends the "Find Included services" I don't see any events on the STM32WB55 side.

The logs from client indicate:

0693W00000FDC6HQAX.png[18:57:40:898] : 'Find Included Services' request sent

[18:57:40:898] : Start Handle: 0x0001

[18:57:40:898] : End Handle: 0xFFFF

[18:57:40:899] : 'Command Status' event received

[18:57:40:899] : Status: BLE_STATUS_OK

[18:57:40:911] : 'GATT Error Notification' event received

[18:57:40:911] : Error Code: BLE_GATT_ERR_ATTRIBUTE_NOT_FOUND

Error: gpm.M1010: Find included services failed. Attribute not found

I checked and the STM32WB has a secondary service at handle : 0x0012

and its 2 characteristics at handles: 0x0013, 0x0015

3 REPLIES 3
Martin HUBIK
Associate III

Hello,

I was wondering whether you call ACI_GATT_INCLUDE_SERVICE in the application?

I made a small test with

STM32Cube_FW_WB_V1.12.0\Projects\P-NUCLEO-WB55.Nucleo\Applications\BLE\BLE_Peripheral_Lite\

and modified the BLE SVC initialization in the following way.

1) ACI_GATT_ADD_SERVICE, Secondary service

2) Add characteristics to Secondary service

3) ACI_GATT_ADD_SERVICE, Primary service

4) ACI_GATT_INCLUDE_SERVICE

5) Add characteristics to Primary service

When I connect to the target with ST BLE Toolbox from my phone I see both services, primary and secondary/

Best regards,

Martin

DS.4
Senior II

I don't, can you please elaborate on step 4).

What are the parameters of the command?

Martin HUBIK
Associate III

Hello,

please see the attached modified gatt_service.c and the sequence of ACI comands in MyVeryOwnService_Init()

Best regards,

Martin