<?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 range, power and mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/34491/mesh-range-power-and-mode</link><description>Hi, 
 In this topic , i was asking about how to increase range in mesh networks. I did some outdoors tests (clear field), changing power (-40, +4, +8 dBm) and mode (1MB and Long Range). Here are my results using light switch example: 
 nRF52832 / 1MB</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 23 May 2018 13:52:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/34491/mesh-range-power-and-mode" /><item><title>RE: Mesh range, power and mode</title><link>https://devzone.nordicsemi.com/thread/133029?ContentTypeID=1</link><pubDate>Wed, 23 May 2018 13:52:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:754946ca-361c-4813-aa69-1b9b4032d449</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;it would mean that there is a bug in mesh code somewhere if my proposed patch works.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh range, power and mode</title><link>https://devzone.nordicsemi.com/thread/133023?ContentTypeID=1</link><pubDate>Wed, 23 May 2018 13:36:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:456c6771-5737-4648-8aff-d091b87171cb</guid><dc:creator>Damien Berger</dc:creator><description>&lt;p&gt;I am using nRF52840 Rev1 sorry.&lt;br /&gt;Yes i can try with this setting if you think it would work but i would be strange since it works with -40dBm, isn&amp;#39;t it ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh range, power and mode</title><link>https://devzone.nordicsemi.com/thread/133022?ContentTypeID=1</link><pubDate>Wed, 23 May 2018 13:32:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0087233f-c470-4af4-b847-60d05c41f3c7</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;There seems to be a lot of places where i see&amp;nbsp;RADIO_POWER_NRF_0DBM is hardcoded into the tx_power setting.Just to make sure can you set the tx power in radio_config.c file&amp;nbsp;radio_config_config() function and set directly NRF_RADIO-&amp;gt;TXPOWER =&amp;nbsp;&amp;nbsp;RADIO_POWER_NRF_POS8DBM&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am still wondering which version of the chip you are using for nRF52840&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh range, power and mode</title><link>https://devzone.nordicsemi.com/thread/133009?ContentTypeID=1</link><pubDate>Wed, 23 May 2018 12:52:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b922274-1fd9-4894-99f5-4f91b8170c99</guid><dc:creator>Damien Berger</dc:creator><description>&lt;p&gt;Thank you i did not realize that it was not part of the mesh spec.&lt;br /&gt;I completely understand if you can&amp;#39;t assist us on this point.&lt;br /&gt;&lt;br /&gt;Regarding the +8dBm, i added the line &amp;quot;&amp;nbsp; RADIO_POWER_NRF_POS8DBM = 0x08,&amp;quot; in the typedef definition as i showed before. Then i changed the tx_power in this function in advertiser.c:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static inline void set_default_broadcast_configuration(broadcast_t * p_broadcast)
{
    p_broadcast-&amp;gt;params.access_address = BEARER_ACCESS_ADDR_DEFAULT;
    p_broadcast-&amp;gt;params.radio_config.payload_maxlen = RADIO_CONFIG_ADV_MAX_PAYLOAD_SIZE;
    p_broadcast-&amp;gt;params.radio_config.radio_mode = RADIO_MODE_BLE_1MBIT;
    p_broadcast-&amp;gt;params.radio_config.tx_power = RADIO_POWER_NRF_POS8DBM;
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and in this funcion in scanner.c:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;void scanner_init(bearer_event_flag_callback_t packet_process_cb)
{
    memset(&amp;amp;m_scanner, 0, sizeof(m_scanner));

    packet_buffer_init(&amp;amp;m_scanner.packet_buffer, m_scanner.packet_buffer_data, SCANNER_BUFFER_SIZE);
    scanner_config_reset();
    m_scanner.config.radio_config.tx_power = RADIO_POWER_NRF_POS8DBM;
    m_scanner.config.radio_config.payload_maxlen = RADIO_CONFIG_ADV_MAX_PAYLOAD_SIZE;
    m_scanner.timer_window_end.cb = scan_window_end;
    m_scanner.timer_window_start.cb = scan_window_start;
    m_scanner.state = SCANNER_STATE_IDLE;
    m_scanner.window_state = SCAN_WINDOW_STATE_ON;
    m_scanner.nrf_mesh_process_flag = bearer_event_flag_add(packet_process_cb);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;That&amp;#39;s all, and when i change this two lines with &amp;quot;RADIO_POWER_NRF_NEG40DBM&amp;quot; it clearly works since the range is reduced to something like 1 meter.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh range, power and mode</title><link>https://devzone.nordicsemi.com/thread/133003?ContentTypeID=1</link><pubDate>Wed, 23 May 2018 12:38:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5c531c6-25f0-4e42-a4bc-5e19aa21dcd8</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi Damien,&lt;/p&gt;
&lt;p&gt;Do you know that LR is not part of the Mesh spec and if you use this feature in your product, you will not be able to qualify it ?&lt;/p&gt;
&lt;p&gt;The thread where &lt;a href="https://devzone.nordicsemi.com/members/hungbui"&gt;Hung Bui&lt;/a&gt; gave a solution is very experimental and is not intended to be used in final products.&lt;/p&gt;
&lt;p&gt;There are many other conventions that the Mesh stack assumes and I am not sure if every aspect of long range is taken into account here.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Since using LR with Mesh is out of our offering for now, I would not be able to spend time to assist in that. But, i would like to know why changing TX power from 4dBm to 8dBm had no effect.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you attach part of your code where you are changing the tx power&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh range, power and mode</title><link>https://devzone.nordicsemi.com/thread/132946?ContentTypeID=1</link><pubDate>Wed, 23 May 2018 09:48:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c6b31de-602e-4304-bc0d-53f879caebd6</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;That seems like a good spot to test long range with 8dBm. It&amp;nbsp; kind of looks the same as the testing place I used to test long range &lt;a href="https://devzone.nordicsemi.com/b/blog/posts/testing-long-range-coded-phy-with-nordic-solution-it-simply-works-922075585"&gt;here&lt;/a&gt;. But looking at your results it does not look that the radio has changed TX power. Can you be absolutely sure by sniffing the radio registers that the NRF_RADIO-&amp;gt; TXPOWER&amp;nbsp;register is set to the right value. Because the below results cannot be correct with the correct configuration&lt;/p&gt;
&lt;p&gt;nRF52832 / 1MB / +4dBm : ~420 m&lt;/p&gt;
&lt;p&gt;nRF52840 / 1MB / +8dBm : ~420 m&amp;nbsp;&lt;/p&gt;
&lt;p&gt;nRF52840 / LR / +8dBm&amp;nbsp; &amp;nbsp; : ~422 m&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Also, which nRF52840 Rev IC are you testing with?&lt;/p&gt;
&lt;p&gt;There is one thing I need to check regarding adding range delays to the mesh code for long range. I will check this an come back to you soon.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh range, power and mode</title><link>https://devzone.nordicsemi.com/thread/132924?ContentTypeID=1</link><pubDate>Wed, 23 May 2018 08:34:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98327b78-c530-4b20-b5ac-b0ab7b941769</guid><dc:creator>Damien Berger</dc:creator><description>&lt;p&gt;I was only using two devices during each test, environment is not radio noisy, as you can see in the following picture, it is quite clear:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Ram_E900_e.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh range, power and mode</title><link>https://devzone.nordicsemi.com/thread/132918?ContentTypeID=1</link><pubDate>Wed, 23 May 2018 08:28:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4aa14950-02ac-40dd-a99e-7cb9ef442aa1</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;How are you testing this. Is the devices under test surrounded by many other devices. I mean to ask if the environment is very radio noisy? That could affect the range as there could be a lot of packet collisions in air causing corruption and hence lot of packet drops.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh range, power and mode</title><link>https://devzone.nordicsemi.com/thread/132911?ContentTypeID=1</link><pubDate>Wed, 23 May 2018 08:16:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfa6afd7-e438-4989-ae88-c5f55e99b18d</guid><dc:creator>Damien Berger</dc:creator><description>&lt;p&gt;I used The SDK for Mesh V2.0.1 which use S140 V6.0.0 (for nRF52840) :&lt;/p&gt;
&lt;p&gt;&lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.meshsdk.v2.0.1%2Findex.html&amp;amp;cp=4_1_0"&gt;http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.meshsdk.v2.0.1%2Findex.html&amp;amp;cp=4_1_0&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh range, power and mode</title><link>https://devzone.nordicsemi.com/thread/132900?ContentTypeID=1</link><pubDate>Wed, 23 May 2018 08:01:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25fca716-42f3-4e9d-b867-05014efeaa39</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi Damien,&lt;/p&gt;
&lt;p&gt;Which softdevice version does the Mesh SDK use?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The long range feature was tested to work well on S140v6.0.0. I am not sure about the versions before. Also the change in radio tx power should very much influence the range.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh range, power and mode</title><link>https://devzone.nordicsemi.com/thread/132720?ContentTypeID=1</link><pubDate>Tue, 22 May 2018 10:50:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:525560ed-f9f1-4ccf-9e1b-350d36840e5c</guid><dc:creator>Damien Berger</dc:creator><description>&lt;p&gt;Does&amp;nbsp;anyone have an idea about my case ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>