<?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>Handling of errors in access_model_publish()</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36268/handling-of-errors-in-access_model_publish</link><description>Hi, 
 like described in this post I sometimes get an error = 4 (NO_MEMORY) when calling: 
 error = access_model_publish(m_clients[0].model_handle, &amp;amp;msg); 
 How should this be handled? (Ignore, retry with delay, etc) 
 Is there a way to find out, wether</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 27 Nov 2019 06:44:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36268/handling-of-errors-in-access_model_publish" /><item><title>RE: Handling of errors in access_model_publish()</title><link>https://devzone.nordicsemi.com/thread/222216?ContentTypeID=1</link><pubDate>Wed, 27 Nov 2019 06:44:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78ed0903-a56d-4b79-9948-de8dee5ddbac</guid><dc:creator>Archana Fugare</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am also facing same of mesh assert error if set priority as lowest or thread, could you please help me.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Archana&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Handling of errors in access_model_publish()</title><link>https://devzone.nordicsemi.com/thread/143677?ContentTypeID=1</link><pubDate>Fri, 10 Aug 2018 08:18:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71d18738-3fc9-4915-aaac-e971ef0ccbb4</guid><dc:creator>Gerry</dc:creator><description>&lt;p&gt;I finally solved this by using an interrupt callback on the uart instead of polling it in the mainloop&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Handling of errors in access_model_publish()</title><link>https://devzone.nordicsemi.com/thread/141200?ContentTypeID=1</link><pubDate>Tue, 24 Jul 2018 16:23:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df4240a9-1bfe-4dc3-89e7-2c510a2fe594</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Seger,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;you would need to call mesh APIs from an interrupt handler. Either your application&amp;#39;s hardware interrupt handler (timer for example) or an Software interrupt (SWI) that you generate if you execute from the main loop, please have a look at app_timer.c where we use SWI0 to execute timer start/stop.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Handling of errors in access_model_publish()</title><link>https://devzone.nordicsemi.com/thread/141114?ContentTypeID=1</link><pubDate>Tue, 24 Jul 2018 09:20:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:816fdcb9-e945-4305-9bbe-654fc39859b8</guid><dc:creator>Gerry</dc:creator><description>[quote userid="2121" url="~/f/nordic-q-a/36268/handling-of-errors-in-access_model_publish/140805"]We found that it&amp;#39;s an issue with the interrupt priority. If you configure the mesh with&amp;nbsp;NRF_MESH_IRQ_PRIORITY_LOWEST, you should call your mesh API with that priority to avoid the operation being interrupted by other mesh activity. Another option is to set them down to Thread mode.[/quote]
