<?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>About the Mesh Config Entry&amp;nbsp; occupies too much ram</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92871/about-the-mesh-config-entry-occupies-too-much-ram</link><description>I‘m developing a light dimmer, I use Mesh Config Entry 
 to save light state as 16 scene in persistent storage, because the size of each state is 1024 byte, so the live value dmx_scene occupies 16k ram, how can I reduce the memory usage? 
 
 nRF SDK FOR</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 Oct 2022 07:59:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92871/about-the-mesh-config-entry-occupies-too-much-ram" /><item><title>RE: About the Mesh Config Entry  occupies too much ram</title><link>https://devzone.nordicsemi.com/thread/391346?ContentTypeID=1</link><pubDate>Wed, 19 Oct 2022 07:59:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1c271cb-ae06-4018-a7cd-40f4468605ff</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The reason for why there are 16 entries the dmx scene is because&amp;nbsp;&lt;span&gt;SCENE_REGISTER_ARRAY_SIZE&amp;nbsp;is set to 16, which is according to the mesh model specification, section 5.1.3.1. It should be fine to set it to 1 instead if this is what you need according to your requirements.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;br /&gt;Andreas&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About the Mesh Config Entry  occupies too much ram</title><link>https://devzone.nordicsemi.com/thread/391201?ContentTypeID=1</link><pubDate>Tue, 18 Oct 2022 13:11:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3475abf9-063d-4274-816d-c1afc8e8f823</guid><dc:creator>Mandeep</dc:creator><description>&lt;p class="p1"&gt;Hi Andreas&lt;/p&gt;
&lt;p class="p2"&gt;&lt;/p&gt;
&lt;p class="p1"&gt;Thank for your answer.&lt;/p&gt;
&lt;p class="p1"&gt;Actually, my question is about the&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &lt;/span&gt;mesh config entry, my light data is 1024 byte, it mean 1024 byte for each config entry, &lt;span class="Apple-converted-space"&gt;&amp;nbsp; &lt;/span&gt;When I use the mesh config entry, it must create a live value(dmx_scene) include 16 entry, the size is 16k, it&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &lt;/span&gt;occupies too much ram,&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &lt;/span&gt;my question is&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &lt;/span&gt;can I just&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &lt;/span&gt;create&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &lt;/span&gt;the value for one entry and&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &lt;/span&gt;can&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &lt;/span&gt;store or load the required entry into the value? I mean I don&amp;rsquo;t need all the scene data in RAM, I just want load the one I need.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About the Mesh Config Entry  occupies too much ram</title><link>https://devzone.nordicsemi.com/thread/391025?ContentTypeID=1</link><pubDate>Mon, 17 Oct 2022 14:30:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afea0e8b-2aab-4517-9422-0a6971ca8fbf</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;The DMX&amp;nbsp;is defined to have 512 channels of 8 byte in series corresponding to the light setting you want for your scene configuration. Each channel corresponds to 1 light and you will only transmit one channel per light you have in your network per frame, which means that you will only send information up to the amount of lights you have in your network. The DMX transmits synchronous with a long start bit, followed by the 1st to 512th bytes, and finished with a stop bit. Worst case this will be 512 bytes per channel.&lt;/p&gt;
&lt;p&gt;If you control the entire process yourself, you&amp;#39;re free to program it as you see fit, however if you want to have 2 universes/configuration of lights of 512 devices per &lt;span&gt;DMX&amp;nbsp;&lt;/span&gt; you will have 1024 bytes which will be around 16k of RAM if everything is being used in your controller. The same goes for a wireless connection - you will have to account for all of the channels resulting in the same memory requirements.&lt;/p&gt;
&lt;p&gt;It is also worth mention that this is an open ticket so users with experience with &lt;span&gt;DMX&amp;nbsp;&lt;/span&gt;, feel free to chime in.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>