<?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>Example for setting up BLE long range mesh network between several nodes</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38630/example-for-setting-up-ble-long-range-mesh-network-between-several-nodes</link><description>I am starting building industrial-grade system which contains several nodes connected via wireless channel. 
 As a wireless protocol I decided to use BLE 5 due to long ranges ( I need nearly 100m indoor) and a good security. 
 
 Can I use NRF52840 to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 16 Oct 2018 12:42:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38630/example-for-setting-up-ble-long-range-mesh-network-between-several-nodes" /><item><title>RE: Example for setting up BLE long range mesh network between several nodes</title><link>https://devzone.nordicsemi.com/thread/153059?ContentTypeID=1</link><pubDate>Tue, 16 Oct 2018 12:42:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b33a79e3-ad62-4928-821c-69c822525e35</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>[quote user="Rostokus"]NRF_SDH_BLE_GAP_EVENT_LENGTH on central is 2 (2.5ms). Thus Central is able to process requests from all three peripherals within one connection interval. Right?[/quote]
&lt;p&gt;&amp;nbsp;Yes, this is correct. See the softdevice specifications for the S140 v6.1 softdevice here (pg 71):&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-d30ae9c2879049be9bf8834f7acc1611/pastedimage1539693746447v1.png" alt=" " /&gt;&lt;/p&gt;
[quote user="Rostokus"]Is it possible to de-solder SWF and solder UFL instead?[/quote]
&lt;p&gt;&amp;nbsp;Yes, but beware that the UFL antenna is not a switch connector (i.e. if the ANT060 is not connected, then the nRF chip will not be connected to the PCB antenna anymore. Basically, if you do not want to use the PCB antenna at all, you can use the ANT060.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example for setting up BLE long range mesh network between several nodes</title><link>https://devzone.nordicsemi.com/thread/152584?ContentTypeID=1</link><pubDate>Fri, 12 Oct 2018 06:43:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7f66254-410f-4d02-9289-0fde67da23df</guid><dc:creator>Rostokus</dc:creator><description>&lt;p&gt;I have one central and 3 peripherals. SDK v15.2.&amp;nbsp;&lt;br /&gt;Connection intervals are 7.5ms on central and peripherals.&lt;/p&gt;
&lt;p&gt;NRF_SDH_BLE_GAP_EVENT_LENGTH on central is 2 (2.5ms). Thus Central is able to process requests from all three peripherals within one connection interval. Right? &lt;/p&gt;
&lt;p&gt;I am testing at home where only WiFi can interference.&lt;/p&gt;
&lt;p&gt;I have bought ANT060, but it appeared that NRF52840 DVK has SWF connector instead of UFL on antenna. Is it possible to de-solder SWF and solder UFL instead?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example for setting up BLE long range mesh network between several nodes</title><link>https://devzone.nordicsemi.com/thread/152137?ContentTypeID=1</link><pubDate>Tue, 09 Oct 2018 06:23:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c15d5b8-b1b7-4259-ada2-eaa53b1b617e</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;What min &amp;amp; max connection intervals are you using on the central side? If you use a low connection interval, you can most likely expect a latency between 0-100 ms when the dev kits are placed next to each other.&lt;/p&gt;
&lt;p&gt;If you are following the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/ble_sdk_app_multilink.html?cp=4_0_0_4_1_0_2"&gt;infocenter documentation&lt;/a&gt; &amp;amp; testing with the ble_app_blinky on the peripheral side, you may need to lower the min connection interval to decrease the latency:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define MIN_CONN_INTERVAL               MSEC_TO_UNITS(100, UNIT_1_25_MS)        /**&amp;lt; Minimum acceptable connection interval (0.5 seconds). */
#define MAX_CONN_INTERVAL               MSEC_TO_UNITS(200, UNIT_1_25_MS)        /**&amp;lt; Maximum acceptable connection interval (1 second). */&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Are you using sdk v15.2.0?&lt;/p&gt;
&lt;p&gt;This will be independent of the phy you use (e.g. coded, 1 Mbps, 2 Mbps). Are you testing in an environment with a lot of wireless interference by chance? This could lead to increased packet loss, which will impact latency.&lt;/p&gt;
&lt;p&gt;An external antenna could decrease latency, but I would try the fix above instead. I am not sure an external antenna would make a huge difference if the dev kits are right next to each other.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example for setting up BLE long range mesh network between several nodes</title><link>https://devzone.nordicsemi.com/thread/152064?ContentTypeID=1</link><pubDate>Mon, 08 Oct 2018 13:03:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b8ec960-41a0-412c-adee-8db09e8b3ab6</guid><dc:creator>Rostokus</dc:creator><description>&lt;p&gt;I have successfully setup communication between several nodes using the start topology and BLE 5 PHY (1 or 2 Mbps).&lt;/p&gt;
&lt;p&gt;The latency is nearly 50-100ms if NRF52840 DVKs lay on the table one near another.&lt;/p&gt;
&lt;p&gt;If I try to increase the distance, latency increases. For example, if the distance is 2-3m, latency increases to 250-300ms.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Why is it so? I suspect this is caused by retransmission&amp;#39;s due to low single and obstacles.&lt;/p&gt;
&lt;p&gt;If I use external antennas (like &lt;a href="https://www.fanstel.com/buy/ant060"&gt;this&lt;/a&gt;), will it help to keep the latency constant?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example for setting up BLE long range mesh network between several nodes</title><link>https://devzone.nordicsemi.com/thread/149830?ContentTypeID=1</link><pubDate>Fri, 21 Sep 2018 12:21:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d5828c8-b027-48b3-87da-ee05d9030944</guid><dc:creator>Rostokus</dc:creator><description>&lt;p&gt;thanks, &lt;a href="https://devzone.nordicsemi.com/members/bjorn"&gt;Bjorn&lt;/a&gt; and &lt;a href="https://devzone.nordicsemi.com/members/david"&gt;David&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I will try to use multilink approach and see the result before switching PHY&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example for setting up BLE long range mesh network between several nodes</title><link>https://devzone.nordicsemi.com/thread/149464?ContentTypeID=1</link><pubDate>Wed, 19 Sep 2018 13:27:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d96b603-6bc4-49be-91cd-752496af3f40</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;As David said, you can update to coded phy in mesh, but it would most likely not be qualified if you want to use it in an end product. Regarding communication latency, this should be possible.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example for setting up BLE long range mesh network between several nodes</title><link>https://devzone.nordicsemi.com/thread/149375?ContentTypeID=1</link><pubDate>Wed, 19 Sep 2018 09:15:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28bd0b35-9ba3-4995-9d8b-bb831a6b91e3</guid><dc:creator>David Edwin</dc:creator><description>&lt;p&gt;You can switch the RF PHY being used in the nRF Mesh SDK from 1Mbit PHY to the coded PHY used in long range.&lt;br /&gt;This will give you the range some usecases seem to prefer.&lt;/p&gt;
&lt;p&gt;You can look at this older case to enable the &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/29813/change-phy-in-mesh"&gt;Mesh with coded PHY for longer range&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example for setting up BLE long range mesh network between several nodes</title><link>https://devzone.nordicsemi.com/thread/149319?ContentTypeID=1</link><pubDate>Tue, 18 Sep 2018 18:40:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b84d3198-6fe0-464c-a69a-fcd0a99080de</guid><dc:creator>Rostokus</dc:creator><description>[quote userid="25682" url="~/f/nordic-q-a/38630/example-for-setting-up-ble-long-range-mesh-network-between-several-nodes/149207"]Bluetooth Mesh is not based on the Bluetooth 5 stack unfortunately[/quote]
&lt;p&gt;Please elaborate on this. Can we use Bluetooth mesh with conjunction with Bluetooth 5?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.nordicsemi.com/Products/Bluetooth-low-energy/nRF5-SDK-for-Mesh"&gt;www.nordicsemi.com/.../nRF5-SDK-for-Mesh&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example for setting up BLE long range mesh network between several nodes</title><link>https://devzone.nordicsemi.com/thread/149210?ContentTypeID=1</link><pubDate>Tue, 18 Sep 2018 11:45:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a681afa3-e72f-4073-a3fe-539047a2c318</guid><dc:creator>Rostokus</dc:creator><description>[quote userid="25682" url="~/f/nordic-q-a/38630/example-for-setting-up-ble-long-range-mesh-network-between-several-nodes/149207"] You could then send messages from the peripheral nodes to the central node &amp;amp; let the central node relay those messages to all of the sibling nodes for example.[/quote]
&lt;p&gt;that&amp;#39;s a good point, but it will most likely increase the communication latency between peripherals. In my case I would like to achieve up to 100-200ms latency between any nodes. Is it possible with BLE?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example for setting up BLE long range mesh network between several nodes</title><link>https://devzone.nordicsemi.com/thread/149207?ContentTypeID=1</link><pubDate>Tue, 18 Sep 2018 11:40:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe91f04b-d75c-43bb-bcfc-140ab7e4cb8b</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Bluetooth Mesh is not based on the Bluetooth 5 stack unfortunately. You could take a look at the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/ble_sdk_app_multilink.html?cp=4_0_0_4_1_0_2"&gt;multilink example&lt;/a&gt;, where a central node can connect to 8 other peripheral nodes. You could have a long range connection between the central node &amp;amp; each peripheral node. You could then send messages from the peripheral nodes to the central node &amp;amp; let the central node relay those messages to all of the sibling nodes for example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>