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

[PC-Ble-Driver] How To Increase the GATT Connect Link?

Hi Nordic Team,

Currently, i develop a software for fitting our application.

Env: Windows10,  Controller: 52832 SDK: PC-Ble-Driver.

SDK Link: NordicSemiconductor/pc-ble-driver: Desktop library for Bluetooth low energy development (github.com)

My Question is how to increase the ble link.

After i set the "ble_cfg.conn_cfg.params.gap_conn_cfg.conn_count = 3 or larger"  it will report NRF_ERROR_RESOURCES.

How to increase the controller ram for fixing this issue? or how to increase the ble link?

Actually. i need to implement multi-link in my windows's ble central. is there any way to fix this issue?

Thanks for Nordic Team.

Top Replies

  • static uint32_t ble_cfg_set(uint8_t conn_cfg_tag)
    {
    const uint32_t ram_start = 0; // Value is not used by ble-driver
    uint32_t error_code;
    ble_cfg_t ble_cfg;

    // Configure the connection roles.
    memset(&ble_cfg, 0, sizeof(ble_cfg));

    ble_cfg.gap_cfg.role_count_cfg.adv_set_count = 1;//BLE_GAP_ADV_SET_COUNT_DEFAULT;
    ble_cfg.gap_cfg.role_count_cfg.periph_role_count = 0;
    ble_cfg.gap_cfg.role_count_cfg.central_role_count = 3;//MAX_PEER_COUNT;
    ble_cfg.gap_cfg.role_count_cfg.central_sec_count = 0;

    error_code = sd_ble_cfg_set(tuya_ble_port_adapter, BLE_GAP_CFG_ROLE_COUNT, &ble_cfg, ram_start);
    if (error_code != NRF_SUCCESS)
    {
    tuya_printf("sd_ble_cfg_set() failed when attempting to set BLE_GAP_CFG_ROLE_COUNT. Error code: 0x%02X\n", error_code);
    return error_code;
    }

    memset(&ble_cfg, 0x00, sizeof(ble_cfg));
    ble_cfg.conn_cfg.conn_cfg_tag = conn_cfg_tag;
    //ble_cfg.conn_cfg.params.gap_conn_cfg.conn_count = 3;//MAX_PEER_COUNT;
    ble_cfg.conn_cfg.params.gatt_conn_cfg.att_mtu = 247;

    error_code = sd_ble_cfg_set(tuya_ble_port_adapter, BLE_CONN_CFG_GATT, &ble_cfg, ram_start);
    if (error_code != NRF_SUCCESS)
    {
    tuya_printf("sd_ble_cfg_set() failed when attempting to set BLE_CONN_CFG_GATT. Error code: 0x%02X\n", error_code);
    return error_code;
    }

    return NRF_SUCCESS;
    }

  • After setting as below, it report 18,NRF_ERROR_CONN_COUNT

Related