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

How to setup and test scan/pair/connect by softdevice 120

I am using nrf51442 as central client. I have used SDK\v7.1.0\examples\ble_central\ble_app_hrs_c\pca10028\s120\arm\ble_app_hrs_c_s120_pca10028.uvproj" as a atart point I have downloaded "SoftDevice\S120_SoftDevice\v1.0.1\s120_nrf51822_1.0.1\s120_nrf51822_1.0.1_softdevice.hex" But when I turn on a HRS peripherial device, I cannot see any output from the UART except the startup message. I have used the original address setting of the project but fail to download program to my board, and I have modified it according to blink LED project, and can make my program download success. Is there any more document tell me how to setup and test the central device function?

Parents
  • Hi

    I assume you are you using the nRF51 DK board, am I correct?

    Any initial setup problems are perhaps addressed in this tutorial.

    The SDK\v7.1.0\examples\ble_central\ble_app_hrs_c\pca10028\s120\arm\ ble_app_hrs_c_s120_pca10028.uvproj should run directly on the nRF51 DK. First flash the S120 softdevice, then flash the application. When the HRS peripheral advertises, start the application in debug mode and step through the main function to make sure the application is initializing and starting the scan. Try to set a breakpoint in on_ble_evt -> case BLE_GAP_EVT_ADV_REPORT in order to capture any advertising data received over the air, in order to see if the scan is working.

    I think the ble_app_hrs_c_s120 example filters the advertising data by UUID of the heart rate service, so it will connect to any peripheral having the UUID of the heart rate profile.

Reply
  • Hi

    I assume you are you using the nRF51 DK board, am I correct?

    Any initial setup problems are perhaps addressed in this tutorial.

    The SDK\v7.1.0\examples\ble_central\ble_app_hrs_c\pca10028\s120\arm\ ble_app_hrs_c_s120_pca10028.uvproj should run directly on the nRF51 DK. First flash the S120 softdevice, then flash the application. When the HRS peripheral advertises, start the application in debug mode and step through the main function to make sure the application is initializing and starting the scan. Try to set a breakpoint in on_ble_evt -> case BLE_GAP_EVT_ADV_REPORT in order to capture any advertising data received over the air, in order to see if the scan is working.

    I think the ble_app_hrs_c_s120 example filters the advertising data by UUID of the heart rate service, so it will connect to any peripheral having the UUID of the heart rate profile.

Children
Related