<?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>Configuration Problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77088/configuration-problem</link><description>Hi. 
 I have been trying to implement my own Model into the Light Switch Example (Mesh SDK 4.2, SD s140 7.0.1, Hardware: nrf52840 DK), according to this Thread: 
 Adding Simple OnOff Model to Generic OnOff Server Example - Nordic Q&amp;amp;A - Nordic DevZone</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 09 Sep 2021 13:59:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77088/configuration-problem" /><item><title>RE: Configuration Problem</title><link>https://devzone.nordicsemi.com/thread/328861?ContentTypeID=1</link><pubDate>Thu, 09 Sep 2021 13:59:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:108e4702-1e09-4e08-8168-e422abd7391a</guid><dc:creator>SDK_User_771</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for the Suggestions.&lt;/p&gt;
&lt;p&gt;Everything works as it should now.&lt;/p&gt;
&lt;p&gt;For the other Users:&lt;/p&gt;
&lt;p&gt;I added the SimpleOnOff Model according to this Thread:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/56921/adding-simple-onoff-model-to-generic-onoff-server-example"&gt;Adding Simple OnOff Model to Generic OnOff Server Example - Nordic Q&amp;amp;A - Nordic DevZone - Nordic DevZone (nordicsemi.com)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Note that you have to change up the nrf_mesh_config_app.h file so that u can fit more model-instances into the Application&lt;/p&gt;
&lt;p&gt;For provisioning &amp;amp; configuration I used the PyACI as suggested. From my experience, it is a lot easier than using/changing up the provisioner example, so I can definitely recommend it.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuration Problem</title><link>https://devzone.nordicsemi.com/thread/324000?ContentTypeID=1</link><pubDate>Mon, 09 Aug 2021 12:23:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc999f75-d5b3-4bee-90f1-4e98b6a071ef</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m taking over the case because Terje is away.&lt;/p&gt;
&lt;p&gt;I would suggest to try provisioning it with a phone (enabling PB-GATT), just to get to know if the model is initialize properly.&amp;nbsp;&lt;br /&gt;You can also think of using the&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v5.0.0/md_scripts_interactive_pyaci_doc_demo_configuration.html?cp=8_2_2_4_9_1_2"&gt; PyACI to do provisioning&lt;/a&gt;. It&amp;#39;s more flexible and easier to get to know if something is wrong using these universal provisioners (phone or PyACI).&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Also, please try testing with only adding the custom model in (please try adding the Simple OnOff model in&amp;nbsp;\models\vendor\simple_on_off ) without removing the Generic OnOff.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuration Problem</title><link>https://devzone.nordicsemi.com/thread/323822?ContentTypeID=1</link><pubDate>Fri, 06 Aug 2021 15:30:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fcfe994-46ef-40bf-8e8e-8e255e9ae34a</guid><dc:creator>SDK_User_771</dc:creator><description>&lt;p&gt;Hi Kaja,&lt;/p&gt;
&lt;p&gt;Sadly not yet, because i really dont get what I&amp;#39;m doing wrong.&lt;/p&gt;
&lt;p&gt;So a solution and/or some general advice on how to add a custom model to the Light Switch Example (Mesh SDK 5.0 or Mesh SDK 4.2 is both fine) would help me a lot.&lt;/p&gt;
&lt;p&gt;Thanks in advance for your Time.&lt;/p&gt;
&lt;p&gt;Best regards.&amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuration Problem</title><link>https://devzone.nordicsemi.com/thread/323786?ContentTypeID=1</link><pubDate>Fri, 06 Aug 2021 13:42:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a815817-5aea-482f-85e6-b2d7321ee26b</guid><dc:creator>Kaja</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Terje is out of office, have you solved your problem?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Kaja&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuration Problem</title><link>https://devzone.nordicsemi.com/thread/318991?ContentTypeID=1</link><pubDate>Wed, 07 Jul 2021 13:04:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2e795d3-903c-4c5b-bcf4-c62c379d56bc</guid><dc:creator>SDK_User_771</dc:creator><description>&lt;p&gt;Hi, thx for the quick Reply.&lt;/p&gt;
&lt;p&gt;The client model id is 0x0000, i understand that i cannot use this value as an id for my server model. I tried it with different id values ( 0x1000, 0xB000) but i still get the same Error.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I initialize my server on an Element Index of the Generic OnOff Model, along with commenting out the initialization of the Generic OnOff Model, so maybe there is something wrong with that:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static void models_init_cb(void)
{
    __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, &amp;quot;Initializing and adding models\n&amp;quot;);
    //app_model_init();
      ERROR_CHECK(modelname_server_init(&amp;amp;my_modelname_server_0, APP_ONOFF_ELEMENT_INDEX)); //NOTE Added
    __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, &amp;quot;My Modelname Model Handle: %d\n&amp;quot;, my_modelname_server_0.model_handle);
}&lt;/pre&gt;&lt;pre class="ui-code" data-mode="text"&gt;// My Server Init Function

uint32_t modelname_server_init(modelname_server_t * p_server, uint16_t element_index)
{
    if (p_server == NULL ||
        p_server-&amp;gt;get_cb == NULL ||
        p_server-&amp;gt;set_cb == NULL)
    {
        return NRF_ERROR_NULL;
    }

    access_model_add_params_t init_params;
    init_params.element_index =  element_index;
    init_params.model_id.model_id = MODELNAME_SERVER_MODEL_ID;
    init_params.model_id.company_id = MODELNAME_COMPANY_ID; // = COMPANY_ID_NORDIC
    init_params.p_opcode_handlers = &amp;amp;m_opcode_handlers[0];
    init_params.opcode_count = sizeof(m_opcode_handlers) / sizeof(m_opcode_handlers[0]);
    init_params.p_args = p_server;
    init_params.publish_timeout_cb = handle_publish_timeout;
    return access_model_add(&amp;amp;init_params, &amp;amp;p_server-&amp;gt;model_handle);
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuration Problem</title><link>https://devzone.nordicsemi.com/thread/318946?ContentTypeID=1</link><pubDate>Wed, 07 Jul 2021 10:14:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6689bb62-8918-4c2f-813e-722389196ae5</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I only found one place in the stack code returning ACCESS_STATUS_CANNOT_BIND, and that is in config_server.c on lines 2518 to 2524. From that it looks like you are either trying to bind the config model itself, or your vendor model is using the config model id instead of a custom vendor model id.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>