2014-07-11 02:28 AM
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.011:50:39.471 BLUEHCI_GAP_CREATE_CONNECTION
11:50:39.486 HCI_COMMAND_STATUS11:50:39.667 EVT_BLUE_GAP_PROCEDURE_COMPLETE11:50:39.671 HCI_LE_META11:51:43.497 BLUEHCI_GAP_START_GEN_DISC_PROC11:51:43.513 HCI_COMMAND_STATUS11:51:43.569 EVT_BLUE_GAP_DEVICE_FOUND11:51:53.713 EVT_BLUE_GAP_PROCEDURE_COMPLETE11:51:53.862 HCI_DISCONNECTION_COMPLETEHow can I scan and connect to multiple slaves?Regards.Softwire engineer, Andrei Kekenov #slaves #bluenrg #ble #bluenrrg-multislaves #scan2014-07-11 03:26 AM
Hi Andrei,
which parameters have you set forBLUEHCI_GAP_CREATE_CONNECTION
command? Let me know Regards, Graziella Marchese2014-07-11 03:40 AM
Hi, Graziella
aci_gap_create_connection(0x4000, 0x4000, PUBLIC_ADDR, _test_addr, PUBLIC_ADDR, 0x06, 0x28, 0x00, 0x10, 0x00 , 0x03E8);Regards.2014-07-11 04:04 AM
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, Graziella2014-07-11 04:20 AM
Hi, Graziella
Thank you very much for the quick reply, I will check.Regards,Andrei2014-09-15 02:47 AM
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=falsemasterLEAdvertiseConnection.csv : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Ht2X&d=%2Fa%2F0X0000000aJB%2Fr0O4i1M7kHHHVCiRzmsi0fa0WN3Vw1JLCggh82Vu0CY&asPdf=falseslaveGAPConnection.csv : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Ht1l&d=%2Fa%2F0X0000000aJ0%2FIxoJR90VXhy2A1fLi9j3G7vPoetzg_ofmkAycS_9ito&asPdf=falseslaveLEAdvertiseConnection.csv : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Ht2c&d=%2Fa%2F0X0000000aJC%2FCDPJFSvsW2ztSsLUgD4QA1S5y4yq1zTtv2NHPU6IUEc&asPdf=false2014-09-17 04:04 AM
Problem solved.
After create_connection command it'snecessary
to set scan parameters and enable scanning. BR Matej2014-11-17 07:44 AM
Hi Matej,
sure...after each connection you have to set scan parameters and enable scanning. regards, Graziella