Skip to main content
Associate II
April 23, 2021
Solved

Is there a possibility to connect a slave to more than 2 masters (BLE)?

  • April 23, 2021
  • 2 replies
  • 1232 views

Programming manual PM0271, page 4, current features supported on Bluetooth specification v4.1, it is said that it only supports being slave of up to two masters simultaneously.

But as for the standard, the maximum connections number would be 8. I'm trying to use "server" and "client" examples, using full stack, but the server can only connect to 2 clients. After this, it can't put server on advertising mode (I'm starting again the advertiser after every connection). Currently I'm using STM32WB v1.11.1 package. I've tried v1.9.0 and v1.10.0 with the same limitation.

Is there a way to connect a slave to more masters?

This topic has been closed for replies.
Best answer by Remi QUINTIN

No this is not possible.

STM32WB could be connected with 8 devices maximum with the possible congigurations below:

--> Being Master with 8 slaves

--> Being Master with 7 slaves + being 1 Slave with another Master

--> Being Master with 6 Slaves + being twice Slaves with 2 Masters different

2 replies

pztAuthor
Associate II
April 23, 2021

I already changed the define below, with no success.

/**

 * Maximum number of simultaneous connections that the device will support.

 * Valid values are from 1 to 8

 */

#define CFG_BLE_NUM_LINK      8

Remi QUINTIN
Remi QUINTINBest answer
Technical Moderator
April 23, 2021

No this is not possible.

STM32WB could be connected with 8 devices maximum with the possible congigurations below:

--> Being Master with 8 slaves

--> Being Master with 7 slaves + being 1 Slave with another Master

--> Being Master with 6 Slaves + being twice Slaves with 2 Masters different