ESP32 BLE problem/strange issue with between two devices

Hi All,

I want to make serial communication between two esp32 dev board, I used the example SerialToSerialBT and SerialToSerialBTM examples but the master cannot see the slave esp, my pc bluetooth detects both, But if Ill turn on the Core debug level info the connection is established and serial works:
Info log:

09:14:59.006 -> [  1741][I][BluetoothSerial.cpp:402] esp_spp_cb(): ESP_SPP_CL_INIT_EVT handle:129 sec_id:55
09:14:59.110 -> [  1833][I][BluetoothSerial.cpp:384] esp_spp_cb(): ESP_SPP_OPEN_EVT
09:14:59.110 -> Connecting to slave BT device named "ESP32-BT-Slave"
09:14:59.110 -> Connected Successfully!
09:14:59.110 -> [  1844][I][BluetoothSerial.cpp:1045] disconnect(): disconnecting
09:14:59.110 -> [  1845][I][BluetoothSerial.cpp:296] esp_spp_cb(): ESP_SPP_CLOSE_EVT status:0 handle:129 close_by_remote:0 attempt 0
09:14:59.143 -> Disconnected Successfully!
09:14:59.143 -> [  1861][I][BluetoothSerial.cpp:1019] connect(): master : remoteAddress
09:14:59.143 -> Reconnected Successfully!
09:14:59.143 -> [  1884][I][BluetoothSerial.cpp:350] esp_spp_cb(): ESP_SPP_DISCOVERY_COMP_EVT num=1
09:14:59.178 -> [  1884][I][BluetoothSerial.cpp:361] esp_spp_cb(): ESP_SPP_DISCOVERY_COMP_EVT: spp connect to remote 24:dc:c3:0e:c4:86 channel 1
09:14:59.178 -> [  1894][I][BluetoothSerial.cpp:402] esp_spp_cb(): ESP_SPP_CL_INIT_EVT handle:129 sec_id:55
09:14:59.212 -> [  1951][I][BluetoothSerial.cpp:384] esp_spp_cb(): ESP_SPP_OPEN_EVT
09:15:04.436 -> [  7153][I][BluetoothSerial.cpp:583] esp_bt_gap_cb(): ESP_BT_GAP_MODE_CHG_EVT: mode: 2
09:15:18.734 -> [ 21440][I][BluetoothSerial.cpp:583] esp_bt_gap_cb(): ESP_BT_GAP_MODE_CHG_EVT: mode: 0
09:15:18.734 -> [ 21442][I][BluetoothSerial.cpp:583] esp_bt_gap_cb(): ESP_BT_GAP_MODE_CHG_EVT: mode: 0
09:15:19.724 -> asd
09:15:19.724 -> 
09:15:23.919 -> [ 26645][I][BluetoothSerial.cpp:583] esp_bt_gap_cb(): ESP_BT_GAP_MODE_CHG_EVT: mode: 2
09:15:31.719 -> [ 34447][I][BluetoothSerial.cpp:583] esp_bt_gap_cb(): ESP_BT_GAP_MODE_CHG_EVT: mode: 0
09:15:36.904 -> [ 39650][I][BluetoothSerial.cpp:583] esp_bt_gap_cb(): ESP_BT_GAP_MODE_CHG_EVT: mode: 2

Without info just simple serial output:

09:19:07.935 -> Failed to connect. Make sure remote device is available and in range, then restart app.
09:19:17.947 -> Failed to connect. Make sure remote device is available and in range, then restart app.
09:19:27.935 -> Failed to connect. Make sure remote device is available and in range, then restart app.
09:19:37.953 -> Failed to connect. Make sure remote device is available and in range, then restart app.
09:19:47.963 -> Failed to connect. Make sure remote device is available and in range, then restart app.
09:19:57.963 -> Failed to connect. Make sure remote device is available and in range, then restart app.
09:20:07.968 -> Failed to connect. Make sure remote device is available and in range, then restart app.
09:20:17.938 -> Failed to connect. Make sure remote device is available and in range, then restart app.
09:20:27.959 -> Failed to connect. Make sure remote device is available and in range, then restart app.
09:20:37.951 -> Failed to connect. Make sure remote device is available and in range, then restart app.
09:20:47.971 -> Failed to connect. Make sure remote device is available and in range, then restart app.
09:20:57.959 -> Failed to connect. Make sure remote device is available and in range, then restart app.
09:21:07.943 -> Failed to connect. Make sure remote device is available and in range, then restart app.
09:21:17.964 -> Failed to connect. Make sure remote device is available and in range, then restart app.
09:21:27.954 -> Failed to connect. Make sure remote device is available and in range, then restart app.
09:21:37.933 -> Failed to connect. Make sure remote device is available and in range, then restart app.
09:21:47.928 -> Failed to connect. Make sure remote device is available and in range, then restart app.
09:21:57.964 -> Failed to connect. Make sure remote device is available and in range, then restart app.
09:22:07.974 -> Failed to connect. Make sure remote device is available and in range, then restart app.
09:22:17.926 -> Failed to connect. Make sure remote device is available and in range, then restart app.
09:22:27.928 -> Failed to connect. Make sure remote device is available and in range, then restart app.

Any idea for this problem?

I moved your topic to a more appropriate forum category @kaito83.

The Nano ESP32 category you chose is only used for discussions directly related to the Arduino Nano ESP32 board.

In the future, please take the time to pick the forum category that best suits the subject of your question. There is an "About the _____ category" topic at the top of each category that explains its purpose.

Thanks in advance for your cooperation.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.