Thanks Adam, I have disabled BT and Shell, Only UART is there.
Now, when i run the command with debug mode --> mcumgr -ldebug --conntype=serial --connstring='dev=/dev/ttymxc0,baud=115200' echo hello
I'm getting following response with timeout.
DEBU[2019-11-07 15:24:57.671] Using connection profile: name=unnamed type=serial connstring=dev=/dev/ttymxc0,baud=115200
DEBU[2019-11-07 15:24:57.678] {add-nmp-listener} [serial_sesn.go:213] seq=66
DEBU[2019-11-07 15:24:57.68] Encoded &{NmpBase:{hdr:{Op:2 Flags:0 Len:0 Group:0 Seq:66 Id:0}} Payload:hello} to:
00000000 a1 61 64 65 68 65 6c 6c 6f |.adehello|
DEBU[2019-11-07 15:24:57.681] Encoded:
00000000 02 00 00 09 00 00 42 00 a1 61 64 65 68 65 6c 6c |......B..adehell|
00000010 6f |o|
DEBU[2019-11-07 15:24:57.705] Tx NMP request: 00000000 02 00 00 09 00 00 42 00 a1 61 64 65 68 65 6c 6c |......B..adehell|
00000010 6f |o|
DEBU[2019-11-07 15:24:57.706] Base64 encoding request:
00000000 02 00 00 09 00 00 42 00 a1 61 64 65 68 65 6c 6c |......B..adehell|
00000010 6f |o|
DEBU[2019-11-07 15:24:57.707] Tx serial
00000000 06 09 |..|
DEBU[2019-11-07 15:24:57.708] Tx serial
00000000 41 42 4d 43 41 41 41 4a 41 41 42 43 41 4b 46 68 |ABMCAAAJAABCAKFh|
00000010 5a 47 56 6f 5a 57 78 73 62 38 45 4a |ZGVoZWxsb8EJ|
DEBU[2019-11-07 15:24:57.709] Tx serial
00000000 0a |.|
DEBU[2019-11-07 15:25:07.713] {remove-nmp-listener} [serial_sesn.go:213] seq=66
DEBU[2019-11-07 15:25:07.726] goroutine 1 [running]:
main.main()
goroutine 6 [syscall]:
os/signal.signal_recv(0x0)
/snap/go/4668/src/runtime/sigqueue.go:147 +0x130
os/signal.loop()
/snap/go/4668/src/os/signal/signal_unix.go:23 +0x14
created by os/signal.init.0
/snap/go/4668/src/os/signal/signal_unix.go:29 +0x30
goroutine 9 [chan receive]:
main.main.func1(0x2c42800)
created by main.main
goroutine 10 [runnable]:
bufio.(*Scanner).Scan(0x2f9be80, 0x2f9be80)
/snap/go/4668/src/bufio/scan.go:203 +0x230
goroutine 11 [select]:
Error: NMP timeout
--> Can anyone has came across such issue.
Regards,
Mayank