Error: (0x22): GATT CONN LMP TIMEOUT

Hi,

Every 40 seconds after successful connection,the  connection lost, The interval is very fixed. What's the reason?

thanks!

Parents
  • Hello,

    Are you using the nRF5 SDK or NCS for your nRF Application?

    40 seconds sounds like something is timing out. I suspect it is the peripheral not being satisfied with the connection parameters (mainly the connection interval). Does the log on the nRF say anything when disconnecting?

    If you are using the nRF5 SDK, look in your nRF application for something like this:

        cp_init.disconnect_on_fail             = true;

    used in combination with ble_conn_params_init().

    The disconnect_on_fail parameter is used to decide whether the peripheral will disconnect if it doesn't get the connection interval between min_conn_interval and max_conn_interval, after three attempts. 

    If the disconnect_on_fail is already set to false, can you please capture a sniffer trace of the connection, in addition to attaching the log from the nRF52840? Perhaps there is some other request that the nRF does not respond to properly.

    Best regards,

    Edvin

Reply
  • Hello,

    Are you using the nRF5 SDK or NCS for your nRF Application?

    40 seconds sounds like something is timing out. I suspect it is the peripheral not being satisfied with the connection parameters (mainly the connection interval). Does the log on the nRF say anything when disconnecting?

    If you are using the nRF5 SDK, look in your nRF application for something like this:

        cp_init.disconnect_on_fail             = true;

    used in combination with ble_conn_params_init().

    The disconnect_on_fail parameter is used to decide whether the peripheral will disconnect if it doesn't get the connection interval between min_conn_interval and max_conn_interval, after three attempts. 

    If the disconnect_on_fail is already set to false, can you please capture a sniffer trace of the connection, in addition to attaching the log from the nRF52840? Perhaps there is some other request that the nRF does not respond to properly.

    Best regards,

    Edvin

Children
Related