This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

nrf51-ble-ancs-nus : can't receive notification after reconnection

Hi there, thanks for your help in advance!

I have tried the nrf51-ble-ancs-nus sample from github and making it work on a 51822 EK board, i.e., it can receive notifications after paired with my iphone.

But after reconnection, i.e., if I turn off the bluetooth from my iphone and then turn it back on again, it is reconnected, but it can no longer receive notification.

I am wondering if there is anything I should do to fix it?

here is some log of method calls via uart printing, starting from turning off the bluetooth, as you can see that connection is back on, and everything seem fine, but it just can not receive new notifications.

ble_bondmngr BLE_GAP_EVT_DISCONNECTED

ble_conn_params BLE_GAP_EVT_DISCONNECTED

ble_ancs STATE_RUNNING

ble_ancs BLE_GAP_EVT_DISCONNECTED

main BLE_GAP_EVT_DISCONNECTED

ble_ans_c_service_store

ble_bondmngr BLE_GAP_EVT_CONNECTED

ble_conn_params BLE_GAP_EVT_CONNECTED

ble_ancs STATE_IDLE

main BLE_GAP_EVT_CONNECTED

ble_bondmngr BLE_GAP_EVT_SEC_INFO_REQUEST

ble_ancs STATE_DISC_SERV

main BLE_GAP_EVT_SEC_INFO_REQUEST

ble_bondmngr BLE_GAP_EVT_CONN_SEC_UPDATE

BLE_BONDMNGR_EVT_ENCRYPTED

ble_ancs STATE_DISC_SERV

main BLE_GAP_EVT_CONN_SEC_UPDATE

ble_ancs STATE_DISC_SERV

ble_ancs STATE_DISC_CHAR

ble_ancs STATE_DISC_CHAR

ble_ancs STATE_DISC_CHAR

ble_ancs STATE_DISC_CHAR

ble_ancs STATE_DISC_DESC

ble_ancs STATE_DISC_DESC

BLE_ANCS_C_EVT_DISCOVER_COMPLETE

ble_conn_params BLE_GATTS_EVT_WRITE

ble_ancs STATE_RUNNING

ble_conn_params BLE_GAP_EVT_CONN_PARAM_UPDATE

ble_ancs STATE_RUNNING

main BLE_GAP_EVT_CONN_PARAM_UPDATE

ble_ancs STATE_RUNNING

main BLE_GAP_EVT_TIMEOUT

Related