How can i add openthread to a NCS sample?

Hi,

I want to implement OpenThread features with another sample and I'm not sure how to go about it. Is it even a good idea to add OpenThread to another sample or is it better for me to work on an existing Thread sample. If the latter, is there a sample where UART is enabled for use?

Best regards,
Glen

Parents
  • Hi Glen,

    I recommend starting with an OpenThread sample. This applies to any protocol; if you plan to use a protocol in your project, you should start with a sample using that protocol and add to that sample. You can find an overview of the samples in our Thread samples documentation.

    is there a sample where UART is enabled for use?

    This depends on what you mean by UART enabled for use. The CoAP Client and CoAP Server samples use UART0 for logging, while UART1 is disabled and can be used for other purposes. The CLI sample uses UART0 for shell by default.

    If you are unfamiliar with how to add and use UART in your application, I recommend looking at Lesson 5 – Serial communication (UART) in our nRF Connect SDK Fundamentals course on DevAcademy.

    Best regards,
    Marte

Reply
  • Hi Glen,

    I recommend starting with an OpenThread sample. This applies to any protocol; if you plan to use a protocol in your project, you should start with a sample using that protocol and add to that sample. You can find an overview of the samples in our Thread samples documentation.

    is there a sample where UART is enabled for use?

    This depends on what you mean by UART enabled for use. The CoAP Client and CoAP Server samples use UART0 for logging, while UART1 is disabled and can be used for other purposes. The CLI sample uses UART0 for shell by default.

    If you are unfamiliar with how to add and use UART in your application, I recommend looking at Lesson 5 – Serial communication (UART) in our nRF Connect SDK Fundamentals course on DevAcademy.

    Best regards,
    Marte

Children
Related