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

nrf5218 can't have multiple notifications

Hi, I am using the s110 and SDK 6 and trying to have multiple notifications from different services/caracteristics. For now I have two services, one for the battery and one custom. I don't do anything special to send the notifications but each service send its notification on its own timer. Every time I connect the code crashes from the function

app_evt_notify

of the device manager, and the event's id in this function is 21, so it should be, if I am not mistaken : BLE_GAP_EVT_PASSKEY_DISPLAY... that doesn't make any sense to me.

So did I miss any crucial step to have multiple notifications ? (simple notifications causes no trouble). I read in some posts that to have multiple notifications there should be a waiting loop on BLE_EVT_TX_COMPLETE but it seemed like it wasn't when notifying from distinct services, or was it ? If so where is supposed to be that loop ? I couldn't find any code sample. Thanks

Parents
  • Hi, the latest nRF51 SDK that support the S110 v8 is nRF51 SDK v10. I highly recommend to use it.

    Likely you have initialized device manager with BLE_GAP_IO_CAPS_DISPLAY_ONLY and SEC_PARAM_MITM. In addition you have setup your characteristics with BLE_GAP_CONN_SEC_MODE_SET_ENC_WITH_MITM. In such case you might take a look at the \examples\ble_peripheral\ble_app_gls example on how you can handle the BLE_GAP_EVT_PASSKEY_DISPLAY.

Reply
  • Hi, the latest nRF51 SDK that support the S110 v8 is nRF51 SDK v10. I highly recommend to use it.

    Likely you have initialized device manager with BLE_GAP_IO_CAPS_DISPLAY_ONLY and SEC_PARAM_MITM. In addition you have setup your characteristics with BLE_GAP_CONN_SEC_MODE_SET_ENC_WITH_MITM. In such case you might take a look at the \examples\ble_peripheral\ble_app_gls example on how you can handle the BLE_GAP_EVT_PASSKEY_DISPLAY.

Children
No Data
Related