Bluetooth connection lost after pairing
Posted: Thu Jun 15, 2023 3:36 pm
I'm trying to run the Classic Bluetooth "acceptor" example:
https://github.com/espressif/esp-idf/tr ... p_acceptor
With the same sdkconfig configuration settings as the example
I turn on the bluetooth in the phone. I select the ESP32 device.
Then pop up a window with the pairing number:
At the same time this windows pops up, in the terminal i receive the following message:
W (162921) BT_HCI: hcif conn complete: hdl 0x80, st 0x0
W (162940) BT_HCI: hcif link supv_to changed: hdl 0x80, supv_to 8000
As soon as I pair the devices in the phone, the authentication is succesfull, but i receive the following message in the terminal:
W (245220) BT_HCI: hci cmd send: disconnect: hdl 0x80, rsn:0x13
W (245296) BT_HCI: hcif disc complete: hdl 0x80, rsn 0x16
And the connection process stops there. The connection proccess cannot complete
The serial port callback never reach the state: ESP_SPP_SRV_OPEN_EVT (SPP Server connection open)
I think i had this same issue months ago. I think was related with HCI. Now i have a fresh installation, with the latest ESP-IDF version. ESP-IDF works fine. VSCode works fine.
I tried to search the error code rsn:13, but i cannot find any information.
I think is related with the supervision timeout for the HCI link. Where can i change this value?
https://github.com/espressif/esp-idf/tr ... p_acceptor
With the same sdkconfig configuration settings as the example
I turn on the bluetooth in the phone. I select the ESP32 device.
Then pop up a window with the pairing number:
At the same time this windows pops up, in the terminal i receive the following message:
W (162921) BT_HCI: hcif conn complete: hdl 0x80, st 0x0
W (162940) BT_HCI: hcif link supv_to changed: hdl 0x80, supv_to 8000
As soon as I pair the devices in the phone, the authentication is succesfull, but i receive the following message in the terminal:
W (245220) BT_HCI: hci cmd send: disconnect: hdl 0x80, rsn:0x13
W (245296) BT_HCI: hcif disc complete: hdl 0x80, rsn 0x16
And the connection process stops there. The connection proccess cannot complete
The serial port callback never reach the state: ESP_SPP_SRV_OPEN_EVT (SPP Server connection open)
I think i had this same issue months ago. I think was related with HCI. Now i have a fresh installation, with the latest ESP-IDF version. ESP-IDF works fine. VSCode works fine.
I tried to search the error code rsn:13, but i cannot find any information.
I think is related with the supervision timeout for the HCI link. Where can i change this value?