Skip to content

Not discovering "Limited Discoverable" devices in Android #142

@reshmisarma

Description

@reshmisarma

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions