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

Problem when establish a connection: p_gap_evt->conn_handle = 292

Hello,

I'm using 2 sparkfun nrf52840 boards. On the central board I'm using ble_app_multilink_central (trying to integrate ble_app_uart_c example) and on the peripheral: ble_app_uart.

When connected, in ble_evt_handler, at BLE_GAP_EVT_CONNECTED, I get a reset because of the function:

APP_ERROR_CHECK_BOOL(p_gap_evt->conn_handle < NRF_SDH_BLE_CENTRAL_LINK_COUNT);

where p_gap_evt->conn_handle is 292.

Can you tell me, please, what does this value mean?

I guess that this is the cause why I cannot send any string from central to peripheral through ble_nus_c_string_send or ble_nus_data_send.

I'm using nRF5_SDK_15.3.0_59ac345,  s140.


Thank you.

Parents Reply
  • Hi, 

    BMG said:
    Can I debug & run the code without the emulator, only through USB?

    There is no debugger on that board. There is a debug interface (SWD) that you can connect a debugger to for programming the board, but you still need an external debugger for programming. This is also shown in the SWD Interface section of the SparkFun Pro nRF52840 Mini Hookup Guide.

    BMG said:
    The error I get is NRF_ERROR_NOT_FOUND.

    That error means Attribute not found. The sd_ble_gatts_value_get() that is used in the on_connect() function. In that case, the attribute is the CCCD(Client Characteristic Configuration Descriptor). Please see this post.  

    -Amanda H.  

Children
Related