<?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>How to have a couple hundreds of nrf51822 using S130 advertise at the same time</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4039/how-to-have-a-couple-hundreds-of-nrf51822-using-s130-advertise-at-the-same-time</link><description>Hi all, 
 Short version: I want to make 200 devices using nrf51822 (and S130 v0.5.0-1alpha), all advertising/scanning at the same time, and process RSSI readings for proximity estimation. I&amp;#39;m only interested in short range proximity (&amp;lt;3m), but I&amp;#39;d like</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Oct 2014 18:24:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4039/how-to-have-a-couple-hundreds-of-nrf51822-using-s130-advertise-at-the-same-time" /><item><title>RE: How to have a couple hundreds of nrf51822 using S130 advertise at the same time</title><link>https://devzone.nordicsemi.com/thread/14492?ContentTypeID=1</link><pubDate>Fri, 10 Oct 2014 18:24:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9275c314-59f2-4b0e-a76b-7b54fbb436d4</guid><dc:creator>Philippe Laulheret</dc:creator><description>&lt;p&gt;Thanks! That&amp;#39;s encouraging.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to have a couple hundreds of nrf51822 using S130 advertise at the same time</title><link>https://devzone.nordicsemi.com/thread/14491?ContentTypeID=1</link><pubDate>Fri, 10 Oct 2014 18:14:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:954991ab-362c-4ef5-9ef1-e2305e51e587</guid><dc:creator>John</dc:creator><description>&lt;p&gt;Hi Philippe,&lt;/p&gt;
&lt;p&gt;For the first 30 seconds after the device powers up or comes out of reset we advertise every 20mS. After 30 seconds we slow the advertising rate to 1285mS.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to have a couple hundreds of nrf51822 using S130 advertise at the same time</title><link>https://devzone.nordicsemi.com/thread/14490?ContentTypeID=1</link><pubDate>Fri, 10 Oct 2014 17:59:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:233b48c2-8bb4-4ab7-8012-a245831d04e8</guid><dc:creator>Philippe Laulheret</dc:creator><description>&lt;p&gt;Thanks John for sharing your experience, do you remember what advertisement interval you were using (as the more packet you send the more likely you&amp;#39;ll get collision)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to have a couple hundreds of nrf51822 using S130 advertise at the same time</title><link>https://devzone.nordicsemi.com/thread/14488?ContentTypeID=1</link><pubDate>Fri, 10 Oct 2014 17:57:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e33bb78-9385-4f34-ae11-7c4d16bbd12d</guid><dc:creator>Philippe Laulheret</dc:creator><description>&lt;p&gt;Thank Mik for your insight. I believe you have a factor 1/1000 off (as the advertisement duration is in us rather than ms). As a back of the napkin approximation it&amp;#39;s a good start I guess, there are a few extra details to add for a more accurate model (the three channels for adv, the 3 messages per adv interval, the (uniformly?) random duration between two messages, etc.). Unfortunately probabilities have never been my forte !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to have a couple hundreds of nrf51822 using S130 advertise at the same time</title><link>https://devzone.nordicsemi.com/thread/14489?ContentTypeID=1</link><pubDate>Fri, 10 Oct 2014 13:30:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5caabf74-c2cb-477e-9203-7ceec70e5bfa</guid><dc:creator>John</dc:creator><description>&lt;p&gt;I am not an expert with the BLE specification, but I believe there are random back off times in the case of a collision.&lt;/p&gt;
&lt;p&gt;During our first product development we wanted to stress test our mobile app to make sure it could keep up with lots of our devices in a small space all advertising at the same time. We ran that up to 80-100 devices without seeing a problem with collisions preventing us from seeing the advertising packets and connecting to devices.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to have a couple hundreds of nrf51822 using S130 advertise at the same time</title><link>https://devzone.nordicsemi.com/thread/14487?ContentTypeID=1</link><pubDate>Thu, 09 Oct 2014 20:24:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ef43b52-5d27-4abd-99c4-71e89dd87847</guid><dc:creator>Michael Lamming</dc:creator><description>&lt;p&gt;Phillippe,&lt;/p&gt;
&lt;p&gt;I needed to figure out the same thing.  It&amp;#39;s one of those nasty exponential effects.  To first approximation it&amp;#39;s ethernet math from &lt;a href="http://dl.acm.org/citation.cfm?doid=360248.360253"&gt;Metcalfe and Boggs&lt;/a&gt;. Being a bear of little brain, my back-of-the-envelope estimates, based on an overly simplistic model (please correct me) were as follows:&lt;/p&gt;
&lt;p&gt;Assume a single adv. channel rather than 3.
Assume an advertising packet fills the ether for 300uS every 10 seconds-ish.
Assume that there is no collusion between nodes, and no other traffic.&lt;/p&gt;
&lt;p&gt;Then the probability of node A colliding with node B is 300/(10.24*1000) ~ 3%.&lt;/p&gt;
&lt;p&gt;The probability that A does not collide with B is (1 -(300/(10.24*1000))) ~ 97%&lt;/p&gt;
&lt;p&gt;If there are 20 nodes, then the probability that nobody collides with A is (1 -(300/(10.24*1000))) ^ 19 ~ 57%    So you were probably experiencing no worse than a 50/50 chance of a collision, which seems like an engineers fighting chance.&lt;/p&gt;
&lt;p&gt;If there are 200 nodes then it gets a lot worse: ~ 0.3%  (Snowball&amp;#39;s chance in hell)&lt;/p&gt;
&lt;p&gt;The probability that &lt;em&gt;all&lt;/em&gt; 200 nodes don&amp;#39;t collide is some binomial theorem calculation which makes it all a lot worse still.&lt;/p&gt;
&lt;p&gt;And then of course, every collision results in a re-transmit and you get a packet storm, so everyone has to back off and wait.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m sure that the BLE designers figured the model out, and have much better answers than these.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>