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
  • Thank for your fast response. 

    Indeed, there are some devices around my table but all of them are nordic devices (same chip: nrf51822). The strange thing is: when I browsing around devzone, I got a recommend to change the xtal accuracy.

    I changed it from 

    NRF_CLOCK_LF_XTAL_ACCURACY_20_PPM to 
    NRF_CLOCK_LF_XTAL_ACCURACY_500_PPM. 
    And somehow, it works. Seems like the problem 0x08 does not appear anymore. 
    When I read more about this, some one said  that this could drift the timer over time. So when I use this for couple hour, the timer will be wrong or something? 
    I still very confuse about this. Is there any consequense when I config xtal this way? And there are several level of NRF_CLOCK_LF_XTAL_ACCURACY, from 20 to 500, how do I know which one is suitable for my design? 
Children
Related