cancel
Showing results for 
Search instead for 
Did you mean: 

BlueNRG-Ms dual role and stack mode

benjaminboschet9
Associate
Posted on November 03, 2015 at 16:29

Hello,

I'd like to have some clarifcations regarding BLUENRG-MS capacities to handle multiple simultaneous connection as a Master and  Slave device.

From what I undertand, the chip have to configured with Stack Mode 4 (or Mode 3)  to enable simultaneous master / slave / scan / advertize behaviour.

But I can't find exactly which simultaneous connection are possible (for example: connected as a master to 2 devices, and connected as a slave to another device while scan and advertising is still active).

Are the following configurations possible with BlueNRG-MS ?

1) Device(BlueNRG-MS) connected to 1 master, advertising and scanning still active.

2) Device(BlueNRG-MS) connected simultaneously to 2 masters, scanning still active (i.e. able to received advertising data from other devices)

3) Device(BlueNRG-MS) connected simultaneously to 1 master and 1 slave

Is there any document describing the Stack Mode 4 and Mode 3 behavior ?

Thank you

#bluenrg
10 REPLIES 10
Posted on June 08, 2018 at 14:09

Hi Quentin,

if you use the

http://www.st.com/en/embedded-software/fp-net-blestar1.html

 software package, you'll be able to have multiple slaves connected to one single master, as shown in the related

http://www.st.com/resource/en/product_presentation/fp-net-blestar1_quick_start_guide.pdf

.

As an alternative, you can use the

http://www.st.com/content/st_com/en/products/embedded-software/wireless-connectivity-software/stsw-bnrgui.html

tool. The BlueNRG GUI includes a set of scripts that you can run by using its built-in interpreter. Starting from the root of the tool installation folder, you can find them in the 'Application\scripts'. You'll find examples for many use cases. For multiple connections, please take a look at the 'Application\scripts\Multiple_Connection' folder.

These scripts are written in Python, but you can easily get inspiration from them for your own C code.

In order to use the GUI, please make sure that your STM32 board is running the

Virtual_COM_Port

 

project of the X-CUBE-BLE1 package.

Best regards,

Antonio