This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Add PB-GATT to BLE_UART coexist

Hi, 

I'm using nRF52840 with nRF5 SDK 16.0.0 and Mesh SDK 4.0.0.

I'm trying to add PB-GATT service to the ble_app_uart_coexist example. I set MESH_FEATURE_GATT_PROXY_ENABLED 1 and 
 MESH_FEATURE_PB_GATT_ENABLED 1, added the missing files and got this: 

00> <info> app: Debug logging for UART over RTT started.
00>
00> <error> app: ERROR 4 [NRF_ERROR_NO_MEM] at mesh_adv.c:147
00>
00> PC at: 0x0005A9D5
00>
00> <error> app: End of error report

I checked previous relevant questions it's might because of conflit of two advertising sets but didn't get any answers... Has anyone solved this?

Parents
  • Hi. 

    The light switch examples supports PB-GATT, did you take a look at how this is added there?

    Are you using multiple advertising sets? If the cause of the NRF_ERROR_NO_MEM is due to sd_ble_gap_adv_set_configure, NRF_ERROR_NO_MEM is returned because there is mot enough memory to configure a new advertising handle. Currently only one advertising set can be configured in the SoftDevice. The solution is to reuse the existing advertising handle you have. 

    Regards, 
    Joakim

Reply
  • Hi. 

    The light switch examples supports PB-GATT, did you take a look at how this is added there?

    Are you using multiple advertising sets? If the cause of the NRF_ERROR_NO_MEM is due to sd_ble_gap_adv_set_configure, NRF_ERROR_NO_MEM is returned because there is mot enough memory to configure a new advertising handle. Currently only one advertising set can be configured in the SoftDevice. The solution is to reuse the existing advertising handle you have. 

    Regards, 
    Joakim

Children
Related