<?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>Mesh Long Range mode relaying</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51804/mesh-long-range-mode-relaying</link><description>Hi, I am using mesh sdk 3.20 and nrf52840. 
 I am using 3 nodes for testing. One generic on off client and two generic on off servers. 
 I believe that I have managed to get the devices into long range mode by changing the scanner and default broadcast</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 06 Sep 2019 08:54:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51804/mesh-long-range-mode-relaying" /><item><title>RE: Mesh Long Range mode relaying</title><link>https://devzone.nordicsemi.com/thread/208414?ContentTypeID=1</link><pubDate>Fri, 06 Sep 2019 08:54:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6005be86-4598-4b41-9116-aaf5e6ef45be</guid><dc:creator>Chris_Dev</dc:creator><description>&lt;p&gt;Ah okay, thanks Edvin, that clears it up:)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh Long Range mode relaying</title><link>https://devzone.nordicsemi.com/thread/208411?ContentTypeID=1</link><pubDate>Fri, 06 Sep 2019 08:46:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5acbfaa5-3030-42d4-92e7-248ddb194deb</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Well, I can&amp;#39;t tell what your application is doing, but if they are transmitting on Long Range (LR), and you receive the message, it means that the radio is listening in LR as well. Since there is only one radio, and you are able to pick up the message even if it is relayed, it means that it is also picked up and relayed on LR. The reasoning behind this is that Bluetooth Mesh uses the radio ~100% of the time, so it is not possible to switch between LR and 1MBPS, like you can in BLE, where you only use the radio in short bursts.&lt;/p&gt;
&lt;p&gt;So:&lt;/p&gt;
&lt;p&gt;1: Yes.&lt;/p&gt;
&lt;p&gt;2: You can e.g. check the TTL (time to live) on the received message. This is a counter that is decremented by one in each relay. If you set the default TTL in main.c by using&amp;nbsp;access_default_ttl_set(5); (not necessarily 5, but whatever value you want, just so you know what it is). Then, on the receiving node, you can add this line in&amp;nbsp;mesh_msg_handle() in access.c:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;__LOG(LOG_SRC_ACCESS, LOG_LEVEL_INFO, &amp;quot;TTL: %d\n&amp;quot;, p_evt-&amp;gt;ttl);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;remember to add the LOG_SRC_ACCESS in __LOG_INIT() in main.c:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;__LOG_INIT(LOG_SRC_APP | LOG_SRC_ACCESS | LOG_SRC_FRIEND, LOG_LEVEL_DBG1, LOG_CALLBACK_DEFAULT);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And you should be able to see the TTL in the log for the receiver. If it is 5 (the same as you set on the transmitter), it means that the message is received directly, but if it is 4, it means that it is relayed once, and not a direct message from the source.&lt;/p&gt;
&lt;p&gt;3: You can change the default number of repeated relays and the number of original message repeats in nrf_mesh_config_core.h. Search for&amp;nbsp;&lt;/p&gt;
&lt;p&gt;CORE_TX_REPEAT_ORIGINATOR_DEFAULT&lt;/p&gt;
&lt;p&gt;and&amp;nbsp;&lt;/p&gt;
&lt;p&gt;CORE_TX_REPEAT_RELAY_DEFAULT.&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: Mesh Long Range mode relaying</title><link>https://devzone.nordicsemi.com/thread/208302?ContentTypeID=1</link><pubDate>Thu, 05 Sep 2019 16:28:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:948ece40-4db6-4664-bf6b-3da991582f6c</guid><dc:creator>Chris_Dev</dc:creator><description>&lt;p&gt;I did a test now with changing the transmit power of the client to - 30dbm, made sure the node cannot interact with both servers at the same time. I can see that the relaying is working... But not reliably. So both server nodes are transmitting at 8dbm,with a 3 meter distance in between. I guess the only way to make it more reliable is to ramp up the retransmit counts, or/and reducing message caching? That could cause a lot of traffic though in a large network though.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is there perhaps any documentation I can read which explains how the mesh stack performs relaying?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh Long Range mode relaying</title><link>https://devzone.nordicsemi.com/thread/208283?ContentTypeID=1</link><pubDate>Thu, 05 Sep 2019 15:04:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6eeae645-215a-4ee6-a899-4cc36fd4f40c</guid><dc:creator>Chris_Dev</dc:creator><description>&lt;p&gt;From this post:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/29813/change-phy-in-mesh/118379#118379"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/29813/change-phy-in-mesh/118379#118379&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Answer given by Hung Bui&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh Long Range mode relaying</title><link>https://devzone.nordicsemi.com/thread/208282?ContentTypeID=1</link><pubDate>Thu, 05 Sep 2019 15:02:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a73f75d-ecd0-4dfd-939d-17b59ab23526</guid><dc:creator>awneil</dc:creator><description>[quote userid="79444" url="~/f/nordic-q-a/51804/mesh-long-range-mode-relaying"]got this from another post[/quote]
&lt;p&gt;What post? Give a link.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>