<?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>How to access Zigbee MAC diagnostic counters from app code?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86109/how-to-access-zigbee-mac-diagnostic-counters-from-app-code</link><description>I have a semi-working app which executes Zigbee commands that it receives from other nodes, but the latency is sometimes unacceptably high. I would like to check some of the diagnostic counters to see if they offer a clue as to what is happening in the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 13 Apr 2022 03:58:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86109/how-to-access-zigbee-mac-diagnostic-counters-from-app-code" /><item><title>RE: How to access Zigbee MAC diagnostic counters from app code?</title><link>https://devzone.nordicsemi.com/thread/363092?ContentTypeID=1</link><pubDate>Wed, 13 Apr 2022 03:58:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0d62a71-6dae-41e0-a4e7-9b370ffe9b6a</guid><dc:creator>mytzyiay</dc:creator><description>&lt;p&gt;I&amp;#39;m currently using the diagnostics cluster to remotely query the stats, so there&amp;#39;s no rush.&amp;nbsp; However this is my own improvised solution (the diagnostics didn&amp;#39;t even work right until I patched the ZBOSS code so it&amp;#39;s clear that no one else is relying on this method).&amp;nbsp; I would like to understand what the recommended best practices are, for quantifying the number of lost/corrupted/retried packets.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to access Zigbee MAC diagnostic counters from app code?</title><link>https://devzone.nordicsemi.com/thread/362605?ContentTypeID=1</link><pubDate>Fri, 08 Apr 2022 12:38:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73a66d52-682f-453c-a4e6-0cdebc8ea6b2</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We do not have any obvious suggestions/answers.&amp;nbsp;There is a significant difference between embedding analysis tools inside the device vs using external equipment to sniff and analyze data.&lt;/p&gt;
&lt;p&gt;I will start my vacation next week, so you will not get any reply from me in a week. If you are urgent, please create a new support case. Sorry for the inconvenience.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to access Zigbee MAC diagnostic counters from app code?</title><link>https://devzone.nordicsemi.com/thread/361294?ContentTypeID=1</link><pubDate>Fri, 01 Apr 2022 21:07:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1b39369-5752-4544-afa4-deddcfb45cf8</guid><dc:creator>mytzyiay</dc:creator><description>&lt;p&gt;How do other nRF52 Zigbee developers typically gather these sorts of stats?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to access Zigbee MAC diagnostic counters from app code?</title><link>https://devzone.nordicsemi.com/thread/361229?ContentTypeID=1</link><pubDate>Fri, 01 Apr 2022 12:31:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c78d2f71-5fd6-430a-b8c3-d82132530a86</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you looking for tips on how to get this data from wireshark or are you looking for a ZBOSS API that will return such statistics?&lt;/p&gt;
&lt;p&gt;-Amanda&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to access Zigbee MAC diagnostic counters from app code?</title><link>https://devzone.nordicsemi.com/thread/360611?ContentTypeID=1</link><pubDate>Tue, 29 Mar 2022 16:29:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c765eaa5-f709-4816-b4da-1d8d3453321f</guid><dc:creator>mytzyiay</dc:creator><description>&lt;p&gt;I do have a sniffer set up, but I don&amp;#39;t know how to make it&amp;nbsp;quantify the number of anomalous events.&amp;nbsp; For instance, it&amp;#39;s useful to be able to say &amp;quot;X percent of receive attempts got a failed FCS&amp;quot; or &amp;quot;X percent of transmit attempts required a retransmission&amp;quot; and compare this between different nodes, board types, antenna types, etc.&lt;/p&gt;
&lt;p&gt;This is the sort of criteria I would give to a QA team as well: it&amp;#39;s almost impossible for a wireless product to&amp;nbsp;transmit/receive perfectly 100% of the time under all conditions, so you set an acceptable error rate, and flag regressions if that rate is exceeded.&lt;/p&gt;
&lt;p&gt;How do I filter for retransmissions when viewing a sniffer log in wireshark?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to access Zigbee MAC diagnostic counters from app code?</title><link>https://devzone.nordicsemi.com/thread/360441?ContentTypeID=1</link><pubDate>Tue, 29 Mar 2022 07:29:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9b5375e-c168-4a73-bc68-d7968901eebb</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I haven&amp;#39;t used the diagnostic cluster before, so I don&amp;#39;t know why last_msg_rssi remains 0. There are other ways you can get RSSI of other devices or neighbors as well. For neighbors, you can use the neighbor table, as there are fields for RSSI and LQI of a neighbor there. You can also use zb_zdo_get_diag_data(). For the neighbor table, you can iterate through the entire neighbor table and check for each entry, but for zb_zdo_get_diag_data() they need to know the short address of the device they want to get RSSI of.&lt;/p&gt;
&lt;p&gt;If you want to check for corrupted packets, retransmissions, etc. the best way to do this would be to get a &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Sniffer-for-802154"&gt;sniffer &lt;/a&gt;log to inspect the network and packets.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to access Zigbee MAC diagnostic counters from app code?</title><link>https://devzone.nordicsemi.com/thread/359634?ContentTypeID=1</link><pubDate>Wed, 23 Mar 2022 14:19:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a79c8a7a-894c-4174-b830-c70e5ead676b</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We are looking into this case and will reply later.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>