<?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 change the Link request interval of OpenThread in NCS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116763/how-to-change-the-link-request-interval-of-openthread-in-ncs</link><description>As shown in the figure above, if I need to modify the time interval of OpenThread&amp;#39;s Link request or parent request, how can I do it? Thank you 
 NCS 2.6.0 
 NRF52840</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 28 Nov 2024 09:11:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116763/how-to-change-the-link-request-interval-of-openthread-in-ncs" /><item><title>RE: How to change the Link request interval of OpenThread in NCS</title><link>https://devzone.nordicsemi.com/thread/512525?ContentTypeID=1</link><pubDate>Thu, 28 Nov 2024 09:11:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df3887bd-8176-4b0e-977e-1d6607c600ee</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div&gt;
&lt;p&gt;Thank you for reaching out to us. It appears that the link request behavior is controlled by the OpenThread core stack in the following code:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/openthread/openthread/blob/ae5b750d304466de8cb43664969881787a94742f/src/core/thread/mle.cpp#L1908" target="_new"&gt;&lt;span&gt;MLE&lt;/span&gt;&lt;span&gt;.cpp&lt;/span&gt;&lt;span&gt; (Line&lt;/span&gt;&lt;span&gt; 1908)&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The interval for the link request is a random value within a specified range, and &lt;code&gt;mDataRequestAttempts&lt;/code&gt; is determined by one of the following constants:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;pre class="ui-code" data-mode="text"&gt;static constexpr uint8_t kMaxTxCount = 3; // Max TX count for MLE messages  
static constexpr uint8_t kMaxCriticalTxCount = 6; // Max TX count for critical MLE  &lt;/pre&gt;&lt;br /&gt;If you would like to modify this behavior to suit your requirements, I recommend checking the OpenThread GitHub repository&amp;#39;s &lt;a href="https://github.com/openthread/openthread/issues" target="_new"&gt;&lt;span&gt;Issues&lt;/span&gt;&lt;span&gt; section&lt;/span&gt;&lt;/a&gt; for discussions about the design and the feasibility of such changes.&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Please note that modifying the OpenThread stack could introduce additional certification requirements for Thread compliance. Kindly keep this in mind when planning any changes to the stack.&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.8.0/page/nrf/protocols/thread/certification.html"&gt;Thread certification&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Let me know if you have further questions or need additional guidance!&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>