-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESP32-D0WD-V3 doesn't send back SCAN_RESP packets. (IDFGH-9277) #10660
Comments
ESP-IDF versions before V3.3 are already End of Life. could you please use the latest release branch to test? https://github.com/espressif/esp-idf/blob/master/SUPPORT_POLICY.md |
@xiewenxiang, the bug report here is based on a fresh install of VSCode/ESPIDF and the gatts table create demo it offered me. Is there a newer version thaמ a fresh install? How do I upgrade to a newer ESPIDF version in VSCode? Here is a log of my build. It may give you information of the version I got from the fresh install.
|
@zapta It doesn't look like Espressif IDF v1.5.1. Can you provide the exact commit information for ESP-IDF? Or provide the app.bin file you compiled. |
@xiewenxiang , below is a zip file with the .bin file I found in my build directory. You can also find a complete snapshot of my project, including all the build files here https://github.com/zapta/espidf_scan_resp If there is a way to print the version information of my ESPIDF or to upgrade my VSCode ESPIDF extension please let me know. |
@zapta |
Thanks @xiewenxiang, I will at your results and try to identify differences in the configurations. Will also try to order ESP32 modules from other sources to compare. Is there a free viewer to look at the capture file you sent? I am using wireshark which is free but am not sure if it can open those files. |
Thanks @xiewenxiang. I will try to debug it here. Can you give me a hint where the SCAN_REQ is handled in the ESP32 Bluddroid stack? E.g. where I can breakpoint and see if it arrived or not and where the decision to send back the SCAN_RSP is done. I looked at the code and found events and function related to scan rsp but there are all for BLE 5.0 which is not enabled for the ESP32. https://github.com/espressif/esp-idf/tree/master/components/bt/host/bluedroid |
Hi @xiewenxiang, I tried the Nimble example as is and getting the same results. https://github.com/espressif/esp-idf/tree/master/examples/bluetooth/nimble/bleprph . This is the module that doesn't work https://www.amazon.com/gp/product/B07BK435ZW (the ones I got from amazon look exactly the except that they don't have the espressif logo on the wroom module as shown in the picture below). Can I mail you one or two of those modules so you can try to replicate it on your side? It seems that the adv resp is sent by the ble controller logic which is a closed code so I debug it. |
@zapta I have been trying to work out a similar problem that was exhibited with a ESP32-D0WD-V3 but worked fine with ESP32-D0WDQ6 chip. Interestingly I am having problems with exactly the same type of "D1 Mini" style ESP32 board. |
i have actualy the same problem and there is no clue i can find on internet ,D0WDQ6 work perfectly but D0WD-V3 wont work with ble |
Adding another case to the thread, ESP32-D0WD-V3 chip fails and ESP32-D0WDQ6(rev1) works as expected. Simple arduino app for emulating a PC keyboard using the https://github.com/T-vK/ESP32-BLE-Keyboard library. |
another case of ESP32-D0WD-V3 failing to connect with my ps5 dual sense controller via bluetooth but other esp32's worked |
@soufiane707 |
Answers checklist.
IDF version.
Espressif IDF v1.5.1
Operating System used.
Windows
How did you build your project?
VS Code IDE
If you are using Windows, please specify command line type.
None
Development Kit.
ESP32 WROOM boards
Power Supply used.
USB
What is the expected behavior?
Device responds to BLE SCAN_REQ requests, when using the Espressif gatts_table_creat_demo.c example.
What is the actual behavior?
ESP32-D0WDQ6 (revision v1.0) works as expected. ESP32-D0WD-V3 (revision v3.0) does not respond to BLE SCAN_REQ requests. I am reporting here using your gatts_table_creat_demo.c example but experience the same issue with other BLE programs.
Attached are screen shots and packet captures files from wireshark.
wireshark_ packets.zip
Steps to reproduce.
With the ESP32-D0WDQ6 (revision v1.0) device I do get the SCAN_REQ (good). With the ESP32-D0WD-V3 (revision v3.0) I don't.
Debug Logs.
More Information.
The text was updated successfully, but these errors were encountered: