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

central dongle

I am trying to use my nRF51 Dongle (pca10031) as a central.

I downloaded the nRF5_SDK_12.3.0_d7731ad and I could see that there is no BLE project for pca10031 (only pca10028 or pca10040).

I tried working from ble_app_uart_c/pca10028  example, which could be similar. I could make the scan working, but when it connects to a peripheral, it resets and restarts.

Is there any BLE central sample that works on nRF51 dongle?

Thanks for helping.

Parents
  • Hi,

    pca10031 and pca10028 are mostly the same except for the pin-out. The ble_app_uart_c is configured to use a button to wake the device from deep sleep (system OFF mode), which needs to be removed if making code for the PCA100031 board. 

    Please try to make the following changes:

    1. Update pre-processor definition so that pca100031 header is included in the build:

    2. remove button configurations and dependencies. That is, bsp_btn_ble.c and references to bsp_btn_ble functions in main.c. E.g., bsp_btn_ble_sleep_mode_prepare(), bsp_btn_ble_init()

    3. Re-compile project and see if it still resets.

  • Thanks,

    I downloaded an older version of the sdk ( nRF5_SDK_12.1.0_0d23e2a ) and this one contains a pca100031 version of ble_app_uart_c (both hex file and makefile). Hex file works straight forward, and I could recompile it with the gcc toolchain.

    It's working like a charm.

    All the best

Reply Children
No Data
Related