ESP32 (Gateway) disconnects from end devices(Nordic) after 30 seconds

I have problem with BLE connection. I developing a BLE Gatt client application with ESP32. There is a nordic processor in my sensor (end device).

Notify is not coming to ESP32. I can read and write without notify it, but when I need to collect data constantly, it disconnects every 30 seconds and I get an error.

How can I check the specific reason of disconnection?

Incoming message;

ESP_GATTC_DISCONNECT_EVT,reason = 19 

Parents
  • Hello,

    The ESP log shows that the shows that the connection was terminated by the nRF (disconnect reason 19 corresponds to BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION).  I could be caused by GATT procedure timeout. This timeout is 30 seconds and is raised if a GATT procedure is not completed in time. 

    Which SDK is your Sensor FW based on? Also, do you get the same disconnect if you connect to your sensor with the nRF connect app on android or iOS?

    Best regards,

    Vidar

Reply
  • Hello,

    The ESP log shows that the shows that the connection was terminated by the nRF (disconnect reason 19 corresponds to BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION).  I could be caused by GATT procedure timeout. This timeout is 30 seconds and is raised if a GATT procedure is not completed in time. 

    Which SDK is your Sensor FW based on? Also, do you get the same disconnect if you connect to your sensor with the nRF connect app on android or iOS?

    Best regards,

    Vidar

Children
Related