<?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>In Mesh SDK 2.0.1 Light Switch Client demo is not working with interactive_pyaci</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/34290/in-mesh-sdk-2-0-1-light-switch-client-demo-is-not-working-with-interactive_pyaci</link><description>I have followed the exact steps mentioned here http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.meshsdk.v2.0.1%2Fmd_scripts_interactive_pyaci_doc_demo_configuration.html&amp;amp;cp=4_1_0_2_0_2 
 But From Light Switch Client after successful</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 16 May 2018 15:04:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/34290/in-mesh-sdk-2-0-1-light-switch-client-demo-is-not-working-with-interactive_pyaci" /><item><title>RE: In Mesh SDK 2.0.1 Light Switch Client demo is not working with interactive_pyaci</title><link>https://devzone.nordicsemi.com/thread/132326?ContentTypeID=1</link><pubDate>Wed, 16 May 2018 15:04:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73dc5eb3-6176-462d-93dc-7b6ef05fa8c5</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Ah, sorry. I confused this with a couple of other threads using the provisioner from the example (and not provisioning through the python interface).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: In Mesh SDK 2.0.1 Light Switch Client demo is not working with interactive_pyaci</title><link>https://devzone.nordicsemi.com/thread/132325?ContentTypeID=1</link><pubDate>Wed, 16 May 2018 15:02:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7aa12767-023d-4f58-919f-0e7dc0a1390a</guid><dc:creator>Fromero</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Dev-Q0003,&lt;/p&gt;
