You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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
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?
The text was updated successfully, but these errors were encountered: