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

Not discovering "Limited Discoverable" devices in Android #142

Open
reshmisarma opened this issue Aug 11, 2023 · 0 comments
Open

Not discovering "Limited Discoverable" devices in Android #142

reshmisarma opened this issue Aug 11, 2023 · 0 comments

Comments

@reshmisarma
Copy link

reshmisarma commented Aug 11, 2023

Our app uses the BleScannerCompat library for scanning. The use case is that the Ble peripherals should be able to be discovered and connected even if the app is in background or in lock state. But a particular peripheral(with Limited Discoverable) is not getting discovered in foreground/background/locked state, whereas other peripherals (General Discoverable) are able to connect.
Scan settings are as below:
Mac address is provided as scan filter.
Scan settings are:
ScanSettings.Builder()
.setLegacy(true)
.setScanMode(SCAN_MODE_LOW_LATENCY)
.setUseHardwareBatchingIfSupported(false)
.setUseHardwareFilteringIfSupported(true)
.setReportDelay(4000L)
.build()

The behavior is different in different phone models. Some phone models, mostly OS 11 are able to connect in foreground and background, but not in locked state. Some phone models which are OS 11 and 12 are not even getting paired and connected in foreground.
In all these phone models, the nRF Connect app is working fine with the peripheral.

What is the reason that the BleScannerCompat library is not even discovering the Limited Discoverable peripheral?

@reshmisarma reshmisarma changed the title Not discovering "Limited Discoverable" devices in Android phone in Lock state Not discovering "Limited Discoverable" devices in Android Aug 11, 2023
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

1 participant