Is it possible to disable CLI commands from the NCS CLI sample?

Hi,

I am using the NCS Thread CLI sample as the base of my project and I was wondering if it's possible to disable the cli command functionalities of this project to save resources. I am planning to develop firmware to flash onto a custom module and use API calls to develop its behavior. 

As far as I see, there's no config in prj.conf to directly disable it. Any help is appreciated.

Thanks,

Glen

Parents
  • Hi,

    The Kconfig configuration needed for the CLI is CONFIG_OPENTHREAD_SHELL. Please note that there is likely to be code in the sample which relies on the existence of the shell (CLI), and there may be changes needed in the application to make it work if you disable the shell. Therefore I highly recommend if you want a non-CLI application to start development from a non-CLI sample. That way you do not have to figure out which parts of the application are CLI related and not, in order to strip the CLI parts away from the rest of the application. You can still have a look at the CLI implementation and use it for reference, to see what underlying API calls are used for the given functionality. Just not build your non-CLI application off of the CLI sample.

    Regards,
    Terje

  • Hi,

    Will it be problematic if I coded a non-CLI application on top of the CLI sample without disabling it? I'm mainly concerned that having it enabled will lead to conflicts, but I have yet to test it out yet. Thanks for your input.

    Best,
    Glen

  • Hi,

    Building on top of the CLI sample should not lead to conflicts per se, but you would end up with code which is not doing anything useful for your application. It would take up flash space, RAM will be reserved for that functionality, and to the degree it is running it will use additional runtime resources.

    Regards,
    Terje

Reply
  • Hi,

    Building on top of the CLI sample should not lead to conflicts per se, but you would end up with code which is not doing anything useful for your application. It would take up flash space, RAM will be reserved for that functionality, and to the degree it is running it will use additional runtime resources.

    Regards,
    Terje

Children
No Data
Related