&lt;p&gt;It should work. Make sure that you are&amp;nbsp;&lt;span&gt;clearing the modified database using the &amp;quot;&lt;/span&gt;example_database.json.backup&amp;quot; file.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Fromero.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: In Mesh SDK 2.0.1 Light Switch Client demo is not working with interactive_pyaci</title><link>https://devzone.nordicsemi.com/thread/132299?ContentTypeID=1</link><pubDate>Wed, 16 May 2018 13:43:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc29635d-c415-4583-be55-e625fc883462</guid><dc:creator>Fromero</dc:creator><description>&lt;p&gt;I think that the solution proposed by Jing in this thread solves the problem since, without that change, the client is not successfully configured until the subscription address is added.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/client.jpeg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: In Mesh SDK 2.0.1 Light Switch Client demo is not working with interactive_pyaci</title><link>https://devzone.nordicsemi.com/thread/132295?ContentTypeID=1</link><pubDate>Wed, 16 May 2018 13:20:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ce644a3-4684-413a-a15e-70d162a1d8c6</guid><dc:creator>Dev-Q0003</dc:creator><description>&lt;p&gt;Hi Terje,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks for your response, currently i have below configuration in light_switch_example_common.h&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1526476603302v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;SERVER_NODE_COUNT which is more than 1 but still the issue is same. I&amp;#39;m using serial node interfaced to PC with interactive_pyaci as provisioner. I&amp;#39;m not using the provisioner example application. Our application doesn&amp;#39;t need&amp;nbsp; prevision example.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Manoj&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: In Mesh SDK 2.0.1 Light Switch Client demo is not working with interactive_pyaci</title><link>https://devzone.nordicsemi.com/thread/132288?ContentTypeID=1</link><pubDate>Wed, 16 May 2018 12:58:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7dd81f0f-297a-4b03-a7ea-1e917ebbfab2</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This should not be necessary. The root cause of this and similar issues seems to be an off by one error related to the SERVER_NODE_COUNT define in light_switch_example_common.h. If you set it to one higher than the number of servers and closely follow the &amp;quot;Running the example&amp;quot; section of the &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.meshsdk.v2.0.1%2Fmd_examples_light_switch_README.html"&gt;Light switch demo&lt;/a&gt; documentation then everything should work as intended.&lt;/p&gt;
&lt;p&gt;Alternatively, find in main.c of the provisioner example the comparisons &amp;quot;m_nw_state.provisioned_devices &amp;lt; SERVER_NODE_COUNT&amp;quot; and &amp;quot;m_nw_state.configured_devices &amp;lt; SERVER_NODE_COUNT&amp;quot;. Replace &amp;quot;SERVER_NODE_COUNT&amp;quot; with &amp;quot;(SERVER_NODE_COUNT + CLIENT_NODE_COUNT)&amp;quot;.&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><item><title>RE: In Mesh SDK 2.0.1 Light Switch Client demo is not working with interactive_pyaci</title><link>https://devzone.nordicsemi.com/thread/132100?ContentTypeID=1</link><pubDate>Tue, 15 May 2018 14:53:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5ff833b-ec72-465f-b265-1db2e91fd500</guid><dc:creator>Dev-Q0003</dc:creator><description>&lt;p&gt;Hi Jing,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The above solution works, Thank you!&amp;nbsp;&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I am facing one more issue with the above fix/solution, while testing &lt;strong&gt;Publishing and subscribing&lt;/strong&gt; options.&lt;/p&gt;
&lt;p&gt;I changed the state of the simpleOnOffServer from serial node (using interactive_pyaci .i.e sc.set(True), But this status change from simpleOnOffServer was not notified to SimpleOnOffClient (Light Switch Client Node). Please correct if i&amp;#39;m wrong.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: In Mesh SDK 2.0.1 Light Switch Client demo is not working with interactive_pyaci</title><link>https://devzone.nordicsemi.com/thread/132041?ContentTypeID=1</link><pubDate>Tue, 15 May 2018 12:47:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02f59d17-fdd4-468e-adc7-b57197fc666a</guid><dc:creator>Fromero</dc:creator><description>&lt;p&gt;It works! Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: In Mesh SDK 2.0.1 Light Switch Client demo is not working with interactive_pyaci</title><link>https://devzone.nordicsemi.com/thread/131943?ContentTypeID=1</link><pubDate>Tue, 15 May 2018 02:29:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0832b4d-b4f7-4966-95b6-4eadd77c75eb</guid><dc:creator>jing</dc:creator><description>&lt;p&gt;you have to modify the light switch example for it to send the simple_on_off message even when you only have a publication address configured.&lt;/p&gt;
&lt;p&gt;something like what i did below...&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static bool client_publication_configured(uint8_t i)
{
    dsm_handle_t pub_addr_handle;
    if (i &amp;lt; CLIENT_MODEL_INSTANCE_COUNT)
    {
        if (access_model_publish_address_get(m_clients[i].model_handle, &amp;amp;pub_addr_handle) == NRF_SUCCESS)
        {
            if (pub_addr_handle == DSM_HANDLE_INVALID)
            {
                return false;
            }
            return true;
        }
        else
        {
            return false;
        }       
    }
    else
    {
        return false;
    }
}

static void button_event_handler(uint32_t button_number)
{
    __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, &amp;quot;Button %u pressed\n&amp;quot;, button_number);

#if 1
    if (client_publication_configured(button_number))
#else
    if (client_publication_configured())
#endif
    {
        uint32_t status = NRF_SUCCESS;
        switch (button_number)
        {
            case 0:
            case 1:
                /* send unicast message, with inverted GPIO pin value */
                status = simple_on_off_client_set(&amp;amp;m_clients[button_number],
                                                !hal_led_pin_get(BSP_LED_0 + button_number));
                break;

            case 2:
            case 3:
                /* send a group message to the ODD group, with inverted GPIO pin value */
                status = simple_on_off_client_set_unreliable(&amp;amp;m_clients[button_number],
                                                            !hal_led_pin_get(BSP_LED_0 + button_number),
                                                            GROUP_MSG_REPEAT_COUNT);
                hal_led_pin_set(BSP_LED_0 + button_number, !hal_led_pin_get(BSP_LED_0 + button_number));
                break;
            default:
                break;

        }

        if (status == NRF_ERROR_INVALID_STATE ||
            status == NRF_ERROR_NO_MEM ||
            status == NRF_ERROR_BUSY)
        {
            __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, &amp;quot;Cannot send. Device is busy.\n&amp;quot;);
            hal_led_blink_ms(LEDS_MASK, LED_BLINK_SHORT_INTERVAL_MS, LED_BLINK_CNT_NO_REPLY);
        }
        else
        {
            ERROR_CHECK(status);
        }
    }
    else
    {
        __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, &amp;quot;Ignored. Node is not configured.\n&amp;quot;);
    }
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;jing&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: In Mesh SDK 2.0.1 Light Switch Client is demo not working with interactive_pyaci</title><link>https://devzone.nordicsemi.com/thread/131927?ContentTypeID=1</link><pubDate>Mon, 14 May 2018 15:39:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:471ba6e1-d8ff-4888-a497-8ef9f93cf08f</guid><dc:creator>Fromero</dc:creator><description>&lt;p&gt;I have the same problem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>