This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Gap Connection Interval update support in android mobile phones

Hi all,

I have gone through different post in this forum discussing about enabling automatic parameter update request when a connection is formed. So many posts discusses that we can update the connection parameters during the process as required. For my application i need to update different connection interval based on requirement for saving power consumption.

A discussed by Svendbt in 

"Android versions <5 does not allow you to request other connection intervals (it ignores preferred intervals by the peripheral).". 

1)I need confirmation for this that if i try to update the connection related parameters during the process then it will not update in mobile phones with android version < 5. My android application will support in mobile phones version >4.4.

Will "GAPRole_SetParameter( GAPROLE_PARAM_UPDATE_ENABLE, sizeof( uint8 ), &enable_update_request );" API have no effect for android versions < 5?

2)Is there any concern for connection interval assigned by central device for different mobile phones? I have set

#define DEFAULT_DESIRED_MIN_CONN_INTERVAL     8(10msec)     
#define DEFAULT_DESIRED_MAX_CONN_INTERVAL     12(15msec)
So my question is will different mobile phones connect to my BLE peripheral device within above set connection interval(or even >  7.5ms)? I have tested in different mobile phones but in some phones there is no problem in receiving data when i send 80bytes data with 25msec interval but in other phones too many data get missed. Is this issue caused due to low connection timing range set and withing this range central device would not connect?

Thanks

  • Hello,

    Since the connection parameters are specified by the master, your question is mostly directed at the mobile phone (central), so TI can't predict how the phone manufacturer will implement their system. The phone can use any valid combination of connection parameters, and like you indicate, can ignore any request / preference by the mobile. You'll need to test the behavior on all phones you want to support if your design has specific tolerance w.r.t connection parameters. Based on observation, most phones connect in the 25-50ms interval range, but that is not always the case.

    Best wishes
  • Hi JXS,
    I had increased MIN and MAX time to 10ms and 20ms respectively and also reduced data transfer rate to 40bytes per connection interval. Now data is not missing in those mobiles but this has drastically reduced data rate.
    Thanks