<?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>Getting zigbee device RSSI/LQI value of all network device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116857/getting-zigbee-device-rssi-lqi-value-of-all-network-device</link><description>How can we retrieve all network devices RSSI/LQI value? Is there option to subscribe value for LQI ? We just want to showcase LQI/RSSI on server so user be aware if device are placed in proper range or not.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 03 Dec 2024 12:35:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116857/getting-zigbee-device-rssi-lqi-value-of-all-network-device" /><item><title>RE: Getting zigbee device RSSI/LQI value of all network device</title><link>https://devzone.nordicsemi.com/thread/513200?ContentTypeID=1</link><pubDate>Tue, 03 Dec 2024 12:35:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ceb258fc-4b76-483a-b261-e11a302a6396</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hello, &lt;/p&gt;
[quote user="dhavaldalvadi"]I found the standard ZigBee device which I am using is smart plug&amp;nbsp;&lt;br /&gt;I found from the answer you suggested it returns as router[/quote]
&lt;p&gt;Great!&lt;/p&gt;
[quote user="dhavaldalvadi"]Is it possible device can be in router and also have application like smart bulb or plug in ZigBee?[/quote]
&lt;p&gt;Yes. In fact the ZigBee &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/zigbee/light_bulb/README.html"&gt;Light Bulb sample&lt;/a&gt; in nRF Connect SDK is configured as a router by default.&lt;/p&gt;
&lt;p&gt;The role is configured in a configuration file (.conf) by setting one of the choices for &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.8.0/page/kconfig/index.html#CONFIG_ZIGBEE_ROLE"&gt;CONFIG_ZIGBEE_ROLE&lt;/a&gt;: &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.8.0/page/kconfig/index.html#CONFIG_ZIGBEE_ROLE_END_DEVICE"&gt;CONFIG_ZIGBEE_ROLE_END_DEVICE&lt;/a&gt;, &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.8.0/page/kconfig/index.html#CONFIG_ZIGBEE_ROLE_ROUTER"&gt;CONFIG_ZIGBEE_ROLE_ROUTER&lt;/a&gt; or &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.8.0/page/kconfig/index.html#CONFIG_ZIGBEE_ROLE_COORDINATOR"&gt;CONFIG_ZIGBEE_ROLE_COORDINATOR&lt;/a&gt;. &lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting zigbee device RSSI/LQI value of all network device</title><link>https://devzone.nordicsemi.com/thread/513107?ContentTypeID=1</link><pubDate>Tue, 03 Dec 2024 06:47:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f623c043-4dcc-4e7c-8dc1-03df6a03a67c</guid><dc:creator>Dhaval Dalvadi</dc:creator><description>&lt;p&gt;Hi Maria&amp;nbsp;&lt;br /&gt;I found the standard ZigBee device which I am using is smart plug&amp;nbsp;&lt;br /&gt;I found from the answer you suggested it returns as router&lt;br /&gt;&lt;br /&gt;Is it possible device can be in router and also have application like smart bulb or plug in ZigBee?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting zigbee device RSSI/LQI value of all network device</title><link>https://devzone.nordicsemi.com/thread/512973?ContentTypeID=1</link><pubDate>Mon, 02 Dec 2024 12:37:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a2bc412-0641-4527-a9cc-d2b5683b6e11</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Great to see that you were able to find out how to get the LQI values with &lt;a href="https://ncsdoc.z6.web.core.windows.net/zboss/3.11.5.0/group__zdo__mgmt.html#ga928d40046f131ea12ddb04778fd77b25"&gt; zb_zdo_mgmt_lqi_resp_t&lt;/a&gt;.&lt;/p&gt;
[quote user="dhavaldalvadi"]Its not able to know if its router or end device both gives similar value most of the cases[/quote]
&lt;p&gt;The &lt;a href="https://ncsdoc.z6.web.core.windows.net/zboss/3.11.5.0/structzb__zdo__neighbor__table__record__s.html"&gt;zb_zdo_neighbor_table_record_s&lt;/a&gt; struct does not have a device_type parameter directly, so you need to go through the &lt;a href="https://ncsdoc.z6.web.core.windows.net/zboss/3.11.5.0/structzb__zdo__neighbor__table__record__s.html#a1292991024a51f762f8b5ad957e7667e"&gt;type_flags&lt;/a&gt; parameter and get the device_type with &lt;a href="https://ncsdoc.z6.web.core.windows.net/zboss/3.11.5.0/group__zdo__mgmt.html#ga5e50fdaa65c05f04846f0db13fb4c240"&gt;ZDO_RECORD_GET_DEVICE_TYPE&lt;/a&gt; like this: &lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;code&gt;zb_uint8_t device_type = ZB_ZDO_RECORD_GET_DEVICE_TYPE(record-&amp;gt;type_flags);&lt;/code&gt; &lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting zigbee device RSSI/LQI value of all network device</title><link>https://devzone.nordicsemi.com/thread/512837?ContentTypeID=1</link><pubDate>Sat, 30 Nov 2024 10:41:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25f99fed-49fc-4f4b-9f42-b8953f653b23</guid><dc:creator>Dhaval Dalvadi</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;void zb_zdo_mgmt_lqi_cb(zb_uint8_t param)
{
    zb_buf_t *buf = ZB_BUF_FROM_REF(param);
    zb_zdo_mgmt_lqi_resp_t *resp = (zb_zdo_mgmt_lqi_resp_t*)ZB_BUF_BEGIN(buf);
    zb_zdo_neighbor_table_record_t *record = (zb_zdo_neighbor_table_record_t*)(resp + 1);
    for (zb_uint8_t i = 0; i &amp;lt; resp-&amp;gt;neighbor_table_entries; i++)
    {
        if (record-&amp;gt;device_type == ZB_ZDO_DEVICE_TYPE_ROUTER)
        {
            ZB_LETOH64(record-&amp;gt;ext_addr);
            TRACE_MSG(TRACE_APS3, &amp;quot;Router found: &amp;quot; TRACE_FORMAT_64,
                      (FMT__A, TRACE_ARG_64(record-&amp;gt;ext_addr)));
        }
        record++;
    }
    zb_free_buf(buf);
}
void get_router_list(void)
{
    zb_zdo_mgmt_lqi_param_t *req;
    zb_buf_t *buf = zb_buf_get_out();
    req = ZB_BUF_GET_PARAM(buf, zb_zdo_mgmt_lqi_param_t);
    req-&amp;gt;start_index = 0;
    req-&amp;gt;dst_addr = 0x0000;  // Coordinator address
    zb_zdo_mgmt_lqi_req(ZB_REF_FROM_BUF(buf), zb_zdo_mgmt_lqi_cb);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Its not able to know if its router or end device both gives similar value most of the cases&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>