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:
    Because on ble_app_uart (peripheral), I do not have this type of problem

    Could you elaborate more? 

    Do you mean your ble_app_multilink_central (trying to integrate ble_app_uart_c example) and on the peripheral: ble_app_uart can work? 

    Please also check the connection handle in handles_assign of ble_app_uart_c and ble_app_multilink_c. 

    -Amanda H.

Children
No Data
Related