<?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>Max of BLE devices simultaneously detected by a Smartphone in Central mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46237/max-of-ble-devices-simultaneously-detected-by-a-smartphone-in-central-mode</link><description>I would like to know how to compute or optimize the maximum number of BLE device (in advertisement mode) that can be detected by a Scanner (Smartphone app). 
 I can not find any answer of the maximum number of devices detected in the &amp;quot;same time&amp;quot; ? is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 16 Apr 2019 10:10:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46237/max-of-ble-devices-simultaneously-detected-by-a-smartphone-in-central-mode" /><item><title>RE: Max of BLE devices simultaneously detected by a Smartphone in Central mode</title><link>https://devzone.nordicsemi.com/thread/182317?ContentTypeID=1</link><pubDate>Tue, 16 Apr 2019 10:10:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:713c8289-86e0-4dbc-a98f-287ff1e52150</guid><dc:creator>Fred</dc:creator><description>&lt;p&gt;Increasing the advertising interval indeed gives more &amp;#39;room&amp;#39; for&amp;nbsp;devices. Theoretically the devices will be detected more slowly because a peripheral only sends 3 advertising packets (one on each advertisng channel) shortly after eachother and will keep quiet the rest of the advertising interval&amp;nbsp;but also will switch-off its radio. But in practice it might just as well give better results because the probability of packets colliding is reduced.&lt;/p&gt;
&lt;p&gt;For a device to be &amp;#39;connectable&amp;#39; it listens right after sending a advertising packet to allow for a scanner to respond. This is a very short period (Nordic&amp;#39;s &lt;a href="https://devzone.nordicsemi.com/power/" rel="noopener noreferrer" target="_blank"&gt;online power profiler&lt;/a&gt; gives a nice insight into the associated timing).&lt;/p&gt;
&lt;p&gt;Since a &amp;#39;connectable&amp;#39; device is only listening&amp;nbsp;(and thus takes no &amp;#39;air time&amp;#39; during this period), it has no effect on its abbility to be detected.&lt;/p&gt;
&lt;p&gt;Shortening the advertising packet (i.e. the payload) is of course better because it shortens the advertising packet itsel and thereby the air-time. Playing around with the mentioned online profiler gives a good idea I think.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Max of BLE devices simultaneously detected by a Smartphone in Central mode</title><link>https://devzone.nordicsemi.com/thread/182259?ContentTypeID=1</link><pubDate>Tue, 16 Apr 2019 07:35:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5c3f2c8-f61e-4d5f-98d3-dc6f8df02d6c</guid><dc:creator>fvisticot</dc:creator><description>&lt;p&gt;Tx for this quick reply.&lt;/p&gt;
&lt;p&gt;If I understand:&lt;/p&gt;
&lt;p&gt;- If I set an advertising interval of 100ms, devices will be detected faster BUT available &amp;quot;Air time&amp;quot; will be reduce&lt;/p&gt;
&lt;p&gt;- If i set an advertising interval of 500ms, devices will be detected slowly BUT more &amp;quot;Air time&amp;quot; for other devices&lt;/p&gt;
&lt;p&gt;In addition and to allow more &amp;quot;Air time&amp;quot; and more &amp;quot;possible&amp;quot; detection by the smartphone:&lt;/p&gt;
&lt;p&gt;- Is it better to be in &amp;quot;Broadcast mode&amp;quot; on the device size ?&lt;/p&gt;
&lt;p&gt;- Is it better to be in &amp;quot;Non connectable mode&amp;quot; on the device size ?&lt;/p&gt;
&lt;p&gt;- Is it better to reduce the advertising message ?&lt;/p&gt;
&lt;p&gt;Is it exact ? Can you please advice ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Max of BLE devices simultaneously detected by a Smartphone in Central mode</title><link>https://devzone.nordicsemi.com/thread/182229?ContentTypeID=1</link><pubDate>Tue, 16 Apr 2019 05:44:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4695ffe8-227f-4907-8de3-1f5c266bf26f</guid><dc:creator>Fred</dc:creator><description>&lt;p&gt;In the BLE specification there is&amp;nbsp;no&amp;nbsp;maximum number for advertising peripherals. However, obviously there are some practical limitations. The first is the available air-time; normally an advertising peripheral will transmit consecutively on the 3 advertising channels and occupy a single channel for approximately 0.5 ms (max. payload and connectable advertising packet). If all the peripherals in the area would be perfectly synchronized (which they are obviously not in most cases), have the same advertising interval of 10 seconds (BLE spec. maximum) and the scanner would be configured to scan that whole second on that specific channel, then there would be &amp;lsquo;room&amp;rsquo; for 10000/0.5 = 20000 peripherals.&lt;br /&gt;However, in practice there are all kinds of other factors:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The peripherals are not synchronised. To overcome this, there is a randomized 10 ms delay after each advertising interval to create a higher probability of detection.&lt;/li&gt;
&lt;li&gt;The scanner in most mobile devices scans on all channels consecutively to be more robust against interference.&lt;/li&gt;
&lt;li&gt;Peripherals can have different,&amp;nbsp;shorter advertising intervals.&lt;/li&gt;
&lt;li&gt;Processing of received IDs of peripherals in the mobile device can be a bottleneck.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;As such, it is more a matter of probability than of a limited number of peripherals: event if the number is really high, in the long run, all advertising peripherals will be detected, but it can take a while. So the practical limitation is how long your system is allowed to wait for the peripherals to be detected. But lowering the advertising interval at the peripheral side will certainly help to reduce the probability of collision.&lt;/p&gt;
&lt;p&gt;As for letting the peripheral know that it has been detected: that is only possible when the scanner would connect and have the peripheral disconnect again. In BLE this can be done really quickly (probably well within 100 ms), so that would be the way to go.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>