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

nRF Connect PC Not Receiving BLE Notification

I have an application running on an nRF52 with the S332 softdevice which is a server which exposes a a few services each with a few characteristics. I am using the Nordic SDK for the GATTS implementation. One of my services contains a characteristic which can 'notify' and another characteristic that can 'indicate'.

I have nRF Connect set up with a BLE dongle to act as the client.

On their own, my notify and indicate characteristics work fine. i.e. if I 'listen' only for indications from that one characteristic I receive all indications. Or if I 'listen' only for notifications from the other characteristic, I receive all notifications.

However, in the case where the app sends them in close succession I always miss the notify (never receive it).

Using nRF Connect on Android and iPhone it works fine - I get both the notification and indication even when they are sent close together.

As far as I can tell, I do not get any errors on my embedded server - it seems to think that the notification was sent successfully.

Any thoughts on what might be the cause or how to remedy this?

Parents
  • This is the output when I logged the error codes from the sd_ble_gatts_hvx call. I also log when I get the BLE_GATTS_EVT_HVN_TX_COMPLETE and BLE_GATTS_EVT_HVC calls.

     0> :ERROR:sd_ble_gatts_hvx err_code (notification): 0x00  
     0> :ERROR:sd_ble_gatts_hvx err_code (indication): 0x00  
     0> nrf_ble_gatt:ERROR:Event: BLE_GATTS_EVT_HVN_TX_COMPLETE Count:1  
     0> nrf_ble_gatt:ERROR:Event: BLE_GATTS_EVT_HVC
    

    Is that what you would expect to see for doing a notification closely followed by an indication or does anything look like it is missing?

    I am using Version 4.0.5 of the S332 Softdevice. Version of SDK is 13.0.0. nRF Connect v2.2.1.

Reply
  • This is the output when I logged the error codes from the sd_ble_gatts_hvx call. I also log when I get the BLE_GATTS_EVT_HVN_TX_COMPLETE and BLE_GATTS_EVT_HVC calls.

     0> :ERROR:sd_ble_gatts_hvx err_code (notification): 0x00  
     0> :ERROR:sd_ble_gatts_hvx err_code (indication): 0x00  
     0> nrf_ble_gatt:ERROR:Event: BLE_GATTS_EVT_HVN_TX_COMPLETE Count:1  
     0> nrf_ble_gatt:ERROR:Event: BLE_GATTS_EVT_HVC
    

    Is that what you would expect to see for doing a notification closely followed by an indication or does anything look like it is missing?

    I am using Version 4.0.5 of the S332 Softdevice. Version of SDK is 13.0.0. nRF Connect v2.2.1.

Children
No Data
Related