cancel
Showing results for 
Search instead for 
Did you mean: 

BlueNRG multislaves?

kukushonok
Associate II
Posted on July 11, 2014 at 11:28

HI, 

I'm developing a device based on the BlueNRG. 

In my project I need to work with multiple slaves, ie the BlueNRF is in the CENTRAL mode. I use bluenrg_6_3 image (MODE 3)

Now I have the following problem:

1. if I use the command ''HCI_LE_SET_SCAN_ENABLE'' (for scanning addresses and names), after connecting at least one slave, stop coming SCAN RESPONSES. And I can not find and connect to the remaining devices.

2. When I use the command ''aci_gap_start_general_discovery_proc'' to search for new devices, 10 seconds after the command, connected slaves are disconnected.

This is log of BlueNRG v1.5.0

11:50:39.471 BLUEHCI_GAP_CREATE_CONNECTION

11:50:39.486 HCI_COMMAND_STATUS

11:50:39.667 EVT_BLUE_GAP_PROCEDURE_COMPLETE

11:50:39.671 HCI_LE_META

11:51:43.497 BLUEHCI_GAP_START_GEN_DISC_PROC

11:51:43.513 HCI_COMMAND_STATUS

11:51:43.569 EVT_BLUE_GAP_DEVICE_FOUND

11:51:53.713 EVT_BLUE_GAP_PROCEDURE_COMPLETE

11:51:53.862 HCI_DISCONNECTION_COMPLETE

How can I scan and connect to multiple slaves?

Regards.

Softwire engineer, Andrei Kekenov

#slaves #bluenrg #ble #bluenrrg-multislaves #scan
7 REPLIES 7
Posted on July 11, 2014 at 12:26

Hi Andrei,

which parameters have you set for

BLUEHCI_GAP_CREATE_CONNECTION

command?

Let me know

Regards,

Graziella Marchese

kukushonok
Associate II
Posted on July 11, 2014 at 12:40

Hi, Graziella

aci_gap_create_connection(0x4000, 0x4000, PUBLIC_ADDR,  _test_addr, PUBLIC_ADDR, 0x06, 0x28, 0x00, 0x10, 0x00 , 0x03E8);

Regards.

Posted on July 11, 2014 at 13:04

Hi Andrei,

in order to connect a master with more slaves, you must set the parameter Conn_Interval_Min with a value greater than 0x06. For example, if you set  the Conn_Interval_Min to 0x0020, you can connect until 5 slaves.

Regards,

Graziella
kukushonok
Associate II
Posted on July 11, 2014 at 13:20

Hi, Graziella

Thank you very much for the quick reply, I will check.

Regards,

Andrei

matej
Associate II
Posted on September 15, 2014 at 11:47

Hello,

I'm having similar problems with discovering after one slave is connected to master... I also tried to set Conn_Interval_Min to 0x0020 as you proposed to Andrei. But I can't find master with any other slave... should master send some special command?

In attachment are history of commands send via bluenrg gui app for master and slave; one scope file with LE and advertising, at other two files I set master discoverable via GAP, but no success.

Thanks for any advice.

BR

Matej

________________

Attachments :

masterGAPConnection.csv : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Ht2S&d=%2Fa%2F0X0000000aJA%2Fon.SzZZNEw_KaNDXIIXt_sRI4SA.zB8YIeeO.LLIQLU&asPdf=false

masterLEAdvertiseConnection.csv : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Ht2X&d=%2Fa%2F0X0000000aJB%2Fr0O4i1M7kHHHVCiRzmsi0fa0WN3Vw1JLCggh82Vu0CY&asPdf=false

slaveGAPConnection.csv : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Ht1l&d=%2Fa%2F0X0000000aJ0%2FIxoJR90VXhy2A1fLi9j3G7vPoetzg_ofmkAycS_9ito&asPdf=false

slaveLEAdvertiseConnection.csv : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Ht2c&d=%2Fa%2F0X0000000aJC%2FCDPJFSvsW2ztSsLUgD4QA1S5y4yq1zTtv2NHPU6IUEc&asPdf=false
matej
Associate II
Posted on September 17, 2014 at 13:04

Problem solved.

After create_connection command it's

necessary

to set scan parameters and enable scanning.

BR

Matej

Posted on November 17, 2014 at 16:44

Hi Matej,

sure...after each connection you have to set scan parameters and enable scanning.

regards,

Graziella