This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Unable to connect noridic nrf51 with andriod 5.x

Hello everyone,

I tried to connect with nrf51 with andriod 5.x .On connection indication the Master (android ) shows the following values of connection parameter (taken from sniffer):

  connInterval: 37,50  ms
  connSlaveLatency: 0
  connSupervisionTimeout: 20000,00  ms

The nrf52 sends with L2CAP request following values on connection parameter update request:

  connIntervalMin: 21,25  ms
  connIntervalMax: 45,00  ms
  connSlaveLatency: 0
  connSupervisionTimeout : 200  ms

It gets connection parameter update response as

Connection Parameters accepted

Then i see on link layer (after about 700 ms counting from the CONNECT_IND) LL_CONNECTION_UPDATE_IND with following values of parameter:

connInterval: 7,50  ms
connSlaveLatency: 0
connSupervisionTimeout: 20000  ms

Right after that the master sends another LL_CONNECTION_UPDATE_IND with another set of values:

connInterval: 30,00  ms
connSlaveLatency: 0
connSupervisionTimeout: 200  ms

Then the connection breaks immediately after LL_CONNECTION_UPDATE_IND.

Also I have defined following values for connection parameter in the firmware:

   MIN_CONN_INTERVAL                    62.5 ms        
   MAX_CONN_INTERVAL                   250 ms
     SLAVE_LATENCY                            0        
    CONN_SUP_TIMEOUT                   40000
     FIRST_CONN_PARAMS_UPDATE_DELAY       APP_TIMER_TICKS(5000, APP_TIMER_PRESCALER)     
    NEXT_CONN_PARAMS_UPDATE_DELAY        APP_TIMER_TICKS(30000, APP_TIMER_PRESCALER)    
    MAX_CONN_PARAMS_UPDATE_COUNT         3                                    

Why the connection is gets broken again and again? Why is the NRF51 always sending the L2CAP Connection Parameter Update Requests?

waiting for your kind reply.

Regards

MAbbas

Parents Reply Children
No Data
Related