Forums - Connetcting CSR device to Android App bluetooth channel

4 posts / 0 new
Last post
Connetcting CSR device to Android App bluetooth channel
kian
Join Date: 8 Jun 16
Posts: 43
Posted: Tue, 2016-09-20 17:36

Hi all,

My CSR device doesn't connect reliably to the android app (I am using CSRMesh 2.0). Sometimes the device connects very fast, sometimes it takes 30 secs or so, sometimes it doesnt connect. When it doesn't connect, I have to kill the app in the background and try again until it eventually will connect.

Is there a way to make this more reliable?

  • Up0
  • Down0
Dr. Nissim Zur
Profile picture
Join Date: 6 Jun 16
Location: Skype: nissim.test CSR1010 External design house
Posts: 235
Posted: Tue, 2016-09-20 23:48

As far I know, No. 

CSR1010 CSRmesh is close lib, and can't be changed. 

  • Up0
  • Down0
kian
Join Date: 8 Jun 16
Posts: 43
Posted: Sat, 2016-09-24 18:32

Hi all,

I am still unable to solve this problem. Anyone from CSR can advise?

Is it something to do the the Gatt advertising interval? I tried the suggestion given in this post but it didn't seem to help much.

https://forum.csr.com/forum/main-category/main-forum/applications/61572-...

/* Minimum and maximum connection interval in number of frames */
#define PREFERRED_MAX_CON_INTERVAL          0x0006 /* 7.5 ms */
#define PREFERRED_MIN_CON_INTERVAL          0x0006 /* 7.5 ms */

/* Supervision timeout in ms = PREFERRED_SUPERVISION_TIMEOUT * 10 ms */
#define PREFERRED_SUPERVISION_TIMEOUT       0x00C8 /* 2 seconds */

or should I be changing the GATT_ADVERT_GROSS_INTERVAL (defined inside csr_mesh_switch_gatt.h) to a smaller value?

Someone also suggested changing the scanning window on the mobile app itself.

 

 

 

 

  • Up0
  • Down0
Loris
Join Date: 27 Jul 16
Posts: 35
Posted: Tue, 2016-09-27 03:00

I think what you want to modify is the DEFAULT_ADV_INTERVAL macro

  • 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.