<?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 - Read number of hops (radius)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63815/zigbee---read-number-of-hops-radius</link><description>Hi there, 
 I&amp;#39;m working on a Zigbee project and I&amp;#39;m using the nRF5 SDK for Thread and Zigbee v4.1.0. For benchmarking purposes I need to read the number of hops a Zigbee-packet took to get from Node A to Node B in a network with mesh topology. According</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 Aug 2020 08:37:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63815/zigbee---read-number-of-hops-radius" /><item><title>RE: Zigbee - Read number of hops (radius)</title><link>https://devzone.nordicsemi.com/thread/264386?ContentTypeID=1</link><pubDate>Thu, 13 Aug 2020 08:37:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9e57980-c6f5-490a-8801-609b3d09841a</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi Cyrill,&lt;/p&gt;
&lt;p&gt;Sorry for the delays. The easiest way to access the information about the number of hops for a packet is to obvserved by using a sniffer (for example nRF Sniffer for 802.15.4 &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_tz_v4.1.0/nrf802154_sniffer.html"&gt;https://infocenter.nordicsemi.com/topic/sdk_tz_v4.1.0/nrf802154_sniffer.html&lt;/a&gt; )&lt;br /&gt;&lt;br /&gt; I was not able to find this Radius value you talked about in the specification. But perhaps you are looking into something similar to the Link Quality indicator (LQI)? This can be accessed from the neighbor table. In CLI example you can used command &amp;#39;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_tz_v4.1.0%2Fzigbee_example_cli_reference.html&amp;amp;anchor=mgmt_lqi"&gt;zdo mgmt_lqi&lt;/a&gt;&amp;#39; to read from the neighbour table.&lt;/p&gt;
&lt;p&gt;For calculating latency of a packet we also have a benchmark application example you can use: &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_tz_v4.1.0/benchmark.html"&gt;https://infocenter.nordicsemi.com/topic/sdk_tz_v4.1.0/benchmark.html&lt;/a&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: Zigbee - Read number of hops (radius)</title><link>https://devzone.nordicsemi.com/thread/262302?ContentTypeID=1</link><pubDate>Thu, 30 Jul 2020 07:17:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d16467cd-6478-4980-bd11-6b264ea9d5b2</guid><dc:creator>peppyjewel</dc:creator><description>&lt;p&gt;Hi Marjeris,&lt;/p&gt;
&lt;p&gt;Thanks for your answer. Do you have any updates to this case yet?&lt;/p&gt;
&lt;p&gt;Greetings,&lt;/p&gt;
&lt;p&gt;Cyrill&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee - Read number of hops (radius)</title><link>https://devzone.nordicsemi.com/thread/261011?ContentTypeID=1</link><pubDate>Tue, 21 Jul 2020 13:47:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fca8e6fe-0887-4bad-b9f4-789a40b7dbf5</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi Cyrill,&lt;/p&gt;
&lt;p&gt;Just wanted to let you know that Edvin has gone on summer vacation and I am taking over this case. I will need to consult with our Zigbee experts to find out more about what you are asking. Since it&amp;#39;s summer vacation time please be patience and expect a delayed answer time.&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: Zigbee - Read number of hops (radius)</title><link>https://devzone.nordicsemi.com/thread/260450?ContentTypeID=1</link><pubDate>Thu, 16 Jul 2020 21:00:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:677912fa-448e-487b-9dc4-f6e4aa0ea216</guid><dc:creator>peppyjewel</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;We need the TTL or Radius value to calculate the latency per hop of the packet. We are interested in how fast the packet will be transfered over the Zigbee network depending on the hops it took.&lt;/p&gt;
&lt;p&gt;I already checked the&amp;nbsp;&lt;span&gt;p_device_cb_param-&amp;gt;cb_param.gnr.in_cmd_info field but couldn&amp;#39;t find any helpful data.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The Zigbee specification says that there is an 8-Bit Radius field in the NWK-header of the packet which is transfered to the APL-layer over the network layer data entity (NLDE). Please correct me if I&amp;#39;m wrong. So the value should be available somehow.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Greetings,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Cyrill&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee - Read number of hops (radius)</title><link>https://devzone.nordicsemi.com/thread/260402?ContentTypeID=1</link><pubDate>Thu, 16 Jul 2020 13:54:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a7e75a1-b6a1-44a1-bda0-1e463cd4644d</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am not sure how you read out the number of hops that packets have used, or if it is possible. But I don&amp;#39;t understood exactly why you need this. Zigbee has a routing table that calculates the route cost for all nodes, meaning it will always use the route with the lowest cost. The cost will be a function depending on number of hops and signal strength.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Looking at the light_bulb example from the SDK, one packet that is incoming that will trigger a callback is the command to turn on and off the bulb. It will trigger the&amp;nbsp;zcl_device_cb().&lt;/p&gt;
&lt;p&gt;I see that there is some general information in:&lt;/p&gt;
&lt;p&gt;p_device_cb_param-&amp;gt;cb_param.gnr.in_cmd_info, such as source address and destination address. To be honest, I am not sure that the number of hops is even part of the packet? I don&amp;#39;t think that there is a maximum number of hops, with a TTL (time to live) counter that is decremented for each hop in Zigbee, like it is in Bluetooth Mesh. Do you know that there is?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>