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

ancs related issues

1. When I use NRF52832 as the ANCS client to get the notification attributes, if the data exceeds the size of a packet and requires multiple packet transfers, is it the BLE_GATTC_EVT_HVX event (in ble_ancs_c_on_ble_evt function ) is triggered after all the attributes value is received?

2. When I set "NRF_SDH_DISPATCH_MODEL=NRF_SDH_DISPATCH_MODEL_APPSH ", how long will I not process the data received by ANCS that will be overwritten?

Parents
  • Hello,

    1: Looking at the ble_app_ancs_c example from the SDK, I see that all notifications are one BLE_APP_ANCS_C_EVT_NOTIF (which originates from BLE_GATTC_EVT_HVX events) reflects one ANCS notification. So yes, the notification is triggered after all the attributes values are received.

    2: That depends on the frequency of which you receive softdevice events. When the app_scheduler is full when the next event occurs, you will loose an event. I am quite sure the application will throw an error if this occurs, but you can increase the app_scheduler queue size if you struggle with this. Another alternative is to copy the relevant data from the events to your application, and release the events to free up space in the app_scheduler.

    Best regards,

    Edvin

Reply
  • Hello,

    1: Looking at the ble_app_ancs_c example from the SDK, I see that all notifications are one BLE_APP_ANCS_C_EVT_NOTIF (which originates from BLE_GATTC_EVT_HVX events) reflects one ANCS notification. So yes, the notification is triggered after all the attributes values are received.

    2: That depends on the frequency of which you receive softdevice events. When the app_scheduler is full when the next event occurs, you will loose an event. I am quite sure the application will throw an error if this occurs, but you can increase the app_scheduler queue size if you struggle with this. Another alternative is to copy the relevant data from the events to your application, and release the events to free up space in the app_scheduler.

    Best regards,

    Edvin

Children
No Data
Related