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

Bluetooth device name not being resolved while scanning #43

Open
palande-dev opened this issue Sep 11, 2018 · 3 comments
Open

Bluetooth device name not being resolved while scanning #43

palande-dev opened this issue Sep 11, 2018 · 3 comments

Comments

@palande-dev
Copy link

I am using the observer to scan for nearby BLE devices and seeing a lot of BLE traffic but their device names are always 'None'. There are Apple TVs and plenty BLE devices around which show up in complete local name when I use other tools
Any suggestions what can I do to resolve names of devices?
Thanks!

@ukBaz
Copy link

ukBaz commented Sep 11, 2018

I suspect it is because there isn't a scan response being requested.
https://stackoverflow.com/questions/25159222/bluethooth-4-0-scan-response
As the local Name will be added at the end of the scan response data.

This is often referred to as passive and active scanning.
Some more background information at:
http://microchipdeveloper.com/wireless:ble-link-layer-discovery

The seems to be some support for the different scan types.

SCAN_TYPE_PASSIVE = 0x00
SCAN_TYPE_ACTIVE = 0x01

Which platform are you on?

@palande-dev
Copy link
Author

I am using the repo as it is without any changes, and isn't the scan type set to ACTIVE in here by default?

Which platform are you on?
I am on ubuntu 16.04

@WayneKeenan
Copy link
Contributor

WayneKeenan commented Sep 11, 2018

It’s late and I’ve just done a whole day followed by a 3 hour drive, so this might be best ignored...

Setting the scan type may just be informative to the BLE stack

Performing the actual scan response parsing and update of the data struct needs to be handheld by Bleson in response to an HCI event, I don’t recall Bleson doing this but I’m too tired to check at the moment, sorry.

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

3 participants