<?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>Callback function not being called. Publishing to Group</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46770/callback-function-not-being-called-publishing-to-group</link><description>I am currently publishing messages to a group of servers on a 10 second interval. This works well for a while but after a few minutes some of the nodes stop handling the message. They receive the message but do not call the callback function in the main</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 06 Jun 2019 12:25:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46770/callback-function-not-being-called-publishing-to-group" /><item><title>RE: Callback function not being called. Publishing to Group</title><link>https://devzone.nordicsemi.com/thread/191351?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2019 12:25:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:181e5734-0349-4152-b751-3be8f7d144c6</guid><dc:creator>BubDev</dc:creator><description>&lt;p&gt;So I implemented this fix on mesh version 3.0.0 and it did not solve my problem but when I applied it to 3.1.0 it did. Looks like another reason to start moving our project to mesh SDK 3.1.0. Any hints as to when the next version will be released?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Callback function not being called. Publishing to Group</title><link>https://devzone.nordicsemi.com/thread/191284?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2019 09:31:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:654cb975-53d9-45f3-8896-922a77d37b32</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;No problem with the pause.&lt;/p&gt;
&lt;p&gt;Thank you for the additional information.&lt;/p&gt;
&lt;p&gt;There are some known issues in examples\common\src\app_level.c, some of which might explain issues like the one you are seeing. See &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/44452/multiple-issues-with-app_level-c"&gt;Multiple issues with app_level.c&lt;/a&gt;. For the issues listed in that post, 1 to 4 is already fixed and will be part of next nRF5 SDK for Mesh release. 5 is something we do not currently plan to implement (i.e. you must do that yourself if you want that behavior.) The fixes (all of them in app_level.c) are as follows:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="diff"&gt;Lines 163-169:
    FSM_TRANSITION(E_DELTA_SET,       FSM_OTHERWISE,      A_TRANSITION_COMPLETE,S_IDLE),
    FSM_TRANSITION(E_MOVE_SET,        G_SET_DELAY,        A_DELAY_START,        S_IN_DELAY),
    FSM_TRANSITION(E_MOVE_SET,        G_SET_TRANSITION,   A_TRANSITION_START,   S_IN_TRANSITION),
-    FSM_TRANSITION(E_MOVE_SET,        FSM_OTHERWISE,      FSM_NO_ACTION,        S_IDLE)
+    FSM_TRANSITION(E_MOVE_SET,        FSM_OTHERWISE,      A_TRANSITION_COMPLETE,S_IDLE)
};

#if FSM_DEBUG

Lines 320-326:
    model_timer_abort(&amp;amp;p_server-&amp;gt;timer);
    p_server-&amp;gt;state.transition_time_ms = 0;

-    p_server-&amp;gt;state.present_level = p_server-&amp;gt;state.target_level;
+    if (p_server-&amp;gt;state.transition_type != TRANSITION_MOVE_SET)
+    {
+        p_server-&amp;gt;state.present_level = p_server-&amp;gt;state.target_level;
+    }

    generic_level_status_params_t status_params;
    status_params.present_level = p_server-&amp;gt;state.present_level;

Lines 346-354:
    {
        /* Requirement: If transition time is not within valid range, do not start the transition. */
        case TRANSITION_SET:
-            return (p_server-&amp;gt;state.transition_time_ms &amp;gt; 0 &amp;amp;&amp;amp; p_server-&amp;gt;state.params.move.required_move != 0);
        case TRANSITION_DELTA_SET:
-            return (p_server-&amp;gt;state.transition_time_ms &amp;gt; 0 &amp;amp;&amp;amp; p_server-&amp;gt;state.params.set.required_delta != 0);
+            return (p_server-&amp;gt;state.transition_time_ms &amp;gt; 0 &amp;amp;&amp;amp;
+                    p_server-&amp;gt;state.transition_time_ms != MODEL_TRANSITION_TIME_UNKNOWN &amp;amp;&amp;amp;
+                    p_server-&amp;gt;state.params.set.required_delta != 0);

        /* Requirement: If transition time is not within valid range, or given move level (delta level)
        is zero, do not start the transition. */

Lines 544-551:
        {
            p_server-&amp;gt;state.transition_time_ms = *p_server-&amp;gt;p_dtt_ms;
        }
-
-        p_server-&amp;gt;state.target_level = p_server-&amp;gt;state.present_level;
    }
    else
    {&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;If the above does not solve the problem, or if you see any issues with the fix, please let us know and we will look further into it.&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: Callback function not being called. Publishing to Group</title><link>https://devzone.nordicsemi.com/thread/191117?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2019 12:51:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c4fcb8f-54d0-447f-b743-ee062a4decdd</guid><dc:creator>BubDev</dc:creator><description>&lt;p&gt;Sorry for the long pause on this topic. It does happen on the unmodified dimming server example from the SDK. I started debugging the FSM and found where it is happening. As soon as transition_index@@@@ is printed out the callback function in the main stops being called and the FSM slows down. Again this is happening when the server receives a bunch of messages in a short time about 30 over 8 seconds. You could probably reproduce by making a loop that publishes a generic_level over a set interval.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screen-Shot-2019_2D00_06_2D00_05-at-8.07.37-AM.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screen-Shot-2019_2D00_06_2D00_05-at-8.47.43-AM.png" /&gt;&lt;/p&gt;
&lt;p&gt;Heres another screen shot from the stock Dimming Server indicating when the LED stops responding.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screen-Shot-2019_2D00_06_2D00_05-at-8.43.31-AM.png" /&gt;&lt;/p&gt;
&lt;p&gt;P.S. After waiting for a minute or so it starts working again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Callback function not being called. Publishing to Group</title><link>https://devzone.nordicsemi.com/thread/186320?ContentTypeID=1</link><pubDate>Fri, 10 May 2019 08:44:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ac5b4d2-5804-419c-a5c3-3ab72794084d</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Did you see this behavior with an unmodified example from the SDK? If so, which one, and if not, can you provide a project that shows the issue? It would be good to have a way to reproduce this, in order to investigate what might be the problem.&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>