<?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>BLE mesh -flooding, routing</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92282/ble-mesh--flooding-routing</link><description>Hi, 
 I have a particular use case and have been thinking different ways to implement it. 
 Let&amp;#39;s say there are different beacon sensors (static/moving) installed in a big factory/warehouse/building. The straightforward method to collect the data is installing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 26 Sep 2022 13:34:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92282/ble-mesh--flooding-routing" /><item><title>RE: BLE mesh -flooding, routing</title><link>https://devzone.nordicsemi.com/thread/387955?ContentTypeID=1</link><pubDate>Mon, 26 Sep 2022 13:34:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30e926d1-c037-4543-9fff-ca9d1692d840</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I see.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I wish there was a straight forward answer to this, but let&amp;#39;s try to look at some general traits of the different protocols.&lt;/p&gt;
&lt;p&gt;In Bluetooth LE, you have roughly 1.3MBPS of actual throughput under&amp;nbsp;&lt;strong&gt;ideal&lt;/strong&gt; conditions. This will be split between the number of concurrent connections that this device has, in addition to some overhead. So two connections means 1.3MBPS/2, and then take away a little bit, because you have some more headers when you have multiple connections.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Bluetooth Mesh is a flooding network. This means that every message will be repeated multiple times by all other nodes in the network. This makes Bluetooth Mesh ideal for some types of applications, but not all. Applications where you typically have a one-to-many message is ideal, such as a light switch telling many light bulbs to turn on. It is, however, not ideal for many-to-one applications, such as many sensors reporting to one node, which is what you are looking for here. The reason is, as I said, that all nodes will repeat all messages multiple times (2-3, typically).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Compare it to all nodes being a person. If the light switch person yells &amp;quot;ON&amp;quot; to all the light bulb persons, and all the light bulbs then repeats &amp;quot;ON&amp;quot;, they will all pick up this message, and turn on. However, in the opposite case, you have a lot of sensor people yelling their sensor value, you can imagine that you have a lot of data flooding through your network, with a lot higher risk of some getting lost.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The exact limit of the throughput in a mesh network is hard to say exactly. It depends on the number of nodes in the network, as well as the spacing of the nodes (how many nodes are&amp;nbsp;within the radio range of each other), as well as the sampling rate/message rate. Unfortunately, the best way to check is to test with the actual amount of nodes that you suspect you will have in the network.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You said that the sampling rate is roughly every 30 seconds. So that is not an awful lot of throughput per node. But it still depends on whether you imagine having 10 nodes, which will translate to 20 bytes every 3 seconds on average, or if you imagine having 1000 nodes, which would correspond to 20 bytes every 30ms. Note that the throughput in a mesh network is roughly a handful of kbps, instead of 1.3MBPS in a BLE connection.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Again, depending on the density of the sensors, and the range between them, perhaps one thing you could look into is to have the sensors using normal BLE advertisements (beacons), and then have the BLE nodes (N1, N2, N3, ... Nn) be scanners, scanning for the nodes&amp;#39; advertisements. Then you can transfer the data to a gateway using a BLE connection. It may be feasible, but please note that I still don&amp;#39;t know if you are talking about 10&amp;#39;s of sensors, hundreds, thousands or tens of thousands.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE mesh -flooding, routing</title><link>https://devzone.nordicsemi.com/thread/387935?ContentTypeID=1</link><pubDate>Mon, 26 Sep 2022 13:09:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54202c26-3019-4a37-ae36-fe077f09710c</guid><dc:creator>kizhimon</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;Thank you for your reply.&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/92282/ble-mesh--flooding-routing/387925"]In general, what sort of throughput are you looking at? How many sensors are you trying to forward the data from? And what is the sample rate and sample size for each sensor?[/quote]
&lt;p&gt;the sample rate will be just 1 update per 30 seconds.&lt;/p&gt;
&lt;p&gt;sample size will be less than 20 bytes.&lt;/p&gt;
&lt;p&gt;The number of sensors will actually vary.&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/92282/ble-mesh--flooding-routing/387925"]&lt;p&gt;We don&amp;#39;t have any examples that do this out of the box, as far as I know.&amp;nbsp;&lt;/p&gt;
&lt;div class="quote-header"&gt;&lt;/div&gt;&lt;blockquote class="quote"&gt;&lt;div class="quote-content"&gt;&lt;/div&gt;&lt;/blockquote&gt;[/quote]
&lt;p&gt;What will be the best SDK to start with ? (nRF5 SDK/nRF5 SDK for Mesh). I know if I use nRF5 SDK I will have to implement the entire algorithm for routing and other things. I haven&amp;#39;t used&amp;nbsp;&lt;span&gt;nRF5 SDK for Mesh so far and I do not know if it will be the right starting point.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE mesh -flooding, routing</title><link>https://devzone.nordicsemi.com/thread/387925?ContentTypeID=1</link><pubDate>Mon, 26 Sep 2022 12:53:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2feb825c-902b-45d6-92d5-3c62621e016b</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]Is there any already existing model/protocol which I can reuse to implement the above use case.[/quote]
&lt;p&gt;We don&amp;#39;t have any examples that do this out of the box, as far as I know.&amp;nbsp;&lt;/p&gt;
[quote user=""]Does BLE mesh protocol/model help me to implement the above use case ? Could you please share your thoughts/inputs ?[/quote]
&lt;p&gt;Mesh is a possibility, but you will find that it heavily depends on the throughput. Mesh doesn&amp;#39;t have a great throughput.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In general, what sort of throughput are you looking at? How many sensors are you trying to forward the data from? And what is the sample rate and sample size for each sensor?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>