From f451cd36637c2d41757e80344a8c30d7936b43b8 Mon Sep 17 00:00:00 2001 From: Dominik Ermel Date: Tue, 18 May 2021 14:42:21 +0000 Subject: [PATCH] mgmt/mcumgr: Info on SHELL_BACKEND_DUMMY_BUF_SIZE impact on mcumgr The commit adds information to Kconfig options: MCUMGR_CMD_SHELL_MGMT and MCUMGR_BUF_SIZE on how the SHELL_BACKEND_DUMMY_BUF_SIZE value impacts them. Signed-off-by: Dominik Ermel --- subsys/mgmt/mcumgr/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/subsys/mgmt/mcumgr/Kconfig b/subsys/mgmt/mcumgr/Kconfig index f97afe7bacd63b..1a7f6b0b6fd4ac 100644 --- a/subsys/mgmt/mcumgr/Kconfig +++ b/subsys/mgmt/mcumgr/Kconfig @@ -134,6 +134,9 @@ config MCUMGR_CMD_SHELL_MGMT physical interfaces outside of the scope of the user. It is possible to use additional shell backends in coordination with this handler and they will not interfere. + The SHELL_BACKEND_DUMMY_BUF_SIZE will affect how many characters + will be returned from command output, if your output gets cut, then + increase the value. Remember to set MCUMGR_BUF_SIZE accordingly. menuconfig MCUMGR_CMD_IMG_MGMT bool "Enable mcumgr handlers for image management" @@ -357,6 +360,8 @@ config MCUMGR_BUF_SIZE The size, in bytes, of each mcumgr buffer. This value must satisfy the following relation: MCUMGR_BUF_SIZE >= transport-specific-MTU + transport-overhead + In case when MCUMGR_SMP_SHELL is enabled this value should be set to + at least SHELL_BACKEND_DUMMY_BUF_SIZE + 32. config MCUMGR_BUF_USER_DATA_SIZE int "Size of mcumgr buffer user data"