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

IOS links more than 90 seconds, automatically disconnect

Hi,all

I use nrf51822 connect with ios device,it will automatically disconnect when links more than 90 seconds.

device connection parameter as follow:

    #define MIN_CONN_INTERVAL               MSEC_TO_UNITS(20, UNIT_1_25_MS)  
    #define MAX_CONN_INTERVAL               MSEC_TO_UNITS(28, UNIT_1_25_MS)      
    #define SLAVE_LATENCY                   0  
    #define CONN_SUP_TIMEOUT                MSEC_TO_UNITS(4000, UNIT_10_MS) 
    #define FIRST_CONN_PARAMS_UPDATE_DELAY  APP_TIMER_TICKS(5000, APP_TIMER_PRESCALER)
    #define NEXT_CONN_PARAMS_UPDATE_DELAY   APP_TIMER_TICKS(30000, APP_TIMER_PRESCALER) 
   #define MAX_CONN_PARAMS_UPDATE_COUNT    3 

SDK:8.10 s110

Parents
  • what is the disconnect reason provided?

    try using a bigger max_conn_interval.

    Please take note of the following numbers lifted from Apple Bluetooth design guidelines.

    • Interval Max * (Slave Latency + 1) ≤ 2 seconds
    • Interval Min ≥ 20 ms
    • Interval Min + 20 ms ≤ Interval Max
    • Slave Latency ≤ 4
    • connSupervisionTimeout ≤ 6 seconds
    • Interval Max * (Slave Latency + 1) * 3 < connSupervisionTimeout

    jing

Reply
  • what is the disconnect reason provided?

    try using a bigger max_conn_interval.

    Please take note of the following numbers lifted from Apple Bluetooth design guidelines.

    • Interval Max * (Slave Latency + 1) ≤ 2 seconds
    • Interval Min ≥ 20 ms
    • Interval Min + 20 ms ≤ Interval Max
    • Slave Latency ≤ 4
    • connSupervisionTimeout ≤ 6 seconds
    • Interval Max * (Slave Latency + 1) * 3 < connSupervisionTimeout

    jing

Children
No Data
Related