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

Max connections count in SDK 12.2

When I try to increase the CENTRAL_LINK_COUNT from 8 to 9 in  ble_app_multilink_central example, I got this error NRF_ERROR_CONN_COUNT. Is there a way to increase the max connections to 20

Also, does SDK 12.2 support multi-peripheral links (one peripheral connected to multi central)?

Hint:

  • I'm using NRF52 not NRF51.
  • SD 132 version 3.0.0
Parents
  • I got this error

    Where, exactly, did you get that error ?

    I don't know about SDK 12.2, but by v15 there were separate counts for Central and Peripheral links - so are you sure you updated the right one?

    There might also be another separate "total links" count ...

  • In SDK 12.2 the CENTRAL_LINK_COUNT and PERIPHERAL_LINK_COUNT are defined in the main.c and are passed to the SD like this:

    ble_enable_params_t ble_enable_params;
        err_code = softdevice_enable_get_default_config(CENTRAL_LINK_COUNT,
                                                        PERIPHERAL_LINK_COUNT,
                                                        &ble_enable_params);
        APP_ERROR_CHECK(err_code);
    
        // Use the max config: 8 central, 0 periph, 10 VS UUID
        ble_enable_params.common_enable_params.vs_uuid_count = 10;
    
        // Check the ram settings against the used number of links
        CHECK_RAM_START_ADDR(CENTRAL_LINK_COUNT,PERIPHERAL_LINK_COUNT);
    
        // Enable BLE stack.
    #if (NRF_SD_BLE_API_VERSION == 3)
        ble_enable_params.gatt_enable_params.att_mtu = NRF_BLE_MAX_MTU_SIZE;
    #endif
        err_code = softdevice_enable(&ble_enable_params);
        APP_ERROR_CHECK(err_code);

    and I got this error:

  • The support for 20 connections in softdevice S132 came with version 5.0.0 according to the release notes - that is probably too new for SDK12.

    Which version do you use?

Reply Children
Related