cancel
Showing results for 
Search instead for 
Did you mean: 

Managing multiple simultaneous BLE central connections on an STM32WB10CC

Coco
Associate III

Hi everyone,
I'm working on STM32WB10CC and I use it as a BLE peripheral only. I would like to have 2 simultaneous BLE connections on it. I used STM32CubeMX with STME32_WPAN to setup my BLE. I'm able to connect one device but when I'm trying to connect a second one, it connect and disconnect instantly with the following errors :
- 0x3E (HCI_CONNECTION_FAILED_TO_BE_ESTABLISHED_ERR_CODE)
- 0x08 (HCI_CONNECTION_TIMEOUT_ERR_CODE)

To handle multiple connections, I used STM32WB-BLE-sensors-multiple-links example.

I calculated my GATT table with the excel given by ST (GATT_DB_Size_SRAM_NVM).

Here is my config :
CFG_BLE_NUM_LINK = 2
CFG_BLE_NUM_GATT_SERVICES = 6
CFG_BLE_NUM_GATT_ATTRIBUTES = 28
CFG_BLE_ATT_VALUE_ARRAY_SIZE = 187

Use case :
To perform my test, I'm trying to connect with an android and IPhone using nRFConnect. When I connect with the android phone first and then the IPhone, no problems, but in the other way I have the 0x08 error.
I also tryed using nRFConnect Desktop BLE with an nRFDongle as a second connection and this is the case where I have the 0x3E error.


Questions :
Do I have to change some delay ?
Does the device that want to connect have to use something like quick timing when connecting ?
Does anyone know what is going on ?

Thanks for your help.

Coco

0 REPLIES 0