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

Unable to receive notifications and write certain characteristics to peripheral

I am currently developing a central device based on the NRF52832. I am able to discover and get handles to all the services and characteristics of interest on the peripheral.

However, I do not receive  notifications from all characteristics of interest (some work). I am also unable to successfully any write characteristics despite getting BLE_GATTC_EVT_WRITE_CMD_TX_COMPLETE.

Do I need to get handles to characteristics on the project? Any suggestions? 

(BTW everything works fine on nRF Connect)

Parents
  • Have you tried to capture a sniffer trace to see what is happening on air? I would guess that maybe you did not discover all the characteristics? and you are not getting notifications, are you sure you enabled notifications for all characteristics?

  • I have been successful in writing to all the characteristics. I changed the write_op parameter to BLE_GATT_OP_WRITE_REQ and when a response handler was triggered did nothing else. Before, I wrote again using the BLE_GATT_OP_EXEC_WRITE_REQ.

    Concerning notifications, the peripheral sends them for sure. but somehow the BLE_GATTC_EVT_HVX is not triggered. I have also taken care to use sd_ble_gattac_hv_confirm when necessary. Do I need to carry out any specific ation for the BLE_GATTC_EVT_HVX to be triggered? 

Reply
  • I have been successful in writing to all the characteristics. I changed the write_op parameter to BLE_GATT_OP_WRITE_REQ and when a response handler was triggered did nothing else. Before, I wrote again using the BLE_GATT_OP_EXEC_WRITE_REQ.

    Concerning notifications, the peripheral sends them for sure. but somehow the BLE_GATTC_EVT_HVX is not triggered. I have also taken care to use sd_ble_gattac_hv_confirm when necessary. Do I need to carry out any specific ation for the BLE_GATTC_EVT_HVX to be triggered? 

Children
Related