-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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-S3 using CONFIG_BT_NIMBLE_HOST_ALLOW_CONNECT_WITH_SCAN (IDFGH-14488) #15258
Comments
I've tried testing this again with esp32-c6, also appears to have issues. It will fail to connect immediately, unlike the s3 which could connect before getting stuck. C6 Async example CONFIG_BT_NIMBLE_HOST_ALLOW_CONNECT_WITH_SCAN=y
C6 Async example CONFIG_BT_NIMBLE_HOST_ALLOW_CONNECT_WITH_SCAN=n
|
Hi @thekurtovic , I tried the sample bleprph and blecent examples in IDF for v5.3.2 on esp32s3. I do see the devices discovered after connection is made. Am attaching a small change i did in blecent example for this ( i.e. start scanning after a connection is made ). Am also attaching sdkconfig on blecent side for your reference. can you please check if default IDF examples work for you or not ? scan_changes.txt Please apply this patch in $IDF_PATH. scan_after_connect.txt , this is the log on blecent side where we can see disc events being received after a successful connection. sdkconfig_blecent.txt blecent sdkconfig for your reference. |
@rahult-github Thanks for confirming that it should work. |
Answers checklist.
IDF version.
5.3.2.241210
Espressif SoC revision.
ESP32-S3 (QFN56) (revision v0.1)
Operating System used.
Windows
How did you build your project?
VS Code IDE
If you are using Windows, please specify command line type.
PowerShell
Development Kit.
ESP32-S3-DevKitC-1
Power Supply used.
USB
What is the expected behavior?
Allow scanning while a connect is in progress when enabling
CONFIG_BT_NIMBLE_HOST_ALLOW_CONNECT_WITH_SCAN
option.What is the actual behavior?
Scanning does not stop, but no new advertisements are received after initiating connection. Scan cannot be stopped or restarted.
Steps to reproduce.
-Test with https://github.com/h2zero/esp-nimble-cpp/tree/master/examples/NimBLE_Async_Client
-Enable CONFIG_BT_NIMBLE_HOST_ALLOW_CONNECT_WITH_SCAN
Debug Logs.
Async example CONFIG_BT_NIMBLE_HOST_ALLOW_CONNECT_WITH_SCAN=y
Async example CONFIG_BT_NIMBLE_HOST_ALLOW_CONNECT_WITH_SCAN=n
More Information.
I'm using NimBLE to handle BLE in my project. https://github.com/h2zero/esp-nimble-cpp
The es32-s3 acts as a central, and will constantly be scanning for peripheral devices. There are 4 peripherals avilable. When a peripheral is found, the esp32-s3 will connect to it, and should continue scanning while the connect operation is in progress. Currently when
CONFIG_BT_NIMBLE_HOST_ALLOW_CONNECT_WITH_SCAN
is enabled, the esp32-s3 will only get one advertisement, attempt connecting, and then no new advertisements are received. If I go back and disable the config option, everything works fine.I'd like to get this option working to test initiating multiple connections at once.
The text was updated successfully, but these errors were encountered: