<?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>zigbee</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92165/zigbee</link><description>Hi 
 For nRF52840 as Zigbee Coordinator, for an unknown new device (ED), after the new device joins the Zigbee network, 
 
 Is it possible to know the Profile, End-Point, Clusters, etc. properties supported by this device? 
 Is it possible to know the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 21 Sep 2022 12:43:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92165/zigbee" /><item><title>RE: zigbee</title><link>https://devzone.nordicsemi.com/thread/387296?ContentTypeID=1</link><pubDate>Wed, 21 Sep 2022 12:43:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fcb5767-13d3-4fd0-84e0-0fe3c589c0fe</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]Is it possible to know the Profile, End-Point, Clusters, etc. properties supported by this device?[/quote]
&lt;p&gt;Yes, you can send a Simple Descriptor Request to the device, using &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/zboss/3.11.2.0/group__zdo__disc.html#ga9a1ef4139b1db331b183baa1c9350eb9"&gt;zb_zdo_simple_desc_req()&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void send_simple_desc_req(zb_bufid_t buf)
{
    if (!buf)
    {
        zb_buf_get_out_delayed(send_simple_desc_req);
    }
    else
    {
        zb_zdo_simple_desc_req_t *req;
        req = zb_buf_initial_alloc(buf, sizeof(zb_zdo_simple_desc_req_t));
        req-&amp;gt;nwk_addr = 0; /* send to coordinator */
        req-&amp;gt;endpoint = 5;
        zb_zdo_simple_desc_req(buf, simple_desc_callback);
    }
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;When the coordinator receives a response it will call the callback function given in zb_zdo_simple_desc_req, which in this case is simple_desc_callback():&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void simple_desc_callback(zb_bufid_t buf)
{
    zb_uint8_t *zdp_cmd = zb_buf_begin(buf);
    zb_zdo_simple_desc_resp_t *resp = (zb_zdo_simple_desc_resp_t*)(zdp_cmd);
    zb_uint_t i;

    if (resp-&amp;gt;hdr.status == ZB_ZDP_STATUS_SUCCESS) {
        // Handle the response how you want
        //resp-&amp;gt;hdr.status
        //resp-&amp;gt;hdr.nwk_addr
        //resp-&amp;gt;hdr.status 
        //resp-&amp;gt;hdr.nwk_addr
        //resp-&amp;gt;simple_desc.endpoint, 
        //resp-&amp;gt;simple_desc.app_profile_id,
        //resp-&amp;gt;simple_desc.app_device_id, 
        //resp-&amp;gt;simple_desc.app_device_version,
        //resp-&amp;gt;simple_desc.app_input_cluster_count
        //resp-&amp;gt;simple_desc.app_output_cluster_count
        //resp-&amp;gt;simple_desc.app_input_cluster_count
        //resp-&amp;gt;simple_desc.app_output_cluster_count
    }
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;If you have enabled Zigbee shell on your coordinator you can also use shell commands to send Simple Descriptor Req, using &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.1.0/nrf/libraries/zigbee/shell.html#zdo-simple-desc-req"&gt;zdo simple_desc_req&lt;/a&gt;. &lt;/p&gt;
[quote user=""]Is it possible to know the real-time dynamic link status, link quality of the connected device?[/quote]
&lt;p&gt;Yes, you have some different options for this.&lt;/p&gt;
&lt;p&gt;One is to look at the neighbor table, as this will contain estimated LQI of neighbors. You can read the neighbor table on a local device with &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/zboss/3.12.1.0/group__nwk__management__service.html#ga9614febdf2ad20a6b94397a733a2a6dd"&gt;zb_nwk_nbr_iterator_next()&lt;/a&gt;, or you can send a command to get the neighbor table of another device by sending a Mgmt_Lqi_Req command using &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/zboss/3.12.1.0/group__zdo__mgmt.html#ga231ec009bd8d5fffa218f30b9e5f089f"&gt;zb_zdo_mgmt_lqi_req()&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Another option is to use &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/zboss/3.12.1.0/group__zdo__base.html#ga9877db3b8261bcc9293a0f1a7efa2222"&gt;zb_zdo_get_diag_data()&lt;/a&gt; to get the last known LQI and RSSI values from a specific device.&lt;/p&gt;
&lt;p&gt;The last option is to use the Diagnostics cluster, which you can find the API for here: &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/zboss/3.12.1.0/group___z_b___z_c_l___d_i_a_g_n_o_s_t_i_c_s.html"&gt; Data Structures ZCL Diagnostics cluster&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>