-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
samples/bluetooth/periphera bluez bluetoothctl connect error. iOS low security state. esp32c3 #84182
Comments
I think these two issues have similarities, and it needs to be explained that nrf52840 works properly.These two issues are holding my product back, I can help in any way I am able.. |
In addition, Android iOS is normal. The difference is that Android has been upgraded to L4 security level, while iOS remains at L1. Android requests the pairing code and raises the security level, iOS does not request the pairing code. Looking at it this way, iOS is also not working properly, it's just not failing to connect. |
@zhang-wenchao, please, fetch latest main and check again. It should be working already. PR #80712 automatically fixed the issue after having |
I'm still having issues with my iOS device. to keep it consistent with you, I also changed to esp32c3-devkitm samples/bluetooth/peripheral_sc_only Sorry, I don't know how to log on iOS. iOS:
|
This example bluez works fine, Linux connection is successful and the security level is increased. there are still problems with ios. although it can connect, the security level is not improved. samples/bluetooth/periphera Arch Linux:
iOS:
|
Now the problem mainly lies in iOS. both examples Android and Linux are no problem. I see you don't have an iOS device, I can help you test it if possible. |
@zhang-wenchao @sylvioalves FYI, there are some changes coming to the ECC Kconfig options, however that shouldn't necessitate any changes, unless you've been explicitly setting the |
@zhang-wenchao I got myself an iPad.. was able to reproduce: Bluetooth initialized
Advertising successfully started
Connected 4A:D7:FB:A1:B1:5E (random)
Passkey for 4A:D7:FB:A1:B1:5E (random): 307082
[00:00:46.018,000] <wrn> net_buf: Timeout discarded. No blocking in syswq
[00:00:57.472,000] <wrn> bt_smp: Unexpected SMP code 0x08
[00:00:57.472,000] <wrn> bt_smp: The in-progress pairing has been deleted!
Pairing Failed (9). Disconnecting.
Security failed: 4A:D7:FB:A1:B1:5E (random) level 1 err (9)
Security changed: 4A:D7:FB:A1:B1:5E (random) level 2
[00:00:57.474,000] <wrn> bt_smp: Unexpected SMP code 0x09
Disconnected from 4A:D7:FB:A1:B1:5E (random), reason 0x05 |
Just to rule out that this isn't the cause, could you try with #84282?
FWIW, this is: #define BT_SMP_CMD_IDENT_INFO 0x08 |
I used the changes from this PR #84282
|
@zhang-wenchao, please, enable |
Confirm this issue is resolved. thanks for your help. |
Describe the bug
Bluetooth connection error.
To Reproduce
Expected behavior
Normal connection
Impact
Bluetooth is not working
Logs and console output
Zephyr
btmon
dmesg
bluetoothctl
Environment (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: