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

Configuration Max- Min interval, supervision timeout for android

Hello,

I'm trying to configure the max -min of interval params and supervision timeout to obtain timeout of android = 1s.

#define MIN_CONN_INTERVAL                               MSEC_TO_UNITS(7.5, UNIT_1_25_MS)
#define MAX_CONN_INTERVAL                               MSEC_TO_UNITS(87.5, UNIT_1_25_MS)
#define SLAVE_LATENCY                                   0
#define CONN_SUP_TIMEOUT                                MSEC_TO_UNITS(1000, UNIT_10_MS)
#define FIRST_CONN_PARAMS_UPDATE_DELAY                  APP_TIMER_TICKS(1000, APP_TIMER_PRESCALER)
#define NEXT_CONN_PARAMS_UPDATE_DELAY                   APP_TIMER_TICKS(30000, APP_TIMER_PRESCALER)
#define MAX_CONN_PARAMS_UPDATE_COUNT                    3

i configure all parameters to run function sd_ble_gap_conn_param_update() . 

But it't only fit to some android phone. Although supervision timeout obtain timeout of android = 1s but sometime it's disconnected with phone. I don't know why? please help me!!

Parents Reply
  • Hi, sorry for late answer, I am still struggling with this.

    More info about my casse:

    1. When I keep the phone (no matter IPhone or Android phone) as close as possible to the nrf51822, this problem never appears, but when I moved it further, just around 2-3 meters away, Iphone seems to have this problem, but Android still worked fine. 

    2. About interval connection, I set it to be 9 ms in Android and 24 ms in IPhone , since IPhone can not go down more than 24 ms. (I want it to be as small as possible). About supp_conn_timeout, I set it to be 1 s in android and 720 ms (as default) in IPhone .

    Could you please help me to find out what is the reasons for this error and how to fix this? 

    Thank a lot.  

Children
Related