<?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: autoprovisioning and address selection</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/121115/ble-mesh-autoprovisioning-and-address-selection</link><description>After a lot of efforts I managed to autoprovision and autoconfigure my nrf52840 board and a series of nrf52840dongles (provisioning and configuring inside the software and not through external app). 
 In particular, I have configured a switch and a led</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 07 May 2025 12:59:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/121115/ble-mesh-autoprovisioning-and-address-selection" /><item><title>RE: Ble mesh: autoprovisioning and address selection</title><link>https://devzone.nordicsemi.com/thread/534285?ContentTypeID=1</link><pubDate>Wed, 07 May 2025 12:59:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:978dc9d1-65a2-40dd-ba29-450073875883</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;No problem at all &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt; Let us know if there is anything else.&lt;/p&gt;
&lt;p&gt;Though once again, I just want to say that these features in BLE Mesh are there for the security of the network.&amp;nbsp;So keep in mind that if you are eg. running&amp;nbsp;&lt;span&gt;bt_mesh_rpl_reset()&amp;nbsp;on&lt;/span&gt;&amp;nbsp;a customer product you might open yourself up to replay attacks.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble mesh: autoprovisioning and address selection</title><link>https://devzone.nordicsemi.com/thread/534137?ContentTypeID=1</link><pubDate>Tue, 06 May 2025 14:15:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c25936f5-8324-48b5-be37-032b7451bc72</guid><dc:creator>stefanogradozzi</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I think that you have brilliantly solved my problem.&lt;/p&gt;
&lt;p&gt;Probably I made things only more confused in the last part of my previous message.&lt;/p&gt;
&lt;p&gt;Thank you again for your effort&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble mesh: autoprovisioning and address selection</title><link>https://devzone.nordicsemi.com/thread/534119?ContentTypeID=1</link><pubDate>Tue, 06 May 2025 13:07:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b1c9b19-a53a-4c21-a43f-2121a3b0f2a7</guid><dc:creator>Elfving</dc:creator><description>[quote user="stefanogradozzi"]if I want to use an older address for DK, I have to reflash and readdress also all dongles in the network. Correct?[/quote]
&lt;p&gt;Well, that would fix things, but I wouldn&amp;#39;t say you are required to do that. You could eg. clear the RPL manually from all the other nodes ( &lt;span&gt;bt_mesh_rpl_reset&amp;nbsp;&lt;/span&gt;), or store these settings from the old node, and reflash it on the new one.&lt;/p&gt;
[quote user="stefanogradozzi"]If I use a new address after reflashing DK, it is not necessary reflash all dongles. Correct?[/quote]
&lt;p&gt;Correct. That is atleast my understanding of your problem. This is because the dongles will have their own storage of messages recieved from this new unicast address, which will start from 0 on all nodes.&lt;/p&gt;
[quote user="stefanogradozzi"]I have to change its main address for communicating with dongles (and you have just explained me why). What I have not understood?[/quote]
&lt;p&gt;So you have changed the main address of the DK? If so, what I am describing here is likely not the problem.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble mesh: autoprovisioning and address selection</title><link>https://devzone.nordicsemi.com/thread/533971?ContentTypeID=1</link><pubDate>Mon, 05 May 2025 16:35:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ec5b865-1094-4cea-9c49-5d193d19adae</guid><dc:creator>stefanogradozzi</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I understand that:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;if I want to use an older address for DK, I have to reflash and readdress also all dongles in the network. Correct?&lt;/li&gt;
&lt;li&gt;If I use a new address after reflashing DK, it is not necessary reflash all dongles. Correct?&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;About group addresses: actually, I&amp;#39;m using them. For example: 0xC001 is the group address for light client/server of DK and of all dongles, but anyway when reflashing DK (and group address does not change) I have to change its main address for communicating with dongles (and you have just explained me why). What I have not understood?&lt;/p&gt;
&lt;p&gt;Thanks and regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble mesh: autoprovisioning and address selection</title><link>https://devzone.nordicsemi.com/thread/533940?ContentTypeID=1</link><pubDate>Mon, 05 May 2025 13:59:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b309e9e-2ab6-48b5-8971-815c67150680</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;I see. And you only reflash one device, ie. the DK and not the dongles? I guess one issue could be that the&amp;nbsp;sequence number of the DK is now restarted, while the others are much higher.&lt;/p&gt;
&lt;p&gt;To avoid &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/protocols/bt/bt_mesh/overview/security.html#replay_protection"&gt;replay attacks&lt;/a&gt;, the nodes store the sequence number of the latest message, and disregard all older ones. Sending a few more (given that a few messages are what has been sent in the past) of these messages should make the sequence number go up high enough. What is recommended is to use new addresses for a new unit instead of using the old ones. If addressing is what is stopping you from doing that, then I would recommend group addresses. Is there any reason why you can not use this approach?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am not sure if we have an API for setting and getting the RPL (replay protection list), potentially for safety reasons. But if you are interested in going this route, I can check.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble mesh: autoprovisioning and address selection</title><link>https://devzone.nordicsemi.com/thread/533806?ContentTypeID=1</link><pubDate>Sat, 03 May 2025 09:43:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b742b61-90d4-47b7-8e9e-f96d84375600</guid><dc:creator>stefanogradozzi</dc:creator><description>&lt;p style="text-align:left;"&gt;I make erase all and then reflash the entire SW.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble mesh: autoprovisioning and address selection</title><link>https://devzone.nordicsemi.com/thread/533753?ContentTypeID=1</link><pubDate>Fri, 02 May 2025 12:43:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d07be9b-304a-4de7-b5f0-73c675999b72</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hi Stefano,&lt;/p&gt;
[quote user=""]&lt;p&gt;But if I make an erase/flash operation on the board and then I rewrite the same address in the same memory location, the board stops communicating with the other nodes.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;And by this, do you mean an erase-all and reflashing of the entire SW? Or how exactly are you erasing and flashing?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>