Skip to content
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

gap_inquiry_start from hid_host_demo never has rssi and name #603

Closed
Slion opened this issue Jun 13, 2024 · 5 comments
Closed

gap_inquiry_start from hid_host_demo never has rssi and name #603

Slion opened this issue Jun 13, 2024 · 5 comments

Comments

@Slion
Copy link

Slion commented Jun 13, 2024

Pico W SDK 1.5.1

I ported the inquiry from a2dp_source_demo to hid_host_demo and it does find some devices but weirdly none have names or rssi like they do in a2dp_source_demo.
Any tips?

@mringwal
Copy link
Member

There are three levels of inquiry response. The basic one does have neither name nor rssi. Please check packet log.
Maybe you need to enable higher levels with: hci_set_inquiry_mode(INQUIRY_MODE_RSSI_AND_EIR)
See gap_inquiry which also stores device addresses in a list and does a remote name query if needed.

@Slion
Copy link
Author

Slion commented Jun 14, 2024

Maybe you need to enable higher levels with: hci_set_inquiry_mode(INQUIRY_MODE_RSSI_AND_EIR)

That's it, that's what the a2dp source demo uses too. It did the trick, getting a lot more names now.
I'll look at gap_inquiry too, thanks for the tips.

@Slion Slion closed this as completed Jun 14, 2024
@Slion
Copy link
Author

Slion commented Jun 15, 2024

See gap_inquiry which also stores device addresses in a list and does a remote name query if needed.

I see now you meant to point me to that inquiry example rather than a function 🤦
Just tried it and that works great, could even fetch my Logitech K810 name using remote name query 🥳

@mringwal
Copy link
Member

Glad you got it working. What project are you working on?

@Slion
Copy link
Author

Slion commented Jun 19, 2024

Glad you got it working.

You got it working, I'm just trying to understand how it works 😁

What project are you working on?

Mostly assessing the Bluetooth HID capabilities of the Pico W for various projects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants