esp-idf: Cannot connect ESP32-S3 WROOM Bluooth to BLE (IDFGH-11570)
Answers checklist.
- I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
- I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
- I have searched the issue tracker for a similar issue and not found a similar issue.
IDF version.
v5.1.2
Espressif SoC revision.
ESP32-S3 WROOM
Operating System used.
Windows
How did you build your project?
Command line with Make
If you are using Windows, please specify command line type.
None
Development Kit.
Visual Studio Code
Power Supply used.
USB
What is the expected behavior?
I managed to compile and run: ble gatt_server example Now I am trying to pair it from Windows 11. I see the ESP_GATTS_DEMO in the list and I click on it. It tries to connect: Connecting… And I see in the Terminal that it tries to connect, and then it says: I (305799) GATTS_DEMO: update connection params status = 16, min_int = 16, max_int = 32,conn_int = 30,latency = 0, timeout = 400 E (333819) BT_BTM: Device not found And then at the end (after retrying) W (1168119) BT_HCI: hcif disc complete: hdl 0x1, rsn 0x13 I (1168119) GATTS_DEMO: ESP_GATTS_DISCONNECT_EVT, disconnect reason 0x13
What is the actual behavior?
I want to see that it manage to connect.
Steps to reproduce.
- Run the example on the device (ESP32-S3 WROOM from FREENOVE)
- In Windows Settings (add bluettoth device window), click on the : ESP_GATTS_DEMO
…
Debug Logs.
I (303789) GATTS_DEMO: ESP_GATTS_CONNECT_EVT, conn_id 0, remote d8:f8:83:db:c1:2f:
I (303789) GATTS_DEMO: CONNECT_EVT, conn_id 0, remote d8:f8:83:db:c1:2f:
I (303789) GATTS_DEMO: ESP_GATTS_MTU_EVT, MTU 500
I (303799) GATTS_DEMO: ESP_GATTS_MTU_EVT, MTU 500
I (305799) GATTS_DEMO: update connection params status = 16, min_int = 16, max_int = 32,conn_int = 30,latency = 0,
timeout = 400
E (333819) BT_BTM: Device not found
W (333819) BT_HCI: hcif disc complete: hdl 0x1, rsn 0x13
I (333819) GATTS_DEMO: ESP_GATTS_DISCONNECT_EVT, disconnect reason 0x13
I (1138649) GATTS_DEMO: ESP_GATTS_CONNECT_EVT, conn_id 0, remote d8:f8:83:db:c1:2f:
I (1138649) GATTS_DEMO: CONNECT_EVT, conn_id 0, remote d8:f8:83:db:c1:2f:
I (1138649) GATTS_DEMO: ESP_GATTS_MTU_EVT, MTU 500
I (1138659) GATTS_DEMO: ESP_GATTS_MTU_EVT, MTU 500
I (1140669) GATTS_DEMO: update connection params status = 16, min_int = 16, max_int = 32,conn_int = 30,latency = 0, timeout = 400
E (1168119) BT_BTM: Device not found
W (1168119) BT_HCI: hcif disc complete: hdl 0x1, rsn 0x13
I (1168119) GATTS_DEMO: ESP_GATTS_DISCONNECT_EVT, disconnect reason 0x13
More Information.
No response
About this issue
- Original URL
- State: closed
- Created 7 months ago
- Comments: 29
OK, now it works for me. I just do this:
esp_ble_gatts_send_indicate(last_gatts_if, 0, gl_profile_tab[PROFILE_A_APP_ID].char_handle, strlen(notify_data), (uint8_t *) notify_data, false);Thank you very much.