ble disconnects Immediately after connection.

Hi All,

I'm using nrf Connect SDK v1.7.0 with Vs Code

So here I can see in the debug prints that Bluetooth device is able to get connection successfull callback and Immediately I get disconnection callback with this error reason.

BT_HCI_ERR_CONN_FAIL_TO_ESTAB           0x3e
I wish to know, what does it mean and how to prevent it?
Parents
  • Hi

    BT_HCI_ERR_CONN_FAIL_TO_ESTABLISH will happen from time to time. This means that the peripheral didn't respond to the connect request correctly (only one request is sent per connect attempt). It's normal for this error to happen from time to time, but it can for example happen if there is lots of noise or interference from nearby sources. It could also be due to a whitelisting issue, that either side of the connection simply doesn't allow connections to the device it's trying to connect with. Hard to say without a bit more information on what you're doing.

    Best regards,

    Simon

  • We're trying to connect these mutliple peripheral devices one at a time, which comes out of sleep every 3 minutes and advertises. On receiving matching bluetooth Address I'm going for connect request. using following Api.

      param2.interval_max = 30;
      param2.interval_min = 7;
      param2.latency = 0;
      param2.timeout = 400;
    
     
      err = bt_conn_le_create(addr, BT_CONN_LE_CREATE_CONN,
          &param2,  conn);

    I'm not whitelisting or anything as such deliberately

    Please ask me if you need any specific details.

    Thanks & Regards

    Viswa

Reply
  • We're trying to connect these mutliple peripheral devices one at a time, which comes out of sleep every 3 minutes and advertises. On receiving matching bluetooth Address I'm going for connect request. using following Api.

      param2.interval_max = 30;
      param2.interval_min = 7;
      param2.latency = 0;
      param2.timeout = 400;
    
     
      err = bt_conn_le_create(addr, BT_CONN_LE_CREATE_CONN,
          &param2,  conn);

    I'm not whitelisting or anything as such deliberately

    Please ask me if you need any specific details.

    Thanks & Regards

    Viswa

Children
No Data
Related