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

  • The firmware implements both server and client, you select the mode by which button you press. The dummy board will start both scanning and advertising (both GAP central and peripheral roles). The tester board will wait for configuration and start both advertising and scanning when you start the test. Depending on which boards receive the advertisement report, the tester board will either connect as a peripheral or a central. Independent on the GAP roles, the tester board will start sending notifications to the dummy board, containing the data.

Reply
  • The firmware implements both server and client, you select the mode by which button you press. The dummy board will start both scanning and advertising (both GAP central and peripheral roles). The tester board will wait for configuration and start both advertising and scanning when you start the test. Depending on which boards receive the advertisement report, the tester board will either connect as a peripheral or a central. Independent on the GAP roles, the tester board will start sending notifications to the dummy board, containing the data.

Children
No Data
Related