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

max number of BLE connections limitation for S132 device

Hi.

I am using nrf52832 SoC with s132 device (4.0.2).
Device is acting as peripheral, I have set max BLE connection limit to 1.

ble_cfg.gap_cfg.role_count_cfg.periph_role_count  = 1;
ble_cfg.gap_cfg.role_count_cfg.central_role_count = 0;
ble_cfg.gap_cfg.role_count_cfg.central_sec_count  = 0;
err_code = sd_ble_cfg_set(BLE_GAP_CFG_ROLE_COUNT, &ble_cfg, ram_start);



I would like to know what is specified behavior of S132 stack when somebody tries to connect when 1 connection is already established?
Must stack on peripheral's side to send disconnect packet with specified reason of disconnect in that case?

The issue for my case:
I have device nrf52832 and 2 mobile phones.

1. 1st mobile phone connects to device. -> all is ok
2. 2nd mobile phone tries to connect to device and connect process hangs forever.
3. if 1st mobile drops BLE connect, 2nd phone connected to device.

Related