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

[PCA10056] How Can I See data was received in ATT_MTU_Thought_Put

I was bought 2 PCA10056 board to do my product. I use ATT_MTU_Thought_Put example in SDK version 13. I also read this tutorial infocenter.nordicsemi.com/index.jsp. And I have some question : 1 - How can I get data was received in the RESPONDER board. ( I am going to write this data to SDCard. But now I want to know how can I see them). 2 - Does RESPONDER send data to TESTER? If RESPONDER can send data to TESTER, how can I do that. ( please give me step by step to do that.) Thanks the DEVTeam!

Parents
  • Hi,

    The data is sent from the tester board to the responder board using notifications. On the responder board, the notification events are handled in nrf_ble_amtc_on_ble_evt(), and on_hvx() function is called on reception of BLE_GATTC_EVT_HVX event. The data can be seen in p_ble_evt->evt.gattc_evt.params.hvx.data in on_hvx() function.

    The tester board is the one implementing the GATT table. The responder board can write to the characteristics of tester board, but I would recommend you implement additional characteristics if you want to send data this way. Please have a look at the BLE service/charactertistics tutorials on how to do this. Writes are handled in on_write() which is called from nrf_ble_amts_on_ble_evt() on reception of BLE_GATTS_EVT_WRITEevent.

    Best regards,

    Jørgen

Reply
  • Hi,

    The data is sent from the tester board to the responder board using notifications. On the responder board, the notification events are handled in nrf_ble_amtc_on_ble_evt(), and on_hvx() function is called on reception of BLE_GATTC_EVT_HVX event. The data can be seen in p_ble_evt->evt.gattc_evt.params.hvx.data in on_hvx() function.

    The tester board is the one implementing the GATT table. The responder board can write to the characteristics of tester board, but I would recommend you implement additional characteristics if you want to send data this way. Please have a look at the BLE service/charactertistics tutorials on how to do this. Writes are handled in on_write() which is called from nrf_ble_amts_on_ble_evt() on reception of BLE_GATTS_EVT_WRITEevent.

    Best regards,

    Jørgen

Children
Related