-
Notifications
You must be signed in to change notification settings - Fork 6.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
Bluetooth: Cannot connect if extended advertising is enabled in prj.conf
#35596
Comments
Update: Created a simplified Gist. Our real program is in C++ but the Gist in C also reproduces the error so C++ support is not responsible. |
prj.conf
prj.conf
Support for extended advertising needs to be enabled in the zephyr controller. |
@chrisswinchatt-arm if you objective is to come up with a power consumption comparison between different RTOS, may I point out that you need to take into account not only Bluetooth, but also things like other peripherals (the UART in particular) as well as the behavior of the application itself. |
Did some digging because it was weird that only creating connections was affected, but advertising and scanning worked fine. Turns out the feature bit checking was inconsistent, I've created a fix for it. |
Thanks for speedy response all. |
Describe the bug
A Zephyr program compiled with the following in
prj.conf
:Calling
bt_conn_le_create
after discovering a peer returns -5 (-EIO
) when compiled with the above config. Removing or setting ton
theCONFIG_BT_EXT_ADV
option and recompiling corrects the behaviour.bt_conn_le_create
To Reproduce
Steps to reproduce the behavior:
nucleo_wb55rg
,disco_l475_iot1
andnrf52840_mdk
; which is central and which is peripheral doesn't matterExpected behavior
It should be possible for a single program to support both connect & periodic sync.
Impact
Showstopper
Logs and console output
Environment (please complete the following information):
Additional context
N/A
The text was updated successfully, but these errors were encountered: