This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to enable diag of SDK for Thread cli example

Hi Nordic team,

I try to use SDK for Thread v0.10.0 cli example and run diag command, but it is disable as below image description

Could you tell me how to enable diagnostics module ? Thanks

  • you need to first enable the diag features by the command

    > diag start
    
  • Hi Aryan,

    Thanks for your reply. I couldn't run any command after "diag start" command because of console hang up. From the github.com/.../diag, console should display "start diagnostics mode" message after "diag start" command, right ?

  • Hi Nordic team,

    I couldn't enable diag feature by "diag start" command and my test firmware is nRF5_SDK_for_Thread_v0.10.0/examples/thread/experimental/cli/hexnrf52840_xxaa.hex. Symptom is nRF52840 DK console hang up after running "diag start" command

    Could you provide some solution ? Thanks Thanks

  • Hello Jog,

    To enable diagnostic features you need to call otDiagInit() function in your main.c code, right after otCliUartInit() function.

    In the upcoming release of nRF5 SDK for Thread all examples will call otDiagInit() function by default.

  • Hi,

    Thank you for reply. May I use the diagnostics features for 802.15.4 RF PHY test ?

1 2