<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Missing advertisements in Android version of nRF Connect</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71833/missing-advertisements-in-android-version-of-nrf-connect</link><description>I&amp;#39;ve created a peripheral that is advertising about every 320ms but am seeing less than half of those packets in nRF Connect on my Android mobile (configured to run in low latency mode; Galaxy S20+, nRF Connect v4.24.3). I&amp;#39;ve attached two screenshots</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 Mar 2021 15:09:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71833/missing-advertisements-in-android-version-of-nrf-connect" /><item><title>RE: Missing advertisements in Android version of nRF Connect</title><link>https://devzone.nordicsemi.com/thread/297252?ContentTypeID=1</link><pubDate>Tue, 02 Mar 2021 15:09:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35132e2d-cf36-489f-a852-b1e2f7f73872</guid><dc:creator>adam.schneider</dc:creator><description>&lt;p&gt;I&amp;#39;ve seen similar results on both Galaxy S20+ and Pixel 3a...so Samsung and Google mobiles.&amp;nbsp; Where is the best place to learn about different manufacturer&amp;nbsp;battery optimizations?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Missing advertisements in Android version of nRF Connect</title><link>https://devzone.nordicsemi.com/thread/297240?ContentTypeID=1</link><pubDate>Tue, 02 Mar 2021 14:43:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d9d291f-dc74-4bf6-8362-4bc30bc92038</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;Did you try a different phone? I imagine it may vary depending on controller manufacturer, as a result of e.g. battery optimization.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Missing advertisements in Android version of nRF Connect</title><link>https://devzone.nordicsemi.com/thread/297236?ContentTypeID=1</link><pubDate>Tue, 02 Mar 2021 14:39:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9913fad-0d42-47f0-bc77-9c3d27aed35f</guid><dc:creator>adam.schneider</dc:creator><description>&lt;p&gt;Thank you for the comments Aleksander.&amp;nbsp; Here is an example I captured from inside an RF chamber, with WiFi off on the mobile. In the 20 seconds previous to this, 5-6 packets were missed in each of the 10 second (30 advertisements) segments. 70-80% is much better, but in an RF chamber I&amp;#39;d expect much closer to 100%.&lt;/p&gt;
&lt;p&gt;I am fairly confident the peripheral i was observing was advertising during the big gap shown from testing I&amp;#39;ve done with a commercial BLE protocol analyzer before using the same peripheral/code (i didn&amp;#39;t have it running for this test though). With the commercial analyzer, it has been able to capture 99% of all advertisements on all advertising channels.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Capture97.JPG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Missing advertisements in Android version of nRF Connect</title><link>https://devzone.nordicsemi.com/thread/296804?ContentTypeID=1</link><pubDate>Mon, 01 Mar 2021 10:43:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:baeac0cf-1839-4f98-a1bc-97af090535fe</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;Hello &lt;a href="https://devzone.nordicsemi.com/members/adam.schneider"&gt;adam.schneider&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;With &amp;quot;Low latency&amp;quot; scanning mode the app indeed&amp;nbsp;using highest duty cycle. It&amp;#39;s described here:&lt;br /&gt;&lt;a href="https://developer.android.com/reference/android/bluetooth/le/ScanSettings#SCAN_MODE_LOW_LATENCY"&gt;ScanSettings &amp;nbsp;|&amp;nbsp; Android Developers&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You may compare how the different modes work. In balanced, the app scans for 2 sec every 5 sec window. With low battery mode it&amp;#39;s 0.5 sec every 5 sec. You may see it here:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/what-to-keep-in-mind-when-developing-your-ble-andr"&gt;What to keep in mind when developing your BLE Android app - Blogs - Nordic Blog - Nordic DevZone (nordicsemi.com)&lt;/a&gt;&amp;nbsp;in chapter 2.2.1 of the PDF document (which is very old, but still recommend).&lt;/p&gt;
&lt;p&gt;nRF Connect logs all packets it receives, so it&amp;#39;s the Android OS&amp;nbsp;or the controller that skips some. Perhaps you have other devices advertising, or Wi-Fi that create 2.4 GHz noise. When I test it with a DFU (which advertises with 7.5 ms), the app was receiving I&amp;#39;d say ~90+%.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Missing advertisements in Android version of nRF Connect</title><link>https://devzone.nordicsemi.com/thread/296652?ContentTypeID=1</link><pubDate>Fri, 26 Feb 2021 19:38:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0cc7e3d1-2cda-4b68-9877-01c5ba6be316</guid><dc:creator>adam.schneider</dc:creator><description>&lt;p&gt;Hung (or other forum readers),&lt;/p&gt;
&lt;p&gt;I guess one of my questions is whether nRF Connect on Android has been optimized to try and capture every single advertisement possible? I&amp;#39;ve been assuming that nRF Connect is representative of a best case mobile app on Android with respect to capturing as many advertisements as possible and want to make sure that is true.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m struggling to believe that over a 30s period, the Android OS and/or mobile radio itself is missing 50% of advertisements (or not letting them get to the application layer)...&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Missing advertisements in Android version of nRF Connect</title><link>https://devzone.nordicsemi.com/thread/296632?ContentTypeID=1</link><pubDate>Fri, 26 Feb 2021 17:31:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bf873b7-ba2a-43c5-92f5-bac48be68e1b</guid><dc:creator>adam.schneider</dc:creator><description>&lt;p&gt;Hung,&lt;/p&gt;
&lt;p&gt;I did some testing in an RF chamber with WiFi off with two different phones, Galaxy S30+ and Pixel 3a and the results were better but still nowhere near 90+%.&amp;nbsp; It&amp;#39;s not super easy to tell with the nRF app how many packets were received (enhancement request for the mobile app team!?) but I&amp;#39;d guess around 50-60%.&amp;nbsp; I&amp;#39;m hoping this isn&amp;#39;t indicative of Android and mobiles overall...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Missing advertisements in Android version of nRF Connect</title><link>https://devzone.nordicsemi.com/thread/295820?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2021 12:41:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c929e4e4-f2aa-4da9-8ce1-ec876c9b1e64</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;I think the easiest way is to advertise in short interval (7.5ms) and check if there is any period that you don&amp;#39;t see any advertising packet, don&amp;#39;t forget to test it in a RF chamber.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Missing advertisements in Android version of nRF Connect</title><link>https://devzone.nordicsemi.com/thread/295687?ContentTypeID=1</link><pubDate>Mon, 22 Feb 2021 16:50:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e193f02-513a-4ec5-86b1-775ebfb94288</guid><dc:creator>adam.schneider</dc:creator><description>&lt;p&gt;Is there a way to know if the phone/OS don&amp;#39;t allow BLE scanning at 100% duty cycle?&amp;nbsp; I&amp;#39;m not well versed in Android OS options regarding BLE.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll see if I can get access to an RF chamber with my prototype peripheral.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Missing advertisements in Android version of nRF Connect</title><link>https://devzone.nordicsemi.com/thread/295685?ContentTypeID=1</link><pubDate>Mon, 22 Feb 2021 16:46:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30950e5c-1edf-4ff6-8c23-beece94d11cf</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Adam,&amp;nbsp;&lt;br /&gt;Sorry that I didn&amp;#39;t know about this latency mode. It&amp;#39;s the default mode on the nRF Connect.&amp;nbsp;&lt;br /&gt;It could be that the phone doesn&amp;#39;t allow BLE scanning at 100% duty cycle to save power. You can also try to test turn off Wifi if it can improve the performance.&amp;nbsp;&lt;br /&gt;Interference could also be an issue as well. Please try to test in a RF chamber ( e.g your home microwave oven). I did a test in my microwave and the phone captured 30/30 packets in 10s compare to only 15-20 packets in 10s when testing outside.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Missing advertisements in Android version of nRF Connect</title><link>https://devzone.nordicsemi.com/thread/295633?ContentTypeID=1</link><pubDate>Mon, 22 Feb 2021 14:23:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a310f433-7088-4cec-8b48-f11f29d32ade</guid><dc:creator>adam.schneider</dc:creator><description>&lt;p&gt;&amp;quot;low latency mode&amp;quot; is the scanning mode option that nRF Connect has under the Scanner settings (along with enable continuous scan). It&amp;#39;s my understanding that these settings will allow the app to put the device in scanning mode at or near 100%.&lt;/p&gt;
&lt;p&gt;Yes, I&amp;#39;ve confirmed the device is advertising at the expected rate.&lt;/p&gt;
&lt;p&gt;Yes, all 3 channels and sniffer confirms this.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve seen it on multiple phones. Is there a way to log or check to see when the phone enters/exits scanning?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Missing advertisements in Android version of nRF Connect</title><link>https://devzone.nordicsemi.com/thread/295595?ContentTypeID=1</link><pubDate>Mon, 22 Feb 2021 13:33:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5e5208d-6992-4342-a16e-fb71894b6a34</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Adam,&amp;nbsp;&lt;br /&gt;Could you explain a little bit more on the &amp;quot;Low latency mode&amp;quot; you used ? If you turn that off would the performance get better ?&amp;nbsp;&lt;br /&gt;I would suggest to verify that the device actually advertises with the expected interval using &lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Sniffer-for-Bluetooth-LE"&gt;a sniffer.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Did you advertise in all three channels ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you checked with other phones&amp;nbsp; ?&amp;nbsp; I suspect that the phone may not scanning in 100% duty cycle.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>