-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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: Shell: Bluetooth scan failed (err -22) in audio_shell after trying to connect to a device by name #78659
Comments
Hi @babrsn! We appreciate you submitting your first issue for our open-source project. 🌟 Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙 |
IIRC the issue here is that the host stopped allowing connection with a timeout when privacy is enabled. A solution could be to use timeout=0 in the connection parameters and then submit a |
Removed the audio label as this has nothing to do with the audio shell (it affects any version of the BT shell) |
Added a timeout for active scans (instead of using the host's scan timeout) in the shell by submitting a k_work that stops the scan after a specified period. Fixes zephyrproject-rtos#78659 Signed-off-by: Babak Arisian <[email protected]>
Added a timeout for active scans (instead of using the host's scan timeout) in the shell by submitting a k_work that stops the scan after a specified period. Fixes zephyrproject-rtos#78659 Signed-off-by: Babak Arisian <[email protected]>
…me in shell Added a timeout for active scans (instead of using the host's scan timeout) in the shell by submitting a k_work that stops the scan after a specified period. Fixes zephyrproject-rtos#78659 Signed-off-by: Babak Arisian <[email protected]> (cherry picked from commit d8c1d4d)
Describe the bug
In audio_shell, after initializing Bluetooth successfully (
bt init
), attempting to connect to a device by name (bt connect-name <device_name>
) fails with the error message:Bluetooth scan failed (err -22)
.To Reproduce
bt init
.bt connect-name <device_name>
.Bluetooth scan failed (err -22)
.Expected behavior
The device should connect successfully without any errors.
Impact
Minor problem in audio shell that prevents connecting to a device by name.
Logs and console output
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: