<?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 LE Coded</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/75725/mesh-le-coded</link><description>Hello everybody 
 I have some nrf52840-DKs and other boards with the same module and I want to create a LE Coded mesh with these boards, I am aware that the BLE Mesh standard is for BLE Legacy it&amp;#39;s just a proof of concept as LE Coded has given us good</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 08 Jun 2021 10:03:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/75725/mesh-le-coded" /><item><title>RE: Mesh LE Coded</title><link>https://devzone.nordicsemi.com/thread/314159?ContentTypeID=1</link><pubDate>Tue, 08 Jun 2021 10:03:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2371ff2c-8887-4984-a70c-1d446a3e5e2b</guid><dc:creator>ifrz</dc:creator><description>&lt;p&gt;Well these results are more convincing.&lt;br /&gt;I think this is a clear confirmation that I am using coded which I think is not related to the way I provisioned them, probably due to a different particular error.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_P2_2D00_na.pdf"&gt;devzone.nordicsemi.com/.../ble_5F00_P2_2D00_na.pdf&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_P1_2D00_na.pdf"&gt;devzone.nordicsemi.com/.../ble_5F00_P1_2D00_na.pdf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;It shows how at -15 and -12 dBm with coded it receives many more packets (at -12 it doesn&amp;#39;t lose any) while with legacy it only received 1 at -15 and lost 57% at -12. This is also interesting for some energy harvesting projects where we have modules running at -40 dbm. &lt;br /&gt;&lt;br /&gt;The point is that I was quite confused by the RSSI of the DK, I&amp;#39;m not a telecom expert but bluetooth has an operating range where you move away a bit and it drops considerably but then stays there as you move away (arround -80,-90 dBm) and this is something I&amp;#39;ve seen on nRF5x based boards as well as other bluetooth modules, but with the DK the RSSI seems more linear, maybe it&amp;#39;s calculated differently? I know that the main difference in the range is due the PA/LNA module of the DK because the pcb antenna is not a big deal either. It is curious that the sensitivity for 1M is only -95 dBm according to datasheet.&amp;nbsp; &lt;br /&gt;&lt;br /&gt;In any case this part was the urgent one. I&amp;#39;m going to mark it as solved and I&amp;#39;ll continue with the second part, depending on the progress I get I can comment it here.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh LE Coded</title><link>https://devzone.nordicsemi.com/thread/312928?ContentTypeID=1</link><pubDate>Tue, 01 Jun 2021 14:33:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e8725ea-26e1-436c-8a9f-ef805a3a943c</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, I guess it is probably better to focus on packet reception rather than relying on RSSI. Like you said is not really a reliable parameter as it depends of a lot of factors in your environment(&lt;span&gt;like radio interference, signal/multi-path reflections, and loss in the antenna layouts).&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;On another note, like you mentioned above long range/Coded PHY is not supported in the mesh specification. The idea with a mesh network is that you should be able to cover more ground by adding more nodes to the network. By using the relay feature you can get a longer range.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh LE Coded</title><link>https://devzone.nordicsemi.com/thread/312718?ContentTypeID=1</link><pubDate>Mon, 31 May 2021 19:43:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d69ae2a5-7a9b-45de-8d4f-a8b951bd3c63</guid><dc:creator>ifrz</dc:creator><description>&lt;p&gt;OK, I think I should approach the experiments in a different way. As I understand it, the advantage of coded is that it puts more data in the header which allows you to decode the signal over a longer distance using the same power.&amp;nbsp; In other words, for example, if in legacy you receive a packet with -98 dbm at one point and move a bit further away and don&amp;#39;t receive anything, with coded it is possible to receive it with -105 dbm (it will depend on the sensitivity of the board). My idea is to test in places that are a bit at the limit with legacy to see if it is better received with coded but it is probably better to focus on packet reception than on rssi as it is done &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/65953/coded-vs-1mbps-phy-performance-evaluation-feedback-requested"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;I don&amp;#39;t know very well why last week I received that difference in values, it&amp;#39;s true that humidity and those things affect the propagation, especially for centrimetric waves, but now I&amp;#39;m receiving those values and they are very good so it doesn&amp;#39;t seem to be in a critical area of reception and in that case I shouldn&amp;#39;t see any difference between coded and legacy, it may even be worse in coded, I checked this with the smartphone with examples of advertising, I guess it may be because with coded it has 8x more time on air. &lt;br /&gt;&lt;br /&gt;So what I would do is to reduce the power and find places where it is more at the limit and maybe measure the packets received with one or the other.&amp;nbsp; The problem is that when I test examples of the normal SDK I can see on the mobile what kind of advertising it is. For mesh I&amp;#39;m a bit more blind, the only thing I can do to make sure I&amp;#39;m using coded is to move at least one node around and see that the reception distance is greater, because the RSSI is not a reliable parameter for this case either.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh LE Coded</title><link>https://devzone.nordicsemi.com/thread/312695?ContentTypeID=1</link><pubDate>Mon, 31 May 2021 15:33:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9665f08f-d20e-4c03-8173-f9a62e21e65e</guid><dc:creator>ifrz</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;To be honest, I&amp;#39;m not sure. Last week I was testing in two different points with a specific orientation of the DKs and I got RSSI values between -83 and -94. When I provisioned them through a DK with the provisoner code with the changes on the libraries, I got values between -65 and -71. But I&amp;#39;m trying to put them again with LE 1M in the same scenario and I get the same RSSI, I tried to provision them both with the app and with the original code of the mesh SDK (I only changed the power to 8dBm in advertiser.c and scanner.c) but I see that it comes out the same. My idea is to make a comparison between the RSSI with Coded and LE 1M but it is complicated to debug it like this, it is necessary to have them in two fixed points and observe the differences, it would be good that apart from seeing the RSSI in the nodes could also see the radio mode to have no doubts.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh LE Coded</title><link>https://devzone.nordicsemi.com/thread/312599?ContentTypeID=1</link><pubDate>Mon, 31 May 2021 10:06:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20b4d1cd-d2e5-4895-8775-605e25b315ed</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply.&lt;/p&gt;
&lt;p&gt;It seems like you have been able to solve your issue?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh LE Coded</title><link>https://devzone.nordicsemi.com/thread/312515?ContentTypeID=1</link><pubDate>Sun, 30 May 2021 21:46:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46e0e80e-7b6e-43b3-b469-269c8b8e00be</guid><dc:creator>ifrz</dc:creator><description>&lt;p&gt;Ok I think I know what my problem was, initially I wasn&amp;#39;t sure that the radio_mode parameter was set only when provisioning the module, I thought it could be changed after provisioning it, at least with the power it seems to be possible. So for convenience I used the Android app nrf mesh to provision the nodes, obviously the app doesn&amp;#39;t deal with phy coded. But after reviewing the sample code of the mesh sdk provisioner I saw that it used these libraries that are modified with the patch so I used another DK to provision the nodes again and it seems that now I can see an improvement in the RSSI. &lt;/p&gt;
&lt;p&gt;I guess the next step is try to set the advertising type of the mesh as Coded to see if I can communicate directly with the smartphone instead of connecting another board by serial to work as a bridge for the smartphone.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh LE Coded</title><link>https://devzone.nordicsemi.com/thread/312226?ContentTypeID=1</link><pubDate>Thu, 27 May 2021 21:06:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76ccea78-f00c-4fb6-945e-7d3705a8bf83</guid><dc:creator>ifrz</dc:creator><description>&lt;p&gt;Ups silly of me, I just noticed that I had the following code wrong in broadcast.c that&amp;#39;s why it didn&amp;#39;t work when I made the last change of the patch.&lt;/p&gt;
&lt;p&gt;I have this&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static inline ts_timestamp_t time_required_to_send_us(const packet_t * p_packet, uint8_t channel_count, radio_mode_t radio_mode)
{
    static const uint8_t radio_mode_to_us_per_byte[RADIO_MODE_END] =  {8, 4, 32, 8
                                                            #ifdef NRF52_SERIES
                                                                           ,4, 64
                                                            #endif
                                                                           }; //128
    uint32_t packet_length_in_bytes = BLE_PACKET_OVERHEAD(RADIO_MODE_BLE_1MBIT) + p_packet-&amp;gt;header.length;
#ifdef NRF52_SERIES
    if (radio_mode == RADIO_MODE_BLE_2MBIT)
    {
        packet_length_in_bytes += RADIO_PREAMBLE_LENGTH_2MBIT_EXTRA_BYTES;
    }
#endif
    uint32_t radio_time_per_channel = RADIO_RAMPUP_TIME +
                                      (packet_length_in_bytes * radio_mode_to_us_per_byte[radio_mode]) +
                                      RADIO_DISABLE_TO_DISABLED_DELAY_US;
    if (radio_mode == RADIO_MODE_NRF_62K5BIT)
    {
        //__LOG(LOG_SRC_APP, LOG_LEVEL_INFO, &amp;quot;long range preamble\n&amp;quot;);
        packet_length_in_bytes += RADIO_PREAMBLE_LENGTH_LR_EXTRA_BYTES;
    }
    return (BROADCAST_SOFTWARE_OVERHEAD_US + USR_SOFTWARE_OVERHEAD_US + radio_time_per_channel * channel_count);
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I put the &amp;quot;if&amp;quot; of RADIO_MODE_NRF_62K5BIT after set the&amp;nbsp;radio_time_per_channel if I put the &amp;quot;If&amp;quot; before this variable works without error with 64 but no futher improvement in range&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh LE Coded</title><link>https://devzone.nordicsemi.com/thread/312213?ContentTypeID=1</link><pubDate>Thu, 27 May 2021 19:59:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43cf9937-16ba-4d04-b2c4-66c067b861c6</guid><dc:creator>ifrz</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3821.files.zip"&gt;devzone.nordicsemi.com/.../3821.files.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>