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

Disconection occured in a random way[Reason : BLE_HCI_CONNECTION_TIMEOUT]

Hi,

I'm interfacing acceleration via BLE using NRF52.

I'm using timer to get the sensor value and update the characteristic value related to this sensor using sd_ble_gatts_hvx every timeout_ticks value configured in app_timer_start API.

When i set timeout_ticks above 500 ms, the BLE works corrcetly, in the opposite case, a disconnection event occured in a random way with the following reason : BLE_HCI_CONNECTION_TIMEOUT.

Thank you in advance.

Parents
  • Hi, I think the problem is solved, in Fact, I changed the connection interval parameteres from :

    #define MIN_CONN_INTERVAL               MSEC_TO_UNITS(100, UNIT_1_25_MS)        
    #define MAX_CONN_INTERVAL               MSEC_TO_UNITS(200, UNIT_1_25_MS)
    

    to :

    #define MIN_CONN_INTERVAL               MSEC_TO_UNITS(20, UNIT_1_25_MS)        
    #define MAX_CONN_INTERVAL               MSEC_TO_UNITS(40, UNIT_1_25_MS)
    

    But the question now is, what is the link between connection interval and ACCELERATION_SAMPLE_TIME, knowing that I decreased this value down to 50 ms.

    Thx

Reply
  • Hi, I think the problem is solved, in Fact, I changed the connection interval parameteres from :

    #define MIN_CONN_INTERVAL               MSEC_TO_UNITS(100, UNIT_1_25_MS)        
    #define MAX_CONN_INTERVAL               MSEC_TO_UNITS(200, UNIT_1_25_MS)
    

    to :

    #define MIN_CONN_INTERVAL               MSEC_TO_UNITS(20, UNIT_1_25_MS)        
    #define MAX_CONN_INTERVAL               MSEC_TO_UNITS(40, UNIT_1_25_MS)
    

    But the question now is, what is the link between connection interval and ACCELERATION_SAMPLE_TIME, knowing that I decreased this value down to 50 ms.

    Thx

Children
No Data
Related