<?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>Confused about polling interval</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61638/confused-about-polling-interval</link><description>I have been studying the power consumption of a prototype and observe that the end device is polling very frequently. The data request polling is backing off for a while to about every 3 seconds, but suddenly (efter 15 seconds or so) the device starts</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 05 Jul 2020 09:06:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61638/confused-about-polling-interval" /><item><title>RE: Confused about polling interval</title><link>https://devzone.nordicsemi.com/thread/258453?ContentTypeID=1</link><pubDate>Sun, 05 Jul 2020 09:06:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:014ea2b2-253b-468d-b2d3-83f3be608ec8</guid><dc:creator>Unitware</dc:creator><description>&lt;p&gt;Hi, the missing ```ZB_ERROR_CHECK(zigbee_default_signal_handler(bufid));```in the zboss_signal_handler demo code from 4.0.0 was causing this and some other errors. I&amp;#39;ll have a look at the diff and see if I can clean up some more. Thanks for your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Confused about polling interval</title><link>https://devzone.nordicsemi.com/thread/256055?ContentTypeID=1</link><pubDate>Sun, 21 Jun 2020 12:41:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7d7d7a7-43c7-4da5-ae4f-d70b556aafec</guid><dc:creator>Unitware</dc:creator><description>&lt;p&gt;hi, I can check this in a few weeks as I&amp;#39;m on vacation now, thanks for looking into it. I can see that I am not calling the default handler, that may have made things worse for me. But I&amp;#39;ll get back when I have the things at hand.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Confused about polling interval</title><link>https://devzone.nordicsemi.com/thread/255829?ContentTypeID=1</link><pubDate>Thu, 18 Jun 2020 15:14:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9565f4f3-fc6e-45ef-8f92-8c6fc9225469</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply. I did some testing and for me it works when I call zb_zdo_pim_set_long_poll_interval(10000) right after steering and reboot &lt;em&gt;(status == RET_OK&lt;/em&gt;), can you try that? Something like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;switch(sig)
    {
        case ZB_BDB_SIGNAL_DEVICE_REBOOT:
            /* fall-through */
        case ZB_BDB_SIGNAL_STEERING:
            /* Call default signal handler. */
            ZB_ERROR_CHECK(zigbee_default_signal_handler(bufid));
            if (status == RET_OK)
            {
                /* Check the light device address */
                if (m_device_ctx.bulb_params.short_addr == 0xFFFF)
                {
                    zb_err_code = ZB_SCHEDULE_APP_ALARM(find_light_bulb, bufid, MATCH_DESC_REQ_START_DELAY);
                    ZB_ERROR_CHECK(zb_err_code);
                    zb_err_code = ZB_SCHEDULE_APP_ALARM(find_light_bulb_timeout, 0, MATCH_DESC_REQ_TIMEOUT);
                    ZB_ERROR_CHECK(zb_err_code);
                    bufid = 0; // Do not free buffer - it will be reused by find_light_bulb callback
                }
                zb_zdo_pim_set_long_poll_interval(10000);
            }
            break;
        default:
            /* Call default signal handler. */
            ZB_ERROR_CHECK(zigbee_default_signal_handler(bufid));
            break;
    }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Also perhaps also check the keepalive timeout you are using (&lt;em&gt;zb_set_keepalive_timeout&lt;/em&gt;)?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Confused about polling interval</title><link>https://devzone.nordicsemi.com/thread/252952?ContentTypeID=1</link><pubDate>Wed, 03 Jun 2020 10:01:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:edf61711-ecec-4093-bbca-67f6ed876287</guid><dc:creator>Unitware</dc:creator><description>&lt;p&gt;An update.&lt;br /&gt;&lt;br /&gt;using&amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_tz_v4.1.0%2Fgroup__zdo__poll__control.html&amp;amp;anchor=ga3aae8929b30e71c872f937771b89c768"&gt;zb_zdo_pim_set_long_poll_interva&lt;/a&gt;&lt;span&gt;l(zb_time_t ms) works if I call it after a while but I have not been able to call it in a proper way after joining the network.&lt;br /&gt;&lt;br /&gt;From the manual:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A preferable way to change the Long Poll interval if the Poll Control cluster is not defined. Else the Poll Control cluster API should be used to set the Long Poll Interval attribute.&lt;/li&gt;
