This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF Connect/Android 10 does not pick up extended advertising (Sony Xperia XZ2 Compact)

Hi all,

I upgraded my Sony Xperia XZ2 Compact to Android 10 recently and am no longer able to find BLE5 devices using advertising extensions in nRF Connect (or any other BLE scanner app for that matter). According to nRF Connect's "Device Information" page, extended advertising is supported. Legacy advertising works fine. I tried resetting all network settings and clearing the Bluetooth cache as suggested by Sony Support. I have not yet tried a factory reset. Has anyone else experienced similar issues with Android 10?

This seems like an issue with Android and not any Nordic tools/hardware. I am asking on the DevZone because I'd be hard pressed to find a larger forum consisting of astute BLE developers... If anyone knows of a better forum to ask this kind of question, please let me know, and I'll crosspost.

Best,

Fredrik

  • Update:

    1. I read that you can boot Android in "safe mode". Everything worked fine safe mode, which means one (or more) apps were interfering with BLE.
    2. Uninstalled a bunch of BLE-related apps and rebooted the phone
    3. Scanned for BLE devices from Settings -> Device connection. A few BLE 5 devices showed up, good sign
    4. Re-installed nRF Connect
    5. I still could not spot any BLE5 advertising packets in nRF Connect. Installed a few other BLE scanner apps, and these were now happily showing advertising extensions.
    6. Thinking the problem now lied with nRF Connect, I went into nRF Connect -> settings -> Scanner and started toggling settings. Once I disabled "Offloaded scan batching", nRF Connect started picking up advertising extensions. Re-enabling this setting brings the problem back, so now the issue is reproducible.

    It seems there was more than one issue at play here. Anyway, I think there may be an issue with the "Offloaded scan batching" setting in nRF Connect v4.24.1 on some Android devices.

    (waiting for the nRF Connect team to be notified of this before marking this as solved)

  • Hi Fredrik, 

    I will forward the report to our App team.

    In the meantime could you verify that when the issue happens you still can scan for normal advertising packet and only the extended advertising packets are missing ? 

  • Thanks.

    Yes, normal (legacy) advertising packets are scanned without problems.

  • I got a reply, quoted as follow: 

    When batching is enabled in nRF Connect, it scans with interval 500ms. From my experience a good results are reported when interval is > 5000 ms.

    Although, I cannot confirm that AE would be found using batching even with such long scanning interval.

    For better results (and much greater battery consumption) use interval = 0 (no batching).

    So batch scanning should be disabled. 

  • Got it. Batch scanning is enabled by default on a fresh install -- you should probably change the default then.

Related