<?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>Provisioner node : Unhandled mesh event</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35028/provisioner-node-unhandled-mesh-event</link><description>Hi, 
 I&amp;#39;m working on sending string data over mesh by following this case , my message is printed on server side in mesh_msg_handle() function (access.c file), but I want to print it in server main.c file, from what i see in the provisioner log : Unhandled</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 06 Jun 2018 12:56:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35028/provisioner-node-unhandled-mesh-event" /><item><title>RE: Provisioner node : Unhandled mesh event</title><link>https://devzone.nordicsemi.com/thread/134949?ContentTypeID=1</link><pubDate>Wed, 06 Jun 2018 12:56:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fee046a2-0124-4bd8-b0fa-9f5a10f4196e</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;No worries. Good luck!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Provisioner node : Unhandled mesh event</title><link>https://devzone.nordicsemi.com/thread/134947?ContentTypeID=1</link><pubDate>Wed, 06 Jun 2018 12:54:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2565acb9-fbea-424b-abc5-565b613140b7</guid><dc:creator>Arij</dc:creator><description>&lt;p&gt;Thank you again&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/bjorn-kvaale"&gt;Bjørn Kvaale&lt;/a&gt;, I a&lt;span&gt;p&lt;/span&gt;&lt;span&gt;preciate your help.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Provisioner node : Unhandled mesh event</title><link>https://devzone.nordicsemi.com/thread/134944?ContentTypeID=1</link><pubDate>Wed, 06 Jun 2018 12:42:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5275ee1a-afe2-473d-9cbd-f07baeef080e</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Not that I am aware of. You can try changing the tx output power so that you do not need to place the nodes so far away from each other. Take a look at &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/33949/tx_power_set-mesh_sdk_2-0-1-s140/130777#130777"&gt;this case&lt;/a&gt; for more info regarding this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Provisioner node : Unhandled mesh event</title><link>https://devzone.nordicsemi.com/thread/134938?ContentTypeID=1</link><pubDate>Wed, 06 Jun 2018 12:28:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03686519-5801-4402-985a-975b15c0ccff</guid><dc:creator>Arij</dc:creator><description>&lt;p&gt;So nothing related with my message model? do i just have to&amp;nbsp;&lt;span&gt;place nodes in different rooms ?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Provisioner node : Unhandled mesh event</title><link>https://devzone.nordicsemi.com/thread/134936?ContentTypeID=1</link><pubDate>Wed, 06 Jun 2018 12:20:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e88858c-f87c-4350-80a5-db46027d02a1</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Great! Relaying nodes should work out of the box. Take a look at the light switch server example &amp;amp; you will find the bool&amp;nbsp;m_relay_enable. You can see that this bool is set true inside network_init() in network.c. The should_relay() function then decides whether a message should be relayed or not.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Provisioner node : Unhandled mesh event</title><link>https://devzone.nordicsemi.com/thread/134896?ContentTypeID=1</link><pubDate>Wed, 06 Jun 2018 11:13:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18f6747d-3c27-4d3c-a264-9b86b2ce463d</guid><dc:creator>Arij</dc:creator><description>&lt;p&gt;Thank you for your hel&lt;span&gt;p,&amp;nbsp;&lt;/span&gt;I solved it , i&amp;#39;am now able to&amp;nbsp;&lt;span&gt;print my message on server main.c file and my message is handled, it was about the configuration of new model in the&amp;nbsp;provisioner node_setup.c, i followed exactly the configuration of simple_on_off model, i just needed to bind the appkey to my new model, now i want to relay my message to another node, could you&amp;nbsp;please guide me on that?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Provisioner node : Unhandled mesh event</title><link>https://devzone.nordicsemi.com/thread/134854?ContentTypeID=1</link><pubDate>Wed, 06 Jun 2018 08:27:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78df6937-7118-4cb3-89e9-6cb96f2cb5bd</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Again, take a look at the health comment I mentioned before &amp;amp; make sure that you really understand it. Then, you can do something similar. As I mentioned before, every time a mesh message is handled:&lt;/p&gt;
&lt;p&gt;&amp;quot;The handle_fault_status() function inside health_client.c handles the incoming health message, sets the event type to&amp;nbsp;HEALTH_CLIENT_EVT_TYPE_FAULT_STATUS_RECEIVED &amp;amp; calls the event_handler() at the bottom, which happens to be the&amp;nbsp;app_health_event_cb() function&amp;quot;&lt;/p&gt;
&lt;p&gt;The event_handler() call happens to be the call to app_health_event_cb(). You need to call the callback function every time you get a new mesh message.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Provisioner node : Unhandled mesh event</title><link>https://devzone.nordicsemi.com/thread/134741?ContentTypeID=1</link><pubDate>Tue, 05 Jun 2018 12:39:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96d672ee-8b6d-4dee-b98b-b0178636bd53</guid><dc:creator>Arij</dc:creator><description>&lt;p&gt;I thought it was called with the initialization of the message model server, so do I have to call this function in&amp;nbsp;&lt;strong&gt;rx_set_unreliable_cb&lt;/strong&gt;() because I used &lt;strong&gt;simple_message_client_set_unreliable() &lt;/strong&gt;function&amp;nbsp;on client side&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;to send my message&amp;nbsp;&amp;nbsp;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void rx_set_unreliable_cb(access_model_handle_t handle, const access_message_rx_t * p_message, void * p_args)
{
    simple_message_server_t * p_server = p_args;
    NRF_MESH_ASSERT(p_server-&amp;gt;set_cb != NULL);
    p_server-&amp;gt;set_cb(p_server, p_message-&amp;gt;meta_data.src, p_message-&amp;gt;meta_data.dst, p_message-&amp;gt;p_data,p_message-&amp;gt;length);
    
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;As you can see i modified this function and &lt;strong&gt;set_cb&lt;/strong&gt; is called inside&amp;nbsp;it and initialized in models_init_cb() function in main.c server node, is that what you told me to do?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Provisioner node : Unhandled mesh event</title><link>https://devzone.nordicsemi.com/thread/134729?ContentTypeID=1</link><pubDate>Tue, 05 Jun 2018 12:15:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf85e35c-f0da-4c86-98dd-05dc00381ed8</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Are you calling this callback function when you receive a message like I have explained in my previous comment (i.e. calling the callback function inside the function that handles all of the mesh messages)?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Provisioner node : Unhandled mesh event</title><link>https://devzone.nordicsemi.com/thread/134668?ContentTypeID=1</link><pubDate>Tue, 05 Jun 2018 07:58:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af4bc5d2-82ab-44c5-b017-e3041bcc783b</guid><dc:creator>Arij</dc:creator><description>&lt;p&gt;Yes I&amp;#39;am using&amp;nbsp;&lt;span&gt;the simple_on_off model in addition to the simple_message model and on server side I did make callback function like so :&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/400x240/__key/communityserver-discussions-components-files/4/oert.PNG" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;and initialization in server main.c like so&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/400x240/__key/communityserver-discussions-components-files/4/eryt.PNG" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;i believe there is something wrong here or related with configuration of new model, in the&amp;nbsp;provisioner.c I only added this two lines in main provisioner.c to&amp;nbsp;configure&amp;nbsp;my new model, am i supposed to do something else ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; /*Bind message client to App key, and configure publication key */&lt;br /&gt; &lt;strong&gt;ERROR_CHECK(access_model_application_bind(m_message_client.model_handle, m_dev_handles.m_appkey_handle));&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; ERROR_CHECK(access_model_publish_application_set(m_message_client.model_handle, m_dev_handles.m_appkey_handle));&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Provisioner node : Unhandled mesh event</title><link>https://devzone.nordicsemi.com/thread/134645?ContentTypeID=1</link><pubDate>Tue, 05 Jun 2018 06:58:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c72080f0-119b-4b73-8229-66986e331df5</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Does this mean that you are using the simple_on_off model in addition to the simple_message model? If so, it makes sense to increase the ACCESS_MODEL_COUNT. If you are switching out the simple_on_off model with the simple_message model,&amp;nbsp;I would not increase ACCESS_MODEL_COUNT.&lt;/p&gt;
&lt;p&gt;You could have&amp;nbsp;a callback function in main that gets called whenever a message gets sent to the server. For an example of how this is initialized &amp;amp; done in practice, have a look at the&amp;nbsp;app_health_event_cb() in the provisioner of the light switch example in Mesh SDK v2.0.1. The app_health_event_cb function gets called in models_init_cb() inside the health_client_init() function. The handle_fault_status() function inside health_client.c handles the incoming health message, sets the event type to&amp;nbsp;HEALTH_CLIENT_EVT_TYPE_FAULT_STATUS_RECEIVED &amp;amp; calls the event_handler() at the bottom, which happens to be the&amp;nbsp;app_health_event_cb() function.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Provisioner node : Unhandled mesh event</title><link>https://devzone.nordicsemi.com/thread/134556?ContentTypeID=1</link><pubDate>Mon, 04 Jun 2018 12:23:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba09aa70-7e31-4344-a6bd-d427e12a7a0a</guid><dc:creator>Arij</dc:creator><description>&lt;p&gt;I fixed the errors by increasing ACCESS_MODEL_COUNT to consider the new sim&lt;span&gt;ple message model with the other models, the initialization of both models works (on_off and message), after that &lt;strong&gt;Unhandled mesh event&lt;/strong&gt; doesn&amp;#39;t occur, now still not able to&amp;nbsp;print my message on server main.c, any idea&amp;nbsp;please?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Provisioner node : Unhandled mesh event</title><link>https://devzone.nordicsemi.com/thread/134553?ContentTypeID=1</link><pubDate>Mon, 04 Jun 2018 12:15:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80817ba1-2d30-4079-b551-a2df5a5e9f7d</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;What errors are you receiving? Do you have a log that you can upload to this case?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Provisioner node : Unhandled mesh event</title><link>https://devzone.nordicsemi.com/thread/134538?ContentTypeID=1</link><pubDate>Mon, 04 Jun 2018 11:48:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:633df3ef-e712-4e1f-aa5f-dd4dba1b59f4</guid><dc:creator>Arij</dc:creator><description>&lt;p&gt;Thank you for your re&lt;span&gt;ply, i don&amp;#39;t understand why errors occur when i do the initialization of simple_message model with simple_on_off initialization, and this new model considered as on_off model intance that cannot be&amp;nbsp;in the same element&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Provisioner node : Unhandled mesh event</title><link>https://devzone.nordicsemi.com/thread/134532?ContentTypeID=1</link><pubDate>Mon, 04 Jun 2018 11:33:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82915c34-c6b3-4341-98d3-43e844ce8522</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v2.0.1/md_doc_getting_started_how_to_models.html?cp=4_1_0_3_5"&gt;This link&lt;/a&gt; might be useful for creating new models. I would definitely try to add the simple message model like it has been done in the simple on_off model to handle the messages. In general, just try to see how the light switch example has initialized the simple on off model &amp;amp; do something similar for your own model.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>