&lt;li&gt;Long Poll interval configuration should be done after the join procedure because during join the Long Poll interval will be set to the default value&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a class="el" href="https://infocenter.nordicsemi.com/topic/sdk_tz_v4.1.0/group___z_b___c_o_n_f_i_g.html#ga1657a3b206e4ac178b8ff766ab2c4bdb"&gt;ZB_PIM_DEFAULT_LONG_POLL_INTERVAL&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;What I see after bootup and joined network is a few &amp;quot;turbo polls&amp;quot; with increasing data request intervals. but after 15 seconds the interval is set to 200ms and thus consuming a lot of battery.&lt;br /&gt;&lt;br /&gt;If I call&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_tz_v4.1.0%2Fgroup__zdo__poll__control.html&amp;amp;anchor=ga3aae8929b30e71c872f937771b89c768"&gt;zb_zdo_pim_set_long_poll_interva&lt;/a&gt;&lt;span&gt;l manually then it will take immediate effect but I do not know how to do it in a good way without guessing with timers.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;What am I missing here?&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: Confused about polling interval</title><link>https://devzone.nordicsemi.com/thread/251933?ContentTypeID=1</link><pubDate>Wed, 27 May 2020 11:47:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72996af3-ee31-47e2-961f-0b42c2567f3c</guid><dc:creator>Unitware</dc:creator><description>&lt;p&gt;I&amp;#39;d be happy even with the default value but it is not working. the interval is 280ms after 15s.&lt;br /&gt;&lt;br /&gt;When can I use the function call? I have done it in the callback when network is joined:&lt;br /&gt;&lt;br /&gt;```&lt;/p&gt;
&lt;p&gt;void zboss_signal_handler(zb_bufid_t bufid)&lt;br /&gt;{&lt;br /&gt; zb_zdo_app_signal_hdr_t * p_sg_p = NULL;&lt;br /&gt; zb_zdo_app_signal_type_t sig = zb_get_app_signal(bufid, &amp;amp;p_sg_p);&lt;br /&gt; zb_ret_t status = ZB_GET_APP_SIGNAL_STATUS(bufid);&lt;br /&gt; zb_ret_t zb_err_code;&lt;/p&gt;
&lt;p&gt;/* Update network status LED */&lt;br /&gt; zigbee_led_status_update(bufid, ZIGBEE_NETWORK_STATE_LED);&lt;/p&gt;
&lt;p&gt;switch(sig)&lt;br /&gt; {&lt;br /&gt; case ZB_BDB_SIGNAL_DEVICE_REBOOT:&lt;br /&gt; /* fall-through */&lt;br /&gt; case ZB_BDB_SIGNAL_STEERING:&lt;br /&gt; if (status == RET_OK)&lt;br /&gt; {&lt;br /&gt; zb_ext_pan_id_t extended_pan_id;&lt;br /&gt; char ieee_addr_buf[17] = {0};&lt;br /&gt; int addr_len;&lt;/p&gt;
&lt;p&gt;zb_get_extended_pan_id(extended_pan_id);&lt;br /&gt; addr_len = ieee_addr_to_str(ieee_addr_buf, sizeof(ieee_addr_buf), extended_pan_id);&lt;br /&gt; if (addr_len &amp;lt; 0)&lt;br /&gt; {&lt;br /&gt; strcpy(ieee_addr_buf, &amp;quot;unknown&amp;quot;);&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;NRF_LOG_INFO(&amp;quot;Joined network successfully (Extended PAN ID: %s, PAN ID: 0x%04hx)&amp;quot;, NRF_LOG_PUSH(ieee_addr_buf), ZB_PIBCACHE_PAN_ID());&lt;/p&gt;
&lt;p&gt;zb_zdo_pim_set_long_poll_interval(ZB_MILLISECONDS_TO_BEACON_INTERVAL(10000));&lt;br /&gt; // zb_zdo_pim_set_long_poll_interval(ZB_PIM_DEFAULT_LONG_POLL_INTERVAL);&lt;br /&gt; // zb_zdo_pim_start_turbo_poll_packets(10);&lt;br /&gt; }&lt;br /&gt; else&lt;br /&gt; {&lt;br /&gt; NRF_LOG_ERROR(&amp;quot;Failed to join network (status: %d)&amp;quot;, status);&lt;br /&gt; bsp_board_led_off(ZIGBEE_NETWORK_STATE_LED);&lt;br /&gt; zb_err_code = ZB_SCHEDULE_APP_ALARM(door_lock_leave_and_join, 0, ZB_TIME_ONE_SECOND);&lt;br /&gt; ZB_ERROR_CHECK(zb_err_code);&lt;br /&gt; }&lt;br /&gt; break;&lt;/p&gt;
&lt;p&gt;```&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Confused about polling interval</title><link>https://devzone.nordicsemi.com/thread/251920?ContentTypeID=1</link><pubDate>Wed, 27 May 2020 11:14:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9d53e6c-f286-48d8-8f0f-82f9a9205247</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply. The default value for long poll interval is 5 seconds. To change the data polling intervall you need to use &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_tz_v4.1.0%2Fgroup__zdo__poll__control.html&amp;amp;anchor=ga3aae8929b30e71c872f937771b89c768"&gt;zb_zdo_pim_set_long_poll_interva&lt;/a&gt;l(zb_time_t ms).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>