Forums - MAx BLE Connections supported by QCA4020

8 posts / 0 new
Last post
MAx BLE Connections supported by QCA4020
yerasiprathyusha
Join Date: 3 Sep 18
Posts: 7
Posted: Wed, 2018-10-24 21:48

Hi,

We are trying to connect to 5 pherepherials (Bulbs)  from QCA4020 as master. But i am able to maintain only 4 active connections at a given point of time. Is there any limitation on number of active BLE connections??

Awaiting for response.

Thank you,

Y. Prathyusha.

  • Up0
  • Down0
c_rpedad
Profile picture
Join Date: 18 Jun 18
Location: San Jose
Posts: 317
Posted: Thu, 2018-10-25 12:35

The allowed maximum number of simultaneous BLE connections is 4 by default. The maximum value is 10.
The value can be configured in @target\quartz\nvm\config\2.0\4020\CDB\QCA4020_2p0.nvm under NVM Tag 1.

Please refer to section "3.6.1.1 BLE size parameters" of document "QCA402x (CDB2x)Programmers Guide 80-YA121-142" about NVM configuration for Maximum simultaneous BLE connections.
The parameter is about the number of simultaneous connection and it is to restrict memory usage for multiple connections.

  • Up0
  • Down0
yerasiprathyusha
Join Date: 3 Sep 18
Posts: 7
Posted: Thu, 2018-10-25 22:31

Hi Raja,

Thanks, it worked.

We were able to connect to 5 devices a couple of times but now we have a new issue:

We receive QAPI_BLE_HCI_ERROR_CODE_UNACCEPTABLE_CONNECTION_INTERVAL after responding to connection parameters update request. Can you please help us?

We did not see this issue when max_connections was set to 4 in NVM configuration file

Here is the log for the same:

Request f rom peripheral:
BLE: etLE_Connection_Parameter_Update_Request with size 14.
BLE:    BD_ADDR:                     0xACA74B18ACE6
BLE:    Connection Interval Minimum: 20
BLE:    Connection Interval Maximum: 40
BLE:    Slave Latency:               0
BLE:    Supervision Timeout:         6000
 

Response from peripheral after update was sent from QCA4020:

BLE: etLE_Connection_Parameter_Updated with size 14.
BLE:    BD_ADDR:             0xACA74B18ACE6
BLE:    Status:              59 (QAPI_BLE_HCI_ERROR_CODE_UNACCEPTABLE_CONNECTION_INTERVAL)
BLE:    Connection Interval: 0
BLE:    Slave Latency:       0
BLE:    Supervision Timeout: 0

Thanks a lot,

Prathyusha

  • Up0
  • Down0
jaydenk
Join Date: 21 Jun 18
Posts: 64
Posted: Sat, 2018-10-27 14:28

Hi Prathyusha,

The new error seems happening because there is no slot to align the new connection when you already have several connections.

Did you check the connection interval of the existing 4 connections?

If the existing 4 connection have short connection interval, this error can happen.

Thanks
BR,
Jayden

  • Up0
  • Down0
yerasiprathyusha
Join Date: 3 Sep 18
Posts: 7
Posted: Mon, 2018-10-29 19:53

Hi,

Thank you for your support.

As the bulbs (pheripherals)  are requesting for connecting intervel from 20 - 40 milli sec. Changed connection time from 20 to 40 millisec. Now the application is working fine.

Sometime we experienced hang issue. Please help regarding this.

Thank you,

Y. Prathyusha.

  • Up0
  • Down0
jaydenk
Join Date: 21 Jun 18
Posts: 64
Posted: Mon, 2018-10-29 23:15

Hi yerasiprathyusha,

For debugging hang issue, you may need JTAG debug in gdb session.

Please refer programmer and dev kit document.

Thanks
BR,
Jayden

  • Up0
  • Down0
lap.dang
Join Date: 24 Oct 18
Posts: 14
Posted: Tue, 2020-03-31 23:55

Hi guys,

I have SDK and the hardware of QCA4020. Current, I can connect with 4 sensor at the same time.

Follow the document, I modified the file .nvm to connect more than 4 sensor (try with value 07):

Step 1: Modified in file target\quartz\nvm\config\2.0\4020\CDB\QCA4020_2p0.nvm
[Tag0]
TagNum = 1
TagLength = 13
TagValue = 51 00 72 06 [07] 10 10 14 14 10 04 FB 00
Step 2: Rebuild the SDK, see in the file target\quartz\demo\QCLI_demo\src\export\UsrEDL.c had updated
unsigned char UsrEDLFileData[] = {
   0x020x990x020x00,
   0x010x000x0D0x000x000x000x000x000x000x000x000x000x510x000x720x06, [0x07]0x100x100x140x140x100x040xFB0x00,
   0x030x000x200x000x000x000x000x000x000x000x000x000x290xF90xE40xF90x2F0xFB0xFB0xFB0x340xFD0x6F0xFE0x400xFF0x700x000x8A0x010x730x020x260x040x4A0x050x700x060x990x070xB30x080xBD0x09,
   0x050x000x060x000x000x000x000x000x000x000x000x000x000x000x000x000x000x00,
 
But I still can not connect with 5th sensor BLE. Can you give me any advice? Thank you so much.
Regards,
Lap
  • Up0
  • Down0
lap.dang
Join Date: 24 Oct 18
Posts: 14
Posted: Sun, 2020-04-26 20:13

Hi All,

The problem was reolved. We need change the interval_time min and max for create and hold the connection.

Thank you.

Lap

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.