cancel
Showing results for 
Search instead for 
Did you mean: 

BlueNRG-MS simultaneously Master&Slave

sbertuletti
Associate II
Posted on July 21, 2015 at 11:00

Hello, i'm using aBlueNRG-MS module.

I have a problem with this module. I can use it as Master and Slave, but i can't use it as Master&Slave simultaneously. Because after i create a connection with a slave module i can't make the Master discoverable.

what can i do? is there an example of using the BlueNRG as Master&Slave simultaneously ?

Thanks!

Stefano

#bluenrg-master&slave
13 REPLIES 13
lucaleonardi.919
Associate II
Posted on February 05, 2016 at 12:04

Hi,

I have faced with the same problems: I want to use module in master/slave mode simultaneously, but when I trying to run aci_gap_start_general_discovery_proc 

when device already connected to module function returns error = 0x85

Can I search devices in master mode if I have already connected to master  in slave mode?

I need to have some device that alternately can receive (or send) advertisement to discovery new device and connect with them and send information to the devices with it is already connected.

What can I do?

Posted on March 09, 2016 at 15:33

Dear Customer,

the error 0x85 (Too large interval) is due to an error in the parameter of scanning procedure.

If you download the latest version of BlueNRG DK 1.9.0, under folder:

..\STMicroelectronics\BlueNRG DK 1.9.0\Application\scripts\BlueNRG-MS_Simultaneous_Master_Slave_mode

you can find the scritps that permits to simulate the simultaneously master and slave.

Regards,

GM

Hi,

I have faced with the same problems: I want to use module in master/slave mode simultaneously, but when I trying to run aci_gap_start_general_discovery_proc 

when device already connected to module function returns error = 0x85

Can I search devices in master mode if I have already connected to master  in slave mode?

I need to have some device that alternately can receive (or send) advertisement to discovery new device and connect with them and send information to the devices with it is already connected.

What can I do?

Posted on March 09, 2016 at 16:09

Dear Andrei,

about the error BLE_STATUS_INSUFFICIENT_RESOURCES, this error occurs because when update a char, the request are put in a queue, when this queue is full the error BLE_STATUS_INSUFFICIENT_RESOURCES is returned, the EVT_BLUE_GATT_TX_POOL_AVAILABLE event available on BlueNRG-MS FW stack 7.1c for avoiding continuous polling until BLE_STATUS_INSUFFICIENT_RESOURCES is returned (see ID 1143 on BlueNRG-MS FW solved issues).

•ID 1143: Added EVT_BLUE_GATT_TX_POOL_AVAILABLE event to notify when you can use again the update char command.

As example, you can see the BLE Chat project.

Please, for further details, see  the ''Release Notes V1.8.0/ 20-July-2015'' (see BluNEG DK vers.1.9.0)

Regards,

GM

Posted on September 13, 2017 at 11:59

Where can I find the error codes? 

I have BlueNRG-MS Bluetooth® LE stack application command interface (ACI). 

There Aci_Gap_Create_Connection has only three return values:

0x00 SUCESS

0x12 INVALID PARAMETER

0x0C DISALLOWED

And if i look into core specification error odes ending with 0x40.

But if I enable advertising and try to create a connection after that I get a status event with result code 0x84.