<?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>Use of flag field in Zigbee lqi response</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71638/use-of-flag-field-in-zigbee-lqi-response</link><description>I am using zigbee sdk to establish mesh network. 
 I am using client router example to fetch mgmt_lqi details where I am getting flag field in the response. 
 I want to know can I get the details of node description by using that flag field? or is there</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 18 Feb 2021 08:20:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71638/use-of-flag-field-in-zigbee-lqi-response" /><item><title>RE: Use of flag field in Zigbee lqi response</title><link>https://devzone.nordicsemi.com/thread/294998?ContentTypeID=1</link><pubDate>Thu, 18 Feb 2021 08:20:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75dfdb5a-2bf7-4ee4-b47a-63df4f05d3c6</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Once you obtain&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_tz_v4.1.0/structzb__zdo__neighbor__table__record__s.html"&gt;zb_zdo_neighbor_table_record_s&lt;/a&gt;, you can get device type from type_flags by using the macro&amp;nbsp;ZB_ZDO_RECORD_GET_DEVICE_TYPE() to get the value. You then get the device type based on the value using what I wrote in my last reply (0x00 = coordinator, and so forth).&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><item><title>RE: Use of flag field in Zigbee lqi response</title><link>https://devzone.nordicsemi.com/thread/294624?ContentTypeID=1</link><pubDate>Tue, 16 Feb 2021 12:50:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bac8a622-abbc-4ebe-848d-1c25d0a71e3e</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I assume by flag field you mean&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_tz_v4.1.0/structzb__zdo__neighbor__table__record__s.html#a1292991024a51f762f8b5ad957e7667e"&gt;type_flags&lt;/a&gt;&amp;nbsp;in&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_tz_v4.1.0/structzb__zdo__neighbor__table__record__s.html"&gt;zb_zdo_neighbor_table_record_s&lt;/a&gt;, and I assume you&amp;#39;ve already seen that the documentation mentions device type, as well as rx_on_when_idle and relationship. In table 2.130 in the&amp;nbsp;&lt;a href="https://zigbeealliance.org/wp-content/uploads/2019/12/docs-05-3474-21-0csg-zigbee-specification.pdf"&gt;Zigbee specification found here&lt;/a&gt;&amp;nbsp;you can see the NeighborTableList record format, where these three are separate fields, and the device type is given by the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;0x00 = ZigBee coordinator&lt;/li&gt;
&lt;li&gt;0x01 = ZigBee router&lt;/li&gt;
&lt;li&gt;0x02 = ZigBee end device&lt;/li&gt;
&lt;li&gt;0x03 = Unknown&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;However, I agree with you that it&amp;#39;s unclear from the documentation how to get the device type from the neighbor table, and I&amp;#39;ve asked the Zigbee team internally to get a clarification on this. I&amp;#39;ll come back to you when I hear from them.&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>