How to change the Link request interval of OpenThread in NCS

As shown in the figure above, if I need to modify the time interval of OpenThread's Link request or parent request, how can I do it? Thank you

NCS 2.6.0

NRF52840

Parents
  • Hi,

    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:

    MLE.cpp (Line 1908)

    The interval for the link request is a random value within a specified range, and mDataRequestAttempts is determined by one of the following constants:

    static constexpr uint8_t kMaxTxCount = 3; // Max TX count for MLE messages  
    static constexpr uint8_t kMaxCriticalTxCount = 6; // Max TX count for critical MLE  

    If you would like to modify this behavior to suit your requirements, I recommend checking the OpenThread GitHub repository's Issues section for discussions about the design and the feasibility of such changes.

    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. Thread certification

    Let me know if you have further questions or need additional guidance!

    Best regards,

    Charlie

Reply
  • Hi,

    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:

    MLE.cpp (Line 1908)

    The interval for the link request is a random value within a specified range, and mDataRequestAttempts is determined by one of the following constants:

    static constexpr uint8_t kMaxTxCount = 3; // Max TX count for MLE messages  
    static constexpr uint8_t kMaxCriticalTxCount = 6; // Max TX count for critical MLE  

    If you would like to modify this behavior to suit your requirements, I recommend checking the OpenThread GitHub repository's Issues section for discussions about the design and the feasibility of such changes.

    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. Thread certification

    Let me know if you have further questions or need additional guidance!

    Best regards,

    Charlie

Children
No Data
Related