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

Increasing size of CLI message buffer

We have an application using SDK for Thread 4.1.  The application requires sending large custom commands over CLI. 

We increased the size of NRF_CLI_CMD_BUFF_SIZE in sdk_config.h but this does not change the overall RAM usage.  Since we are not able to test yet, we assumed this means the buffer size did not increase.

Searching online indicates we should be modifying OPENTHREAD_CONFIG_CLI_UART_RX_BUFFER_SIZE but we cannot find this anywhere in the SDK.

What is the correct way to make sure large CLI messages can be received by the Thread CLI?

Parents
  • Hello,

    In what example did you find NRF_CLI_CMD_BUFF_SIZE in sdk_config.h? I couldn't find it in the file SDK\examples\thread\cli\ftd\uart\pca10056\blank\config\sdk_config.h.

    The openthread stack used in the Thread (and Zigbee) SDK is generated from the openthread github repository:

    https://github.com/openthread/openthread

    If you want to change parameters in this library, you need to generate a custom build of the openthread repository. You can do so by following this guide.

    Please note that you should use the same commit as the one used in the SDK in order to make sure it is compatible.

    You will find the commit described in the file:

    SDK\external\openthread\project\readme.txt.

    Best regards,

    Edvin

Reply
  • Hello,

    In what example did you find NRF_CLI_CMD_BUFF_SIZE in sdk_config.h? I couldn't find it in the file SDK\examples\thread\cli\ftd\uart\pca10056\blank\config\sdk_config.h.

    The openthread stack used in the Thread (and Zigbee) SDK is generated from the openthread github repository:

    https://github.com/openthread/openthread

    If you want to change parameters in this library, you need to generate a custom build of the openthread repository. You can do so by following this guide.

    Please note that you should use the same commit as the one used in the SDK in order to make sure it is compatible.

    You will find the commit described in the file:

    SDK\external\openthread\project\readme.txt.

    Best regards,

    Edvin

Children
  • The SDK version we are using (nRF5 SDK for Thread and Zigbee v4.1.0) lists
    "OpenThread libraries projects are based on the following commit of OpenThread: c6a258e3a5bd90aa26d8245c435c0ae5797027f4"
    which points to this version:
    "(12:25:47.890) OPENTHREAD/20191113-00534-gc6a258e3; NRF52840; Apr 5 2020 21:51:18"
    Please confirm that this is the correct git commit.
Related