<?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>Saving BLE Mesh Settings</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82184/saving-ble-mesh-settings</link><description>Hi, 
 We had a couple questions regarding storing some things related to the BLE mesh. We are building our application off the ble example light_ctrl. 
 1. Looking at the Rpl, can we allocate a max memory for replay messages? If so, where can we do that</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 03 Dec 2021 10:08:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82184/saving-ble-mesh-settings" /><item><title>RE: Saving BLE Mesh Settings</title><link>https://devzone.nordicsemi.com/thread/341822?ContentTypeID=1</link><pubDate>Fri, 03 Dec 2021 10:08:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd49c3aa-4648-4b70-a17b-21f7151cc8e6</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;1. Every RPL entry takes ~35 bytes (excluding NVS overhead). But depending on a use case, mesh configuration and deployment, the bigger network may require more entries in the RPL list.&amp;nbsp;&lt;/span&gt;&lt;span&gt;Amount of RPL entries to be stored is controlled by CONFIG_BT_MESH_CRPL. RPL entries are stored in settings partition every CONFIG_BT_MESH_RPL_STORE_TIMEOUT. But setting this to -1 will disable automatic store of pending RPL entries. See: &lt;a href="https://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_BT_MESH_RPL_STORE_TIMEOUT.html?highlight=bt_mesh_rpl_store_timeout"&gt;&lt;span&gt;https://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_BT_MESH_RPL_STORE_TIMEOUT.html?highlight=bt_mesh_rpl_store_timeout&lt;/span&gt;&lt;/a&gt; You can pass specific address to `bt_mesh_rpl_pending_store` if you don&amp;#39;t want to store all entries.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. I assume that you are referring to db_hash_store? What models are you using?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Saving BLE Mesh Settings</title><link>https://devzone.nordicsemi.com/thread/341494?ContentTypeID=1</link><pubDate>Wed, 01 Dec 2021 12:09:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:022ac637-ea5e-4aa5-9729-56fa13898b96</guid><dc:creator>SpencerEtn</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We&amp;#39;re using nRF Connect SDK. I&amp;#39;m using v1.5.1&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Saving BLE Mesh Settings</title><link>https://devzone.nordicsemi.com/thread/341349?ContentTypeID=1</link><pubDate>Tue, 30 Nov 2021 15:02:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7f576cc-6687-491a-945e-8b9f4e6c2e3f</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Could you provide me with which mesh SDK you are using and SDK version? nRF5 SDK for Mesh or nRF Connect SDK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Saving BLE Mesh Settings</title><link>https://devzone.nordicsemi.com/thread/341073?ContentTypeID=1</link><pubDate>Mon, 29 Nov 2021 12:36:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6567e8b-a3db-4847-b798-64136170d55a</guid><dc:creator>SpencerEtn</dc:creator><description>&lt;p&gt;For more context;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1. Similarly related to the second question, the RPL (replay messages) related information is being written to memory. Can we allocate some max memory for replay messages and what is the default value for size of these messages?&lt;/p&gt;
&lt;p&gt;We found that in settings.c the bt_mesh_rpl_pending_store() function was writing RPL stuff but we didn&amp;#39;t necessarily want to store so much information in the flash related to replay messages.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2. After provisioning and sending control commands such as like the on/off generic light, etc. we have observed that data is continuously being written to flash one after another. We are wondering if it is really necessary to write this sort of information to flash?&lt;/p&gt;
&lt;p&gt;We observed in the gatt.c; an example function is db_hash_store() that will write to the flash memory.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>