<?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>LinkMargin availibility</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81562/linkmargin-availibility</link><description>Hi, 
 we are currently developing our product using nRF5 SDK for Thread and Zigbee v4.1.0 (Release Date: Week 18, 2020). We would like to implement the link margin which is available in the latest OpenThread release. But it seems this feature is not available</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 25 Nov 2021 16:51:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81562/linkmargin-availibility" /><item><title>RE: LinkMargin availibility</title><link>https://devzone.nordicsemi.com/thread/340793?ContentTypeID=1</link><pubDate>Thu, 25 Nov 2021 16:51:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7278750f-7151-45c6-b6a9-e29b80ee1fe2</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Where did you call the functions? Do you get any errors/resets when calling the functions?&lt;/p&gt;
&lt;p&gt;I tested by adding this to&amp;nbsp;thread_state_changed_callback() in the simple_coap_client example:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;case OT_DEVICE_ROLE_CHILD:
{
    otError error;
    otRouterInfo link_quality;
    error = otThreadGetParentInfo(thread_ot_instance_get(), &amp;amp;link_quality);
    ASSERT(error == OT_ERROR_NONE);
    NRF_LOG_INFO(&amp;quot;mLinkQualityIn: %d&amp;quot;, link_quality.mLinkQualityIn);
}
break;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;When the device enters a Thread network as a child device together with the simple_coap_server example, The log will output 3 in my test.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LinkMargin availibility</title><link>https://devzone.nordicsemi.com/thread/340061?ContentTypeID=1</link><pubDate>Mon, 22 Nov 2021 12:48:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f58e0cf-22ed-4739-9906-f77a4505cc76</guid><dc:creator>Nppn7</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;how can I extract the mLqi? I can not see any function to get this value. I only see that it is inside &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_tz_v4.1.0/structot_thread_link_info.html"&gt;structot_thread_link_info&lt;/a&gt;. Also there is no function to get this. What we tried is this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;otError error;
otRouterInfo *link_quality;
error = otThreadGetParentInfo(COMWIRELESS_ot_instance, link_quality);
ASSERT(error == OT_ERROR_NONE);
link_U8 = (link_quality-&amp;gt;mLinkQualityIn);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;S8 *Rssi_S8;
otError error;
error = otThreadGetParentLastRssi(COMWIRELESS_ot_instance,Rssi_S8);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Both resulting in blocking the joining process. Also the debugger behaves weird and stops in thread_api.cpp (only in disassembly).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LinkMargin availibility</title><link>https://devzone.nordicsemi.com/thread/339200?ContentTypeID=1</link><pubDate>Tue, 16 Nov 2021 11:01:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9df7ab2a-7c01-42f6-b09e-3c69572c2d64</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sorry, I got confused from your images circling Link Metrics and corresponding pages without Link Metrics in the APIs.&lt;/p&gt;
&lt;p&gt;You can get the Link Quality indicator&amp;nbsp;&lt;a title="otThreadLinkInfo" href="https://infocenter.nordicsemi.com/topic/sdk_tz_v4.1.0/structot_thread_link_info.html?cp=8_3_5_0_0_3_0_0"&gt;otThreadLinkInfo&lt;/a&gt;::&lt;a title="mLqi" href="https://infocenter.nordicsemi.com/topic/sdk_tz_v4.1.0/structot_thread_link_info.html?cp=8_3_5_0_0_3_0_0_2#a973e85101dbc53709b70cc0234bbd129"&gt;mLqi&lt;/a&gt;&amp;nbsp;parameter, and convert this to Link Margin according to the table in section 5.9.4. This parameter is transmitted between neighbors, so I&amp;#39;m not sure if the exact Link margin value is available. As the sections mentions: &amp;quot;&lt;em&gt;Having only four possible link quality values minimizes the overhead of communicating link qualities to neighbors.&lt;/em&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LinkMargin availibility</title><link>https://devzone.nordicsemi.com/thread/339190?ContentTypeID=1</link><pubDate>Tue, 16 Nov 2021 10:22:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5efc5ce-020a-425c-ad93-65cde39d3394</guid><dc:creator>Nppn7</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;thank you for your reply. As far as I know the Link &lt;strong&gt;Margin&lt;/strong&gt; (not Link &lt;strong&gt;Metrics&lt;/strong&gt;)&lt;strong&gt; &lt;/strong&gt;should be included in Thread 1.1.1 (chapter 5.9.4). If nRF5 SDK for Thread and Zigbee v4.1.0 (Release Date: Week 18, 2020) is based on Thread 1.1.1, then there should be some possibility to extract it. Is that correct? How can I do it?&lt;/p&gt;
&lt;p&gt;Also I would like to know what mLinkQualityIn is.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LinkMargin availibility</title><link>https://devzone.nordicsemi.com/thread/338512?ContentTypeID=1</link><pubDate>Thu, 11 Nov 2021 09:55:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a2caa43-78b8-4d54-acfb-702f22c5d862</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Link Metrics is a Thread 1.2 feature (see page 6 of this document:&amp;nbsp;&lt;a href="https://www.threadgroup.org/Portals/0/documents/support/Thread%201.2%20Base%20Features.pdf"&gt;https://www.threadgroup.org/Portals/0/documents/support/Thread%201.2%20Base%20Features.pdf&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;Thread 1.2 features are not supported in nRF5 SDK for Thread and Zigbee, however some Thread 1.2 features are supported in nRF Connect SDK (NCS), including &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.7.1/nrf/ug_thread_supported_features.html#link-metrics-probing-protocol"&gt;Link metrics&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The exact commit hash for the OpenThread version used in nRF5 SDK for Thread and Zigbee can be found in the file:&amp;nbsp;external\openthread\project\readme.txt. For version 4.1.0 of the SDK, this commit is used:&amp;nbsp;&lt;a href="https://github.com/openthread/openthread/tree/c6a258e3a5bd90aa26d8245c435c0ae5797027f4"&gt;https://github.com/openthread/openthread/tree/c6a258e3a5bd90aa26d8245c435c0ae5797027f4&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;nRF Connect SDK uses a downstream copy of OpenThread, found here:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-openthread"&gt;https://github.com/nrfconnect/sdk-openthread&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In NCS, you can choose between building OpenThread from source, or use the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.7.1/nrf/ug_thread_configuring.html#pre-built-libraries"&gt;prebuilt libraries&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>