&lt;p&gt;How about the other option beside Thread mode you mentioned earlier? How to call the API with that priority? What would I have to change to accomplish that?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Handling of errors in access_model_publish()</title><link>https://devzone.nordicsemi.com/thread/141030?ContentTypeID=1</link><pubDate>Mon, 23 Jul 2018 16:52:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:485ce300-9e2a-45ff-a852-2c6bf8cc8c73</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Seger,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;m_prepare_for_reserve() to get no mem is quite normal if the mesh buffer is full. U just need to retry after a TX_COMPLETE event.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m a bit lost here. We need to sum it up on what exactly you are doing and what would be the issue here. I would suggest you to try using&amp;nbsp;&lt;em&gt;NRF_MESH_IRQ_PRIORITY_THREAD &lt;/em&gt;in a unmodified example first. Make sure it works, then continue with your application.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think we have something called&amp;nbsp;simple_on_off_control_send_state()&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Handling of errors in access_model_publish()</title><link>https://devzone.nordicsemi.com/thread/140903?ContentTypeID=1</link><pubDate>Sun, 22 Jul 2018 12:15:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e45dceec-0e6e-41da-987e-32901c471dfc</guid><dc:creator>Gerry</dc:creator><description>&lt;p&gt;ok, I did that and found out, that&amp;nbsp;status = NRF_ERROR_NO_MEM happens in m_prepare_for_reserve() on line 145 of packet_buffer.c (SDK 2.0.1) . This line is also hit 2 times before my attempt to add a flash manager. Probably when the stack itself tries to add one.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Handling of errors in access_model_publish()</title><link>https://devzone.nordicsemi.com/thread/140896?ContentTypeID=1</link><pubDate>Sat, 21 Jul 2018 22:43:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38337342-da49-4d01-a553-0950eddb5a1f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Seger,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not 100% sure why you get no memory. You may need to step into the code and check what throw error 4.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When you change the priority to Thread mode, you need to update the main loop, please follow the guide &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v2.0.1/md_doc_getting_started_mesh_interrupt_priorities.html?cp=4_1_0_3_3"&gt;here&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Handling of errors in access_model_publish()</title><link>https://devzone.nordicsemi.com/thread/140826?ContentTypeID=1</link><pubDate>Fri, 20 Jul 2018 12:12:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d21ea291-a441-41e1-b2ed-e2c2c3d407e7</guid><dc:creator>Gerry</dc:creator><description>&lt;p&gt;Thanks for your answer Hung&lt;/p&gt;
&lt;p&gt;when I change the&amp;nbsp;.core.irq_priority in mesh_init from&amp;nbsp;NRF_MESH_IRQ_PRIORITY_LOWEST&amp;nbsp; to NRF_MESH_IRQ_PRIORITY_THREAD I get a problem initializing.&lt;/p&gt;
&lt;p&gt;My initialisation:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt; initialize();&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; execution_start(start);&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;init_flash();&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;.. flash read/write operation&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;init_uart();&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; key_update();&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; provisioner_setup();&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;In init_falsh(), the line:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ret_code = flash_manager_add(&amp;amp;m_flash_manager, &amp;amp;custom_data_manager_config);&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;returns 4 (no memory)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Also I have problems with the code, that needs to be added to the main() loop.&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;simple_on_off_control_send_state() and m_relay are not defined.&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Handling of errors in access_model_publish()</title><link>https://devzone.nordicsemi.com/thread/140805?ContentTypeID=1</link><pubDate>Fri, 20 Jul 2018 09:31:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c90ead8-cca1-4879-9328-fad2fa8d23bc</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;HI Seger,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We found that it&amp;#39;s an issue with the interrupt priority. If you configure the mesh with&amp;nbsp;NRF_MESH_IRQ_PRIORITY_LOWEST, you should call your mesh API with that priority to avoid the operation being interrupted by other mesh activity. Another option is to set them down to Thread mode.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here is the quote from one of our colleague:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;The key points are:&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;in mesh_init(), the code set the mesh IRQ priority in “NRF_MESH_IRQ_PRIORITY_LOWEST”&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;which means the mesh internal scheduling is using “level 7”&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;in mesh SDK, we want all the mesh events are in the same level&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;however, if we call the mesh API in the main-context, the interrupt priority will be in “NRF_MESH_IRQ_PRIORITY_THREAD”&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;the level is “15”&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;the priority level is less critical than the “NRF_MESH_IRQ_PRIORITY_LOWEST”&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;which means, the procedure may be “interrupted by other mesh events”, and ruin the mesh stack status&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;em&gt;To solve this issue:&lt;/em&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;em&gt;Please config the mesh IRQ priority in “NRF_MESH_IRQ_PRIORITY_THREAD” instead of “NRF_MESH_IRQ_PRIORITY_LOWEST”&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;So we can make sure all the mesh events have the same priority, and the nest interrupt between mesh events won’t happen&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;And please modify the busy loop in the main() like this:&lt;/em&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;em&gt;&amp;nbsp;&lt;/em&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;
&lt;pre&gt;&lt;em&gt; for (;;)
 {
     if(m_relay)
     {
          simple_on_off_control_send_state(&amp;amp;m_control);
          m_relay=false;
     }
     bool done = nrf_mesh_process();
     if(done)
     {
         sd_app_evt_wait();
     }
}&lt;br /&gt;&lt;br /&gt;&lt;/em&gt;You can read more about interrupt priority levels &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v2.0.1/md_doc_getting_started_mesh_interrupt_priorities.html?cp=4_1_0_3_3"&gt;here&lt;/a&gt;. &lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Handling of errors in access_model_publish()</title><link>https://devzone.nordicsemi.com/thread/140498?ContentTypeID=1</link><pubDate>Wed, 18 Jul 2018 09:50:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83ba6d5d-ad80-4dc8-ad20-44c79b55abbc</guid><dc:creator>Gerry</dc:creator><description>&lt;p&gt;Hi Hung&lt;/p&gt;
&lt;p&gt;I&amp;#39;m publishing unreliable. the following line causes the assert in&amp;nbsp;&lt;span&gt;core_tx_complete_cb_set()&lt;/span&gt; :&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;NRF_MESH_ASSERT(m_packet.bearer_bitmap == 0);&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I didn&amp;#39;t find a way to debug this any further, since it only happens during havy communication but I placed a Log-message in front of this line to get the actual&amp;nbsp;m_packet.bearer_bitmap. This suddenly returns 1 instead of 0 when this happens. I&amp;#39;m not publishing in an interrupt.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What could cause this?&lt;/p&gt;
&lt;p&gt;What is the meaning of&amp;nbsp;bearer_bitmap?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Handling of errors in access_model_publish()</title><link>https://devzone.nordicsemi.com/thread/140258?ContentTypeID=1</link><pubDate>Mon, 16 Jul 2018 15:56:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ae70683-166c-44d6-9c1f-491d20f9e392</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you publishing reliable or unreliable message ? If you have no mem , most likely it was reliable packet not getting ACKed and piled up the stack.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you check what cause assert in&amp;nbsp;core_tx_complete_cb_set() and which error code ? The mesh stack is not a black box, please try to debug when you see an error.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Handling of errors in access_model_publish()</title><link>https://devzone.nordicsemi.com/thread/140123?ContentTypeID=1</link><pubDate>Sat, 14 Jul 2018 17:15:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c9ae7c0-c429-4051-9d63-22fce700cd92</guid><dc:creator>Gerry</dc:creator><description>&lt;p&gt;I changed the code to one client now, thanks for pointing this out.&lt;/p&gt;
&lt;p&gt;access_model_publish() still returns 4 (NO_MEM) when sending approx. 5-10 messages / Sek (8 Bytes).&lt;/p&gt;
&lt;p&gt;Also the assert still happens in&amp;nbsp;&lt;span&gt;core_tx_complete_cb_set()&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This didn&amp;#39;t happen in SDK 1.0.0. What could be the reason for that?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1 class="name"&gt;&lt;/h1&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Handling of errors in access_model_publish()</title><link>https://devzone.nordicsemi.com/thread/139941?ContentTypeID=1</link><pubDate>Thu, 12 Jul 2018 16:09:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6caa087-7017-495c-b887-cffe4495b30b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;No it shouldn&amp;#39;t affect when you have the reply from the server. The server replies to the unicast address of the client, so should always receive it, doesn&amp;#39;t matter which public address you currently pointing to.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Handling of errors in access_model_publish()</title><link>https://devzone.nordicsemi.com/thread/139913?ContentTypeID=1</link><pubDate>Thu, 12 Jul 2018 13:52:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2ebfd1a-8d2a-44cb-8d1f-10d61d8ee629</guid><dc:creator>Gerry</dc:creator><description>&lt;p&gt;Thanks for your answer Hung&lt;/p&gt;
&lt;p&gt;I think we don&amp;#39;t really need one client per server, so I will eliminate this first and then set&amp;nbsp;&lt;span&gt;CLIENT_MODEL_INSTANCE_COUNT&amp;nbsp;= 1. I only have to change the address using&amp;nbsp;access_model_publish_address_set() when talking to the servers right? Does this affect the callbacks when receiving messages on the client also?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Handling of errors in access_model_publish()</title><link>https://devzone.nordicsemi.com/thread/139903?ContentTypeID=1</link><pubDate>Thu, 12 Jul 2018 13:10:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b9b7523-a25b-4823-8f6c-989534cf8006</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;You are having 21 element (21 client model) on one device ? I would suggest to test using less number of models/element on one device. Do you really need to have one client for each server ? If you have large number of server you want to control, I would suggest to use one single client and change the publication address instead.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please test and verify you see the issue with stock light switch example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Handling of errors in access_model_publish()</title><link>https://devzone.nordicsemi.com/thread/139879?ContentTypeID=1</link><pubDate>Thu, 12 Jul 2018 11:25:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7f1d8fb-9eb0-44c7-9d38-3ffd5ab45e8e</guid><dc:creator>Gerry</dc:creator><description>&lt;p&gt;Hi Hung&lt;/p&gt;
&lt;p&gt;BEARER_ADV_INT_DEFAULT_MS is set to 20. I didn&amp;#39;t change any settings in nrf_mesh_config_bearer.&lt;/p&gt;
&lt;p&gt;GATT_PROXY is set to 0, so proxy.h is not included in my project. There&amp;#39;s also no changes made to nrf_mesh_config_code. I use standard values and I don&amp;#39;t use BLE.&lt;/p&gt;
&lt;p&gt;I only changed the settings in nrf_mesh_config_app.h. Could there be the problem?&lt;/p&gt;
&lt;p&gt;Here are my settings:&lt;/p&gt;
&lt;p&gt;SERVER_COUNT = 20&lt;/p&gt;
&lt;p&gt;CLIENT_MODEL_INSTANCE_COUNT =&amp;nbsp;&lt;span&gt;SERVER_COUNT + 1&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;#define ACCESS_DEFAULT_TTL (SERVER_COUNT &amp;gt; NRF_MESH_TTL_MAX ? NRF_MESH_TTL_MAX : SERVER_COUNT)&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;#define ACCESS_MODEL_COUNT (1 + /* Configuration client */ \&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt; 1 + /* Health client */ \&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt; 1 + /* Simple OnOff client (group) */ \&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt; 2 + /* remote client */ \&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt; SERVER_COUNT /* Simple OnOff client (per server) */)&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;#define ACCESS_ELEMENT_COUNT (1 + CLIENT_MODEL_INSTANCE_COUNT)&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;#define ACCESS_SUBSCRIPTION_LIST_COUNT (ACCESS_MODEL_COUNT)&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;#define ACCESS_FLASH_PAGE_COUNT (1)&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;#define ACCESS_RELIABLE_TRANSFER_COUNT (ACCESS_MODEL_COUNT)&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;#define DSM_SUBNET_MAX (1)&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;#define DSM_APP_MAX (1)&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;#define DSM_DEVICE_MAX (SERVER_COUNT) //(SERVER_COUNT)&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;#define DSM_VIRTUAL_ADDR_MAX (1)&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;#define DSM_NONVIRTUAL_ADDR_MAX (ACCESS_MODEL_COUNT + 1)&amp;nbsp;&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;#define DSM_FLASH_PAGE_COUNT (2)&amp;nbsp;&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Handling of errors in access_model_publish()</title><link>https://devzone.nordicsemi.com/thread/139839?ContentTypeID=1</link><pubDate>Thu, 12 Jul 2018 08:38:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ae57f08-5b85-4a6a-a236-170be1ea89ee</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Gerry,&lt;/p&gt;
&lt;p&gt;What was your advertising interval ? Usually it&amp;#39;s defined as&amp;nbsp;BEARER_ADV_INT_DEFAULT_MS and equal 20ms.&lt;/p&gt;
&lt;p&gt;Do you do any proxy role or BLE ? Could you reproduce the issue with the light switch client&amp;amp;server (not the proxy ones) ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Handling of errors in access_model_publish()</title><link>https://devzone.nordicsemi.com/thread/139745?ContentTypeID=1</link><pubDate>Wed, 11 Jul 2018 14:15:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:976b8144-33b3-41fc-a58e-5ef55a3b97c5</guid><dc:creator>Gerry</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I call&amp;nbsp;&lt;span&gt;access_model_publish()&amp;nbsp; as an unreliable message 10 times per second when I get&amp;nbsp;NRF_ERROR_NO_MEM in about 50% of the calls. When using Mesh SDK 1.0.0. I was able to send 20-30 messages per second with the same code without a problem. Is there a signifficant drop in speed using SDK 2.0.1.?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I didn&amp;#39;t check the return value when using SDK 1.0.0 but now I get an assert sometimes like described&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/36071/mesh-assert-in-core_tx-c"&gt;here&lt;/a&gt;, so I thought, this could be related to it. What do you think?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; Gerry&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Handling of errors in access_model_publish()</title><link>https://devzone.nordicsemi.com/thread/139732?ContentTypeID=1</link><pubDate>Wed, 11 Jul 2018 13:27:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6f4d8a6-30b2-4219-a2a8-ea628dcd052a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Seger,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When&amp;nbsp;access_model_publish() throw&amp;nbsp;NRF_ERROR_NO_MEM this means there isn&amp;#39;t enough buffer for your message and you have to wait for a&amp;nbsp;NRF_MESH_EVT_TX_COMPLETE event before you continue. How often do you call publish command ? Was it a reliable message